<?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>15588</bug_id>
          
          <creation_ts>2024-09-04 11:26:40 +0000</creation_ts>
          <short_desc>do_fetch dependency on do_recipe_qa causes hash problems for sstate</short_desc>
          <delta_ts>2024-09-06 14:26:57 +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>OE-Core</product>
          <component>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alban Bedel">alban.bedel</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>99608</commentid>
    <comment_count>0</comment_count>
    <who name="Alban Bedel">alban.bedel</who>
    <bug_when>2024-09-04 11:26:40 +0000</bug_when>
    <thetext>The sstate machinery has some special handling to make the do_fetch state not depends on the package arch. But since the recipe QA was added in commit e0c71367ab59 (&quot;insane.bbclass: add do_recipe_qa task&quot;) the do_fetch task depend on the do_recipe_qa task which is arch specific. This then indirectly make the task hash of do_fetch be arch specific and lead to some needless sstate mismatch.

The do_recipe_qa task is also set to run before do_package_qa and do_build so it would just run a bit later without this dependency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99610</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-09-05 08:36:48 +0000</bug_when>
    <thetext>The reason it was injected before fetch was so that it runs early in the build and quickly shows the user recipe QA issues. I&apos;m not a huge fan of that position but there are definite pros and cons to it. I recently did some work to improve the ERROR_QA dependency and I&apos;m hoping that improved that task. Whether it is still arch specific, I&apos;m not sure but it should at least be better with master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99623</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-09-06 14:26:57 +0000</bug_when>
    <thetext>Causing a &quot;hash problem&quot; isn&apos;t strictly true since do_fetch isn&apos;t an sstate task. I agree they are too arch specific at the moment though. I merged some fixes:

https://git.yoctoproject.org/poky/commit/?id=6cc2a3649a03da8b2ebc4fff4b7bd9ba4eb76497

when then allows:

https://git.yoctoproject.org/poky/commit/?id=27eeb5e70bcc872b9d06caf27977a82732f64c77</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>