<?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>16501</bug_id>
          
          <creation_ts>2026-11-14 07:30:20 +0000</creation_ts>
          <short_desc>RRS: load_recipes() imports BitBake before checking out the right revision</short_desc>
          <delta_ts>2026-11-15 00:46:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Recipe Reporting System (RRS)</product>
          <component>Recipe Reporting System (RRS)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS REVIEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107446</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-14 07:30:20 +0000</bug_when>
    <thetext>rrs_upstream_history.py (and rrs_distros.py) can fail before doing anything, e.g.:

  File &quot;.../lib/bb/cooker.py&quot;, line 15, in &lt;module&gt;
    from bb import multiprocessing
  ImportError: cannot import name &apos;multiprocessing&apos; from &apos;bb&apos;

load_recipes() in rrs/tools/common.py imports bb.fetch before recipeparse.init_parser() checks out the BitBake revision for the branch, so the bb package comes from whatever revision is checked out at that moment, e.g. an old one left by rrs_upgrade_history.py, which checks out BitBake revisions from the past. The rest of BitBake is then loaded from the checked-out revision, and they don&apos;t match.

Fix: import bb.fetch after init_parser() has checked out BitBake.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107460</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 00:46:33 +0000</bug_when>
    <thetext>Patch 2/6 of the series sent to yocto-patches, under review:
https://lore.kernel.org/all/20261115003506.53654-1-tim.orling@konsulko.com/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>