Bug 15786

Summary: buildstats: Track down rare UnboundLocalError
Product: [Build System, Metadata & Runtime] BitBake Reporter: Randy MacLeod <randy.macleod>
Component: bitbakeAssignee: Unassigned <unassigned>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 5.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Randy MacLeod 2025-03-05 19:42:00 UTC
This commit:
   https://git.yoctoproject.org/poky/commit/?id=2bd54942917d8ed51d85cc291162002eac7bd133

is a work-around in that we don't understand why, in rare cases,
BUILDNAME can seemingly be None outside of heartbeat events.

This type of error also came up when I  was working with Sakib on 

https://git.openembedded.org/openembedded-core/commit/?id=26d82f92e5ed2ebdde158d66b86eaf248f56892a

This could be hard to reproduce but it would be good to get to the root cause of the problem.
Comment 1 Randy MacLeod 2026-03-04 23:10:17 UTC
Not worth tracking. 

If this you see this error, please explain what you were doing and 
re-open this defect.