<?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>10794</bug_id>
          
          <creation_ts>2016-12-12 21:43:21 +0000</creation_ts>
          <short_desc>Update sanity tests to cope with minimal eSDK installer</short_desc>
          <delta_ts>2017-12-06 17:20:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=aca3afcb592ef4ff070760ab2aafba03152a57fb</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M3</target_milestone>
          <dependson>10958</dependson>
          <blocked>9596</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>bluelightning</cc>
    
    <cc>francisco.j.pedraza.gonzalez</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>ross.burton</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>69058</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-12-12 21:43:21 +0000</bug_when>
    <thetext>After making changes to the autobuilder to build a minimal eSDK we observed unexpected eSDK sanity test failures. 

This is because the tests implicitly rely on a full eSDK installer, rather than installing any required components into the eSDK before testing.

In order to enable minimal eSDK installers on the autobuilder, and therefore for publishing with project releases, we need the eSDK sanity tests to handle running against a minimal eSDK installer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69829</commentid>
    <comment_count>1</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-01-16 17:09:21 +0000</bug_when>
    <thetext>I just ran:
$ . oe-init-build-env
$ echo &apos;SDK_EXT_TYPE = &quot;minimal&apos; &gt;&gt; conf/local.conf
$ bitbake core-image-minimal core-image-sato -c populate_sdk_ext
$ echo &apos;INHERIT += &quot;testsdk&quot;&apos; &gt;&gt; conf/local.conf
$ DISPLAY=:1 bitbake core-image-minimal core-image-sato -c testsdkext

and I successfully could reproduce the error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69839</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-01-16 21:07:51 +0000</bug_when>
    <thetext>Hi,

Currently there is no way to see what is installed in the extensible sdk see bug [1], so i suggest to add a checking like [2] but this will end in no tests runs on FULL eSDK because of the bug [1].

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=9038
[2] http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/lib/oeqa/sdk/gcc.py#n9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69841</commentid>
    <comment_count>3</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-01-16 21:08:34 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hi,
&gt; 
&gt; Currently there is no way to see what is installed in the extensible sdk see
&gt; bug [1], so i suggest to add a checking like [2] but this will end in no
&gt; tests runs on FULL eSDK because of the bug [1].
&gt; 
&gt; [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=9038
&gt; [2]
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/lib/oeqa/sdk/gcc.
&gt; py#n9

I think the missing package is autotools, right Joshua?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69842</commentid>
    <comment_count>4</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-01-16 21:46:47 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Hi,
&gt; &gt; 
&gt; &gt; Currently there is no way to see what is installed in the extensible sdk see
&gt; &gt; bug [1], so i suggest to add a checking like [2] but this will end in no
&gt; &gt; tests runs on FULL eSDK because of the bug [1].
&gt; &gt; 
&gt; &gt; [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=9038
&gt; &gt; [2]
&gt; &gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/lib/oeqa/sdk/gcc.
&gt; &gt; py#n9
&gt; 
&gt; I think the missing package is autotools, right Joshua?

Thanks Anibal, working on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69875</commentid>
    <comment_count>5</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-01-18 02:26:14 +0000</bug_when>
    <thetext>Implemented the same procedure as sdk/gcc.py
if not oeSDKTest.hasHostPackage(&quot; &quot; + machine):
        skipModule(&quot;SDK doesn&apos;t contain a cross-canadian toolchain&quot;).
Getting good skiping, however I got a regression for &quot;test_extend_autotools_recipe_creation&quot;, will check this tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69970</commentid>
    <comment_count>6</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-01-20 18:05:41 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Implemented the same procedure as sdk/gcc.py
&gt; if not oeSDKTest.hasHostPackage(&quot; &quot; + machine):
&gt;         skipModule(&quot;SDK doesn&apos;t contain a cross-canadian toolchain&quot;).
&gt; Getting good skiping, however I got a regression for
&gt; &quot;test_extend_autotools_recipe_creation&quot;, will check this tomorrow.

I just noticed that gcc is not installed on minimal and that could be the failure. Still working on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69977</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-01-20 20:16:14 +0000</bug_when>
    <thetext>Currently that&apos;s by design, unless SDK_INCLUDE_TOOLCHAIN = &quot;1&quot; is set. The expectation is that you use devtool exclusively or you install the toolchain using devtool sdk-install.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70066</commentid>
    <comment_count>8</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-01-23 23:17:09 +0000</bug_when>
    <thetext>Created bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=10958 due some issues after modified files at &quot;~/oeqa/sdk/buildiptables.py&quot; and &quot;~/oeqa/sdk/buildcvs.py&quot;. That bug blockes this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70096</commentid>
    <comment_count>9</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-01-24 21:32:18 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Currently that&apos;s by design, unless SDK_INCLUDE_TOOLCHAIN = &quot;1&quot; is set. The
&gt; expectation is that you use devtool exclusively or you install the toolchain
&gt; using devtool sdk-install.

Thank you Paul,
I just fixed this.
Regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70099</commentid>
    <comment_count>10</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-01-24 21:45:50 +0000</bug_when>
    <thetext>Pushed to contrib: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fjpedraz/eSDK_sanity_tests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70130</commentid>
    <comment_count>11</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-01-25 17:09:47 +0000</bug_when>
    <thetext>Moved to &quot;In Progress Review&quot; http://lists.openembedded.org/pipermail/openembedded-core/2017-January/131773.html already sent the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70313</commentid>
    <comment_count>12</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-02-01 02:13:46 +0000</bug_when>
    <thetext>Fix commited in master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=aca3afcb592ef4ff070760ab2aafba03152a57fb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70962</commentid>
    <comment_count>13</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-02-27 16:43:33 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64/builds/1132/steps/Running%20ESDK%20Sanity%20Tests/logs/stdio

The tests are not updated for minimal test cases, they just skip some of the tests but not all of them so the tests still fail.

In a minimal SDK the SDK has nothing in the sysroot.  I think the first thing the tests need to do is populate the SDK sysroot, which means running:

$ bitbake &lt;IMAGENAME&gt; -c rootfs-

(trailing hyphen)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71139</commentid>
    <comment_count>14</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-03-08 17:24:39 +0000</bug_when>
    <thetext>oe-core 20c6e876ed6b8c8ac007848e2b36e9a8a56bb703 contains all the fixes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>