<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16159</bug_id>
          
          <creation_ts>2026-02-04 09:30:33 +0000</creation_ts>
          <short_desc>files names in dscription field come in Random order</short_desc>
          <delta_ts>2026-03-06 15:58:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>6.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Fenner">Andrew.fenner</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>mathieu.dubois-briand</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104145</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Fenner">Andrew.fenner</who>
    <bug_when>2026-02-04 09:30:33 +0000</bug_when>
    <thetext>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:
 &quot;description&quot;: f&quot;Source code not compiled by config. {affected_files}&quot;

the variable is an unsorted set and this results in the output being &quot;random&quot;

This can make comparisons of one build to another unnecessary complicated.

I think we can just have 
 &quot;description&quot;: f&quot;Source code not compiled by config. {sorted(affected_files)}&quot;

to fix the sequence order</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104162</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-02-05 15:37:26 +0000</bug_when>
    <thetext>Andrew, can you send a patch?
https://docs.yoctoproject.org/contributor-guide/index.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104165</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Fenner">Andrew.fenner</who>
    <bug_when>2026-02-05 15:46:57 +0000</bug_when>
    <thetext>already done by my colleague Daniel Turull

daniel.turull@ericsson.com

​openembedded-core@lists.openembedded.org​
​Daniel Turull;​
Andrew Fenner​
From: Daniel Turull &lt;daniel.turull@ericsson.com&gt;

Sorting the set so the that output is predictable

Signed-off-by: Andrew Fenner &lt;andrew.fenner@est.tech&gt;
Signed-off-by: Daniel Turull &lt;daniel.turull@ericsson.com&gt;
---
 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):
                     &quot;status&quot;: &quot;Ignored&quot;,
                     &quot;detail&quot;: &quot;not-applicable-config&quot;,
                     &quot;summary&quot;: description,
-                    &quot;description&quot;: f&quot;Source code not compiled by config. {affected_files}&quot;
+                    &quot;description&quot;: f&quot;Source code not compiled by config. {sorted(affected_files)}&quot;
                 }
                 not_applicable_config +=1
             # Check if we have backport</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104167</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-02-05 15:54:07 +0000</bug_when>
    <thetext>For reference, https://lore.kernel.org/openembedded-core/20260204134235.3274889-1-daniel.turull@ericsson.com/.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104552</commentid>
    <comment_count>4</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-06 15:58:22 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>