<?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>5953</bug_id>
          
          <creation_ts>2014-03-12 10:14:34 +0000</creation_ts>
          <short_desc>Add a test to ensure buildhistory does not change signatures</short_desc>
          <delta_ts>2015-12-28 12:53:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</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>TC needed</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Daniel Istrate">daniel.alexandrux.istrate</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>daniel.alexandrux.istrate</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>41129</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-12 10:14:34 +0000</bug_when>
    <thetext>In 1.6 we&apos;ve made it so that adding and removing INHERIT += &quot;buildhistory&quot; will not change task signatures (other than perhaps do_rootfs or do_populate_sysroot itself). However, because this is dependent on us tweaking variable dependencies to avoid signatures changing, the way the signatures are calculated can change as fixes go in so it&apos;s possible we will have regressions in future (as shown demonstrated in bug 5897). Thus, we should have a test to ensure that this continues to work as expected.

The test would be as follows:

1) Ensure core-image-minimal (or some other image) is built, without INHERIT += &quot;buildhistory&quot; in the configuration. This doesn&apos;t have to be done as part of the test, we just need TMPDIR populated.

2) Add INHERIT += &quot;buildhistory&quot; to the configuration and then bitbake the image again

3) Check if any real tasks other than do_rootfs executed.

Alternatively, we could combine this with a test of buildhistory operation when restoring from the sstate cache:

1) Ensure sstate is populated for an image (without INHERIT += &quot;buildhistory&quot; in the configuration), and TMPDIR is deleted. Again, this doesn&apos;t have to be done as part of the test, we just need the cache populated.

2) Add INHERIT += &quot;buildhistory&quot; to the configuration and then bitbake the image again

3) Check if any real tasks other than do_rootfs executed.

4) Check if buildhistory for the image and packages that are included in the image was correctly populated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57251</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-12-14 15:48:26 +0000</bug_when>
    <thetext>With the new sstate test infrastructure we can do better than running a build, it can be modelled on lib/oe/qa/selftest/sstatetests.py, take something like test_sstate_sametune_samesigs() but create a version which does &quot;bitbake core-image-sato -S none&quot;, then add buildhistory, do &quot;bitbake core-image-sato -S none&quot; again, then check that no new sigatures appears apart from do_rootfs/do_build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57276</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-12-15 14:34:32 +0000</bug_when>
    <thetext>Patch sent to ML: http://lists.openembedded.org/pipermail/openembedded-core/2015-December/114156.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57477</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-12-28 12:53:12 +0000</bug_when>
    <thetext>As of 4c35473a186569daf1685dc3190972299070a661 patch merged into master.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>