| Message ID | 1c58c344-a241-46fe-a473-3e4ce20b24b8@triplebit-solutions.de |
|---|---|
| State | New |
| Headers | show |
| Series | [scarthgap] Backport request: insane: fix unimplemented-ptest error handling | expand |
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information: --- Testing patch /home/patchtest/share/mboxes/scarthgap-Backport-request-insane-fix-unimplemented-ptest-error-handling.patch FAIL: test mbox format: Series has malformed diff lines. Create the series again using git-format-patch and ensure it applies using git am (test_mbox.TestMbox.test_mbox_format) PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence) PASS: test auh changelog truncation notice (test_mbox.TestMbox.test_auh_changelog_truncation_notice) PASS: test author valid (test_mbox.TestMbox.test_author_valid) PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence) PASS: test commit message user tags (test_mbox.TestMbox.test_commit_message_user_tags) PASS: test max line length (test_metadata.TestMetadata.test_max_line_length) PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade) PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format) PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length) PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list) SKIP: pretest pylint: Python-unidiff parse error (test_python_pylint.PyLint.pretest_pylint) SKIP: pretest src uri left files: Patch cannot be merged (test_metadata.TestMetadata.pretest_src_uri_left_files) SKIP: test CVE check ignore: No modified recipes or older target branch, skipping test (test_metadata.TestMetadata.test_cve_check_ignore) SKIP: test CVE tag format: Parse error Hunk diff line expected: while scanning (disappearing file while scanning?). Check was ignored." SKIP: test Signed-off-by presence: Parse error Hunk diff line expected: while scanning (disappearing file while scanning?). Check was ignored." SKIP: test Upstream-Status presence: Parse error Hunk diff line expected: while scanning (disappearing file while scanning?). Check was ignored." SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format) SKIP: test lic files chksum modified not mentioned: No modified recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned) SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence) SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence) SKIP: test pylint: Python-unidiff parse error (test_python_pylint.PyLint.test_pylint) SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head) SKIP: test src uri left files: Patch cannot be merged (test_metadata.TestMetadata.test_src_uri_left_files) SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence) --- Please address the issues identified and submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 9004a9dce2..7631d3c730 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass @@ -1357,7 +1357,7 @@ python do_qa_patch() { except FileNotFoundError: # pathlib.Path.glob() might throw this when file/directory # disappear while scanning. - bb.note("unimplemented-ptest: FileNotFoundError exception while scanning (disappearing file while scanning?). Check was ignored." % d.getVar('PN')) + bb.note("Recipe %s QA: unimplemented-ptest: FileNotFoundError exception while scanning (disappearing file while
Hi Yoann, Please consider backporting the following master commit to scarthgap: b62d5e681741394ad90501a83a1c66b0e3ab7ce3 "insane: fix unimplemented-ptest error handling" meta/classes-global/insane.bbclass, 1 insertion, 1 deletion Issue: the bb.note() in the unimplemented-ptest FileNotFoundError handler has no conversion specifier but is passed '% d.getVar("PN")'. The handler that is meant to swallow the exception therefore raises TypeError: not all arguments converted during string formatting The affected path runs whenever 'ptest' is in DISTRO_FEATURES, so it is live for every recipe on such a distro. It triggers when a file disappears while the check globs ${S}, which in practice means incremental builds and devtool workspaces where sources change under the scan. We are hitting it on scarthgap-based builds. Target branch: scarthgap (bug also present on others branches). The commit applies cleanly to scarthgap as of 1397cd8503; I attached the patch for convinience if that helps. Thanks, Karsten Meinecke From 30c86236a83346a7236716e4d9d594629b1a375f Mon Sep 17 00:00:00 2001 From: Maxin John <maxin.john@gehealthcare.com> Date: Tue, 27 Oct 2026 10:12:17 +0200 Subject: [OE-core][scarthgap][PATCH] insane: fix unimplemented-ptest error handling Avoid TypeError when the unimplemented-ptest check encounters a FileNotFoundError. Signed-off-by: Maxin John <maxin.john@gehealthcare.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b62d5e681741394ad90501a83a1c66b0e3ab7ce3) Signed-off-by: Karsten Meinecke <kmeinecke@triplebit-solutions.de> --- meta/classes-global/insane.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) scanning?). Check was ignored." % d.getVar('PN')) pass return False -- 2.55.0