When generating CVE report using scripts/contrib/improve_kernel_cve_report.py at times there is a list of files in the description field line 109: "description": f"Source code not compiled by config. {affected_files}" the variable is an unsorted set and this results in the output being "random" This can make comparisons of one build to another unnecessary complicated. I think we can just have "description": f"Source code not compiled by config. {sorted(affected_files)}" to fix the sequence order
Andrew, can you send a patch? https://docs.yoctoproject.org/contributor-guide/index.html
already done by my colleague Daniel Turull daniel.turull@ericsson.com openembedded-core@lists.openembedded.org Daniel Turull; Andrew Fenner From: Daniel Turull <daniel.turull@ericsson.com> Sorting the set so the that output is predictable Signed-off-by: Andrew Fenner <andrew.fenner@est.tech> Signed-off-by: Daniel Turull <daniel.turull@ericsson.com> --- scripts/contrib/improve_kernel_cve_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/contrib/improve_kernel_cve_report.py b/scripts/contrib/improve_kernel_cve_report.py index 3a15b1ed26..27ebed2cbd 100755 --- a/scripts/contrib/improve_kernel_cve_report.py +++ b/scripts/contrib/improve_kernel_cve_report.py @@ -106,7 +106,7 @@ def get_kernel_cves(datadir, compiled_files, version): "status": "Ignored", "detail": "not-applicable-config", "summary": description, - "description": f"Source code not compiled by config. {affected_files}" + "description": f"Source code not compiled by config. {sorted(affected_files)}" } not_applicable_config +=1 # Check if we have backport
For reference, https://lore.kernel.org/openembedded-core/20260204134235.3274889-1-daniel.turull@ericsson.com/.
Patches were merged, the last one is effectively sorting the output: https://git.openembedded.org/openembedded-core/commit/?id=80ff4903ea1b839f9cd9393b314c3adfbb80b765 https://git.openembedded.org/openembedded-core/commit/?id=9ea6d9209b95f8d31975d71315fb52343e6aa729 https://git.openembedded.org/openembedded-core/commit/?id=b76da2048bf3d72708d0d26215b959d09de17da0 https://git.openembedded.org/openembedded-core/commit/?id=682e5beb0ce100ddc8413296334dfdbe0426dd38