<?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>15786</bug_id>
          
          <creation_ts>2025-03-05 19:42:00 +0000</creation_ts>
          <short_desc>buildstats: Track down rare UnboundLocalError</short_desc>
          <delta_ts>2026-03-04 23:10:17 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy MacLeod">randy.macleod</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.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>101292</commentid>
    <comment_count>0</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-03-05 19:42:00 +0000</bug_when>
    <thetext>This commit:
   https://git.yoctoproject.org/poky/commit/?id=2bd54942917d8ed51d85cc291162002eac7bd133

is a work-around in that we don&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104501</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-04 23:10:17 +0000</bug_when>
    <thetext>Not worth tracking. 

If this you see this error, please explain what you were doing and 
re-open this defect.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>