Bug 15774 - bb.warnonce not properly accounted for in the build "Summary" report
Summary: bb.warnonce not properly accounted for in the build "Summary" report
Status: NEW
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 5.0.5
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.2 M2
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2025-02-26 22:28 UTC by Daniel LeBlanc
Modified: 2026-10-01 15:47 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)