Bug 14850

Summary: cve-check selftest failing
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Undecided CC: alexandre.belloni, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2022-06-29 15:20:01 UTC
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.
Comment 1 Ross Burton 2022-06-29 15:20:25 UTC
Patch on the list (cve-check: hook cleanup to the BuildCompleted event, not CookerExit).
Comment 2 Alexandre Belloni 2022-06-30 14:33:52 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1893/steps/15/logs/stdio

oe-selftest opensuse154-ty-3
Comment 3 Ross Burton 2022-06-30 14:34:37 UTC
Merged in oe-core fccdcfd301de281a427bfee48d8ff47fa07b7259.