selftest: gitrepotest: add Upstream-Status to 0001-testpatch.patch
PATCH 1/4 selftest: gitrepotest: add Upstream-Status to 0001-testpatch.patch
--- .../recipes-test/gitrepotest/gitrepotest/0001-testpatch.patch | 2 ++ 1 file changed, 2 insertions(+)
meta-selftest/recipes-test/gitrepotest/gitrepotest/0001-testpatch.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status: Inappropriate [this is useless patch only for selftest] + diff --git a/Makefile.am b/Makefile.am index 432a9b4..bbf7c74 100644 --- a/Makefile.am
Signature · 1 line
2.45.2
PATCH 2/4 selftest: add few missing Upstream-Status
* these were reported in:
https://lists.openembedded.org/g/openembedded-core/message/200282
--- .../devtool/devtool-test-ignored/devtool-test-ignored.patch | 2 ++ ...1-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch | 2 ++ .../0001-Add-a-note-line-to-the-quick-reference.patch | 2 ++ .../devtool/devtool-upgrade-test1-1.5.3/backported.patch | 2 ++ meta-selftest/recipes-test/recipetool/files/add-file.patch | 2 ++ 5 files changed, 10 insertions(+)
meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status: Inappropriate [this is ignored] + diff --git a/ignored b/ignored index a579759..e3d7b43 100644 --- a/ignored
meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status: Inappropriate [please don't submit me] + diff --git a/patch-me b/patch-me index a20b29a..5e35d1b 100644 --- a/patch-me
meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch +2 -0
@@ -4,6 +4,8 @@ Date: Wed, 24 Feb 2016 17:43:03 +1300 Subject: [PATCH] Add a note line to the quick reference A test patch so we have a file to move around. + +Upstream-Status: Inappropriate [too important] --- doc/quickref.1.in | 1 + 1 file changed, 1 insertion(+)
meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/backported.patch +2 -0
@@ -4,6 +4,8 @@ Date: Mon Nov 18 18:43:15 2019 +0100 Backport of the NEWS file from version 1.6.0 +Upstream-Status: Backport [v1.6.0] + diff --git a/doc/NEWS b/doc/NEWS index 69793fc..fd49b1c 100644 --- a/doc/NEWS
meta-selftest/recipes-test/recipetool/files/add-file.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status: Inappropriate [test file] + diff --git a/file2 b/file2 new file mode 100644 index 0000000..049b42e
Signature · 1 line
2.45.2
PATCH 3/4 selftest: add few missing Upstream-Status found by patchreview
In reply to Martin Jansa* now patchreview complains only about missing SOBs
$ scripts/contrib/patchreview.py -v meta-selftest/ Found layers meta-selftest Missing Signed-off-by tag (/OE/layers/openembedded-core/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/backported.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta-selftest/recipes-test/gitrepotest/gitrepotest/0001-testpatch.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta-selftest/recipes-test/man-db/files/0001-Test-patch-here.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta-selftest/recipes-test/recipetool/files/add-file.patch)
Total patches found: 13
Patches missing Signed-off-by: 9 (69%)
Patches with malformed Signed-off-by: 0 (0%)
Patches missing CVE: 0 (0%)
Patches missing Upstream-Status: 0 (0%)
Patches with malformed Upstream-Status: 0 (0%)
Patches in Pending state: 4 (31%)
--- .../devtool/devtool-patch-overrides/qemuarm/arm.patch | 2 ++ .../devtool/devtool-patch-overrides/qemux86/x86.patch | 2 ++ .../recipes-test/man-db/files/0001-Test-patch-here.patch | 2 ++ 3 files changed, 6 insertions(+)
meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status: Pending + --- source.orig 2020-10-06 13:26:10.792688630 +0100 +++ source 2020-10-06 13:26:18.853424694 +0100 @@ -1 +1 @@
meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch +2 -0
@@ -1,3 +1,5 @@ +Upstream-Status: Pending + --- source.orig 2020-10-06 13:26:10.792688630 +0100 +++ source 2020-10-06 13:26:18.853424694 +0100 @@ -1 +1 @@
meta-selftest/recipes-test/man-db/files/0001-Test-patch-here.patch +2 -0
@@ -4,6 +4,8 @@ Date: Fri, 9 Feb 2018 17:37:48 +0200 Subject: [PATCH] Test patch here! This is an invalid patch used by oe-selftest + +Upstream-Status: Pending --- README | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
2.45.2
Re: [OE-core] [RESENDv3][PATCH 3/4] selftest: add few missing Upstream-Status found by patchreview
Quoted 91 lines · Martin Jansa via lists.openembedded.org
* now patchreview complains only about missing SOBs
$ scripts/contrib/patchreview.py -v meta-selftest/ Found layers meta-selftest Missing Signed-off-by tag (/OE/layers/openembedded-core/meta- selftest/recipes-test/devtool/devtool-patch- overrides/qemuarm/arm.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta- selftest/recipes-test/devtool/devtool-patch- overrides/qemux86/x86.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta- selftest/recipes-test/devtool/devtool-test-ignored/devtool-test- ignored.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta- selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll- patch-you-only-if-devtool-lets-me-to-do-it-corr.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta- selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a- note-line-to-the-quick-reference.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta- selftest/recipes-test/devtool/devtool-upgrade-test1- 1.5.3/backported.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta- selftest/recipes-test/gitrepotest/gitrepotest/0001-testpatch.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta- selftest/recipes-test/man-db/files/0001-Test-patch-here.patch) Missing Signed-off-by tag (/OE/layers/openembedded-core/meta- selftest/recipes-test/recipetool/files/add-file.patch)Total patches found: 13
Patches missing Signed-off-by: 9 (69%) Patches with malformed Signed-off-by: 0 (0%) Patches missing CVE: 0 (0%)
Patches missing Upstream-Status: 0 (0%) Patches with malformed Upstream-Status: 0 (0%) Patches in Pending state: 4 (31%)Signed-off-by Martin Jansa <[email protected]>---
.../devtool/devtool-patch-overrides/qemuarm/arm.patch | 2 ++
.../devtool/devtool-patch-overrides/qemux86/x86.patch | 2 ++ .../recipes-test/man-db/files/0001-Test-patch-here.patch | 2 ++3 files changed, 6 insertions(+)(quoted diff) +0
-0
overrides/qemuarm/arm.patchb/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patchindexe33a2753f9..f7f729a86c100644
--- a/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch
+++ b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch(quoted diff) +2
-0@@ -1,3 +1,5 @@ +Upstream-Status: Pending +--- source.orig 2020-10-06 13:26:10.792688630 +0100
+++ source 2020-10-06 13:26:18.853424694 +0100
@@ -1 +1 @@(quoted diff) +0
-0
overrides/qemux86/x86.patchb/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patchindex1a0a175fa8..0aa1affedd100644
--- a/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch
+++ b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch(quoted diff) +2
-0@@ -1,3 +1,5 @@ +Upstream-Status: Pending +--- source.orig 2020-10-06 13:26:10.792688630 +0100
+++ source 2020-10-06 13:26:18.853424694 +0100
@@ -1 +1 @@(quoted diff) +0
-0here.patch b/meta-selftest/recipes-test/man-db/files/0001-Test-patch- here.patch
indexb1d5eab2b8..d4d43904df100644
--- a/meta-selftest/recipes-test/man-db/files/0001-Test-patch- here.patch
+++ b/meta-selftest/recipes-test/man-db/files/0001-Test-patch- here.patch(quoted diff) +0
-0@@ -4,6 +4,8 @@ Date: Fri, 9 Feb 2018 17:37:48 +0200Subject: [PATCH] Test patch here!
This is an invalid patch used by oe-selftestmeta-selftest/recipes-test/man-db/files/0001-Test-patch-here.patch +2
-0+ +Upstream-Status: Pending---
README | 1 +
Quoted 2 lines
1 file changed, 1 insertion(+)
"Pending" implies we're going to do something with these which we're not. "Inappropriate" might be a better choice?
I mention this mainly as we have an aim of triaging all the Pending patches over time and can hopefully reduce the numbers.
Having some kind of "TestArtefact" category might be helpful in that regard...
Cheers,
Richard
PATCH 4/4 insane: add patch-status to default ERROR_QA
In reply to Martin Jansa* it's enabled for patches in oe-core for very long time and I was using it for many other layers as well, so most layers should be in good shape
* it's also possible to disable it for individual layer as shown by oe-core in:
https://git.openembedded.org/openembedded-core/commit/meta/classes-global/insane.bbclass?h=scarthgap&id=61a881fdbe8b5a21c6276b8a5d06cc30486b1eb3
--- meta/classes-global/insane.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta/classes-global/insane.bbclass +1 -2
@@ -45,11 +45,10 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ already-stripped installed-vs-shipped ldflags compile-host-path \ install-host-path pn-overrides unknown-configure-option \ useless-rpaths rpaths staticdev empty-dirs \ - patch-fuzz \ + patch-fuzz patch-status \ " # Add usrmerge QA check based on distro feature ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}" -ERROR_QA:append:layer-core = " patch-status" WARN_QA:append:layer-core = " missing-metadata missing-maintainer" FAKEROOT_QA = "host-user-contaminated"
Signature · 1 line
2.45.2
Patchtest results for [RESENDv3][PATCH 1/4] selftest: gitrepotest: add Upstream-Status to 0001-testpatch.patch
In reply to Martin JansaThank 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/RESENDv3-1-4-selftest-gitrepotest-add-Upstream-Status-to-0001-testpatch.patch.patch
FAIL: test commit message presence: Please include a commit message on your patch explaining the change (test_mbox.TestMbox.test_commit_message_presence)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
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)
SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: pretest src uri left files: No modified recipes, skipping pretest (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: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
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: No python related patches, skipping test (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: No modified recipes, skipping pretest (test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing lists (test_mbox.TestMbox.test_target_mailing_list)
---
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!