<?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>16502</bug_id>
          
          <creation_ts>2026-11-14 07:44:06 +0000</creation_ts>
          <short_desc>RRS: upstream history and distros don&apos;t check out the layer branch they parse</short_desc>
          <delta_ts>2026-11-15 00:46:35 +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>107447</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-14 07:44:06 +0000</bug_when>
    <thetext>rrs_upstream_history.py and rrs_distros.py parse a maintenance plan&apos;s recipes from whatever branch the layer&apos;s repository is checked out at, not the layer branch they are working on.

load_recipes() in rrs/tools/common.py lets recipeparse.init_parser() check out BitBake and OE-Core for the branch, but never checks out the layer itself or the layers it depends on. The layer index updates leave each repository on whichever branch they updated last, so the RRS scripts parse whatever happens to be there.

On a test instance meta-openembedded and meta-intel were checked out at dunfell while upstream history worked on master: 1010 recipes failed with &quot;file ... not found&quot; (the master recipe file names don&apos;t exist on dunfell) or &quot;contains an operation using the old override syntax&quot;.

Fix: unless nocheckout is set, have load_recipes() check out the layer branch, and the branches of the layers it depends on, after init_parser() and before parsing, as update_layer.py does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107462</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 00:46:35 +0000</bug_when>
    <thetext>Patch 4/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>