Bug 15774

Summary: bb.warnonce not properly accounted for in the build "Summary" report
Product: [Build System, Metadata & Runtime] BitBake Reporter: Daniel LeBlanc <daniel.leblanc>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher, randy.macleod
Version: 5.0.5   
Target Milestone: 6.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Daniel LeBlanc 2025-02-26 22:28:30 UTC
Example: 

My project currently reports 2 warnings.

If I add a bb.warn in a recipe, as expected, the reported warnings count in the "Summary" report goes up to 10 because the recipe is parsed multiple times.

If I use bb.warnonce instead, the warning appears once as expected, however, the "Summary" report is back to reporting only 2 warnings.

So it seems the report does not properly account for the added bb.warnonce warning.

Yocto version: scarthgap-5.0.5 (dce4163)