<?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>10035</bug_id>
          
          <creation_ts>2016-07-26 21:02:26 +0000</creation_ts>
          <short_desc>oe-selftest: Use SSTATES without corrupting them.</short_desc>
          <delta_ts>2017-06-14 21:23:47 +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>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>10929</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3 M3</target_milestone>
          <dependson>10929</dependson>
    
    <dependson>10937</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Lopez">mariano.lopez</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>juan.fernandox.ramos.frayle</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Jose Perez C">jose.perez.carranza</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</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>64513</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-07-26 21:02:26 +0000</bug_when>
    <thetext>Currently the oe-selftest run takes a lot of time to complete in the autobuilders. A speed up can be from using SSTATES when building the images and the SDK; the problem is the test could corrupt the SSTATES, so a cache would be needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65649</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-08-31 15:05:36 +0000</bug_when>
    <thetext>Due to time constrains, moving it to next enhancement window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67946</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-03 22:11:32 +0000</bug_when>
    <thetext>I would like to see how the SSTATES get corrupted, how can I check this out?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67953</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-11-03 22:20:25 +0000</bug_when>
    <thetext>I have never actually seen this. I opened the bug because I was told that this was the reason for selftest not using SSTATES, I don&apos;t remember who said that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68004</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-11-04 21:23:10 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I have never actually seen this. I opened the bug because I was told that
&gt; this was the reason for selftest not using SSTATES, I don&apos;t remember who
&gt; said that.

Mariano, I believe &apos;corrupted&apos; means that the shared states are touched by the selftests thus effectively changing the state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68029</commentid>
    <comment_count>5</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-07 17:50:54 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; 
&gt; Mariano, I believe &apos;corrupted&apos; means that the shared states are touched by
&gt; the selftests thus effectively changing the state.
This bug was filed as a result of a comment from RP and we&apos;ve already discussed what corrupted means and it doesn&apos;t look like corrupted = changed in this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68030</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-11-07 17:54:21 +0000</bug_when>
    <thetext>Corrupted here means that sstate gets deleted. Nothing on the autobuilder should run a &quot;-c cleansstate&quot;.

The issue is that a build can be part way through running having checked sstate exists, then it can find it no longer does whilst its trying to use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68031</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-11-07 17:55:45 +0000</bug_when>
    <thetext>We could just use the sstate as a read only mirror for oe-selftest to ensure that it can&apos;t delete things. Where a test needs to run an sstate clean, it could use &quot;-f&quot; to force a taint to a hash instead?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68042</commentid>
    <comment_count>8</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-07 19:48:55 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; We could just use the sstate as a read only mirror for oe-selftest to ensure
&gt; that it can&apos;t delete things. Where a test needs to run an sstate clean, it
&gt; could use &quot;-f&quot; to force a taint to a hash instead?

thanks for the clarification Richard.

Mariano, this looks like a way to start the investigation on this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68511</commentid>
    <comment_count>9</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-22 20:45:02 +0000</bug_when>
    <thetext>Assigning it to Leo whom will try to get it done for M1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70084</commentid>
    <comment_count>10</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-01-24 16:25:20 +0000</bug_when>
    <thetext>The is a newer bug (10929), filed by RP reporting an symptom of the main problem. Benjamin did some work on 10929 thus is more advance that this one. Making this as duplicated of 10929.

*** This bug has been marked as a duplicate of bug 10929 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74173</commentid>
    <comment_count>11</comment_count>
    <who name="Juan Ramos">juan.fernandox.ramos.frayle</who>
    <bug_when>2017-06-14 21:23:47 +0000</bug_when>
    <thetext>Verified, tested with commit b6a1004c73820cff833f2b6f09d2432706f5447a, no SSTATES were corrupted after selftest</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>