<?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>12885</bug_id>
          
          <creation_ts>2018-08-14 05:51:48 +0000</creation_ts>
          <short_desc>[2.5.1 rc1] selftest wic test cases produce random results on debian9</short_desc>
          <delta_ts>2018-11-27 15:02:11 +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.5.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</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>2.5.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mohamad Noor Alim">mohamad.noor.alim.hussin</reporter>
          <assigned_to name="Anuj Mittal">anuj.mittal</assigned_to>
          <cc>akuster</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="Mohamad Noor Alim">mohamad.noor.alim.hussin</qa_contact>
          <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>81335</commentid>
    <comment_count>0</comment_count>
    <who name="Mohamad Noor Alim">mohamad.noor.alim.hussin</who>
    <bug_when>2018-08-14 05:51:48 +0000</bug_when>
    <thetext>There are some test cases for oe-selftest failed on Debian9. The test cases are as follows:
- wic.wic.test_bmap_short
- wic.wic.test_compress_xz 
- wic.wic.test_exclude_path

These test cases passed if run manually. Every time we rerun the oe-selftest, some of the wic test case would failed and some passed.
These are examples of error messages

2018-08-08 08:28:28,146 - oe-selftest - INFO - ======================================================================
2018-08-08 08:28:28,146 - oe-selftest - INFO - FAIL [34.487s]: test_bmap_short (wic.Wic)
2018-08-08 08:28:28,146 - oe-selftest - INFO - ----------------------------------------------------------------------
2018-08-08 08:28:28,147 - oe-selftest - INFO - Traceback (most recent call last):
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 32, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/cases/wic.py&quot;, line 529, in test_bmap_short
    status = runCmd(cmd).status
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 191, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;wic create wictestdisk -e core-image-minimal -m -o /var/tmp/wic.oe-selftest/&apos; returned non-zero exit status 1:
INFO: Building wic-tools...

2018-08-08 08:28:28,147 - oe-selftest - INFO - FAIL [33.813s]: test_compress_xz (wic.Wic)
2018-08-08 08:28:28,147 - oe-selftest - INFO - ----------------------------------------------------------------------
2018-08-08 08:28:28,147 - oe-selftest - INFO - Traceback (most recent call last):
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 32, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/cases/wic.py&quot;, line 304, in test_compress_xz
    &quot;--compress-with=xz -o %s&quot; % self.resultdir).status)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 191, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;wic create wictestdisk --image-name=core-image-minimal --compress-with=xz -o /var/tmp/wic.oe-selftest/&apos; returned non-zero exit status 1:
INFO: Building wic-tools...

2018-08-13 13:42:17,392 - oe-selftest - INFO - ======================================================================
2018-08-13 13:42:17,392 - oe-selftest - INFO - FAIL [40.374s]: test_exclude_path (wic.Wic)
2018-08-13 13:42:17,393 - oe-selftest - INFO - ----------------------------------------------------------------------
2018-08-13 13:42:17,393 - oe-selftest - INFO - Traceback (most recent call last):
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 32, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/cases/wic.py&quot;, line 415, in test_exclude_path
    % (wks_file, self.resultdir)).status)
  File &quot;/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 191, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;wic create temp.wks -e core-image-minimal -o /var/tmp/wic.oe-selftest/&apos; returned non-zero exit status 1:
INFO: Building wic-tools...
ERROR: Unable to start bitbake server</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81384</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-08-16 14:41:46 +0000</bug_when>
    <thetext>Might be worth looking at whether the native sysroot pieces of http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d9087c7c477b101fea4d35547da2d0843940cfd9 are any issue?
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5e8367e17f8ab1023b4a536348282fcea4df927d would be an issue if two selftest were running on the same machine?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82025</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-11-05 23:48:38 +0000</bug_when>
    <thetext>has anyone tried the patches pointed out? I am more than happy to back port them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82042</commentid>
    <comment_count>3</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-11-07 01:00:23 +0000</bug_when>
    <thetext>I did check this and wasn&apos;t able to reproduce on my machine. I will see if I can test it on debian9.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82170</commentid>
    <comment_count>4</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-11-12 08:18:43 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/
&gt; ?id=5e8367e17f8ab1023b4a536348282fcea4df927d would be an issue if two
&gt; selftest were running on the same machine?

I was able to test this on the debian9 builder on which this was failing. And I had to include these wic fixes by Richard to get this to build:

https://git.yoctoproject.org/cgit.cgi/poky/commit?id=5e8367e17f8ab1023b4a536348282fcea4df927d

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit?id=eacc12c2ec6d778c70f91f8c754f64c6c097f35a

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e3dcd61337fb5f89a3f875ec9dd7551529722feb

Armin, can you please include these for sumo?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82175</commentid>
    <comment_count>5</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-11-12 15:42:48 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #1)
&gt; &gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/
&gt; &gt; ?id=5e8367e17f8ab1023b4a536348282fcea4df927d would be an issue if two
&gt; &gt; selftest were running on the same machine?
&gt; 
&gt; I was able to test this on the debian9 builder on which this was failing.
&gt; And I had to include these wic fixes by Richard to get this to build:
&gt; 
&gt; https://git.yoctoproject.org/cgit.cgi/poky/
&gt; commit?id=5e8367e17f8ab1023b4a536348282fcea4df927d
&gt; 
&gt; https://git.yoctoproject.org/cgit/cgit.cgi/poky/
&gt; commit?id=eacc12c2ec6d778c70f91f8c754f64c6c097f35a
&gt; 
&gt; https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
&gt; ?id=e3dcd61337fb5f89a3f875ec9dd7551529722feb
&gt; 
&gt; Armin, can you please include these for sumo?

Got them in stable/sumo-nmu for testing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82329</commentid>
    <comment_count>6</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-11-27 06:33:53 +0000</bug_when>
    <thetext>This was merged, marking as resolved. Alim, can you please let me know if see this again?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82334</commentid>
    <comment_count>7</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-11-27 15:02:11 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; This was merged, marking as resolved. Alim, can you please let me know if
&gt; see this again?

Yes, this is in sumo proper

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=sumo&amp;id=8799bc3171872f04429eee511693efb9842e80c0

to

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=sumo&amp;id=0b96af3645fe2f7587499ee28df37628775c5ec2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>