<?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>14850</bug_id>
          
          <creation_ts>2022-06-29 15:20:01 +0000</creation_ts>
          <short_desc>cve-check selftest failing</short_desc>
          <delta_ts>2022-06-30 14:34:37 +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>core</component>
          <version>unspecified</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>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>93609</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-06-29 15:20:01 +0000</bug_when>
    <thetext>All of a sudden, cve-check selftest fails:

oe-selftest - INFO - RESULTS - cve_check.CVECheck.test_recipe_report_json: FAILED (12.71s)
oe-selftest - INFO - RESULTS - cve_check.CVECheck.test_recipe_report_json_ignored: FAILED (13.37s)
oe-selftest - INFO - RESULTS - cve_check.CVECheck.test_recipe_report_json_unpatched: FAILED (20.04s)

The relevant log:
Complete CVE report summary created at: /yocto/ross/build-selftest-st-1060560/tmp/log/cve/cve-summary
NOTE: Generating JSON CVE summary
ERROR: Error adding the same package twice
ERROR: Error adding the same package twice
Complete CVE JSON report summary created at: /yocto/ross/build-selftest-st-1060560/tmp/log/cve/cve-summary.json
Summary: There were 2 ERROR messages, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93610</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-06-29 15:20:25 +0000</bug_when>
    <thetext>Patch on the list (cve-check: hook cleanup to the BuildCompleted event, not CookerExit).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93612</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-06-30 14:33:52 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1893/steps/15/logs/stdio

oe-selftest opensuse154-ty-3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93613</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-06-30 14:34:37 +0000</bug_when>
    <thetext>Merged in oe-core fccdcfd301de281a427bfee48d8ff47fa07b7259.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>