<?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>12587</bug_id>
          
          <creation_ts>2018-03-06 19:04:48 +0000</creation_ts>
          <short_desc>[2.4.2 rc2] test_sstate_sametune_samesigs (sstatetests.SStateTests)</short_desc>
          <delta_ts>2018-03-12 22:48:53 +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>core</component>
          <version>2.4.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://centaurus01.png.intel.com:8010</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Chan">aaron.chun.yew.chan</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>aaron.chun.yew.chan</cc>
    
    <cc>apoorv.sangal</cc>
    
    <cc>ee.peng.yeoh</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>robin.l.jordan</cc>
    
    <cc>ross.burton</cc>
    
    <cc>stephano</cc>
          <deadline>2018-03-30</deadline>
          <qa_contact name="Aaron Chan">aaron.chun.yew.chan</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</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>79734</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Chan">aaron.chun.yew.chan</who>
    <bug_when>2018-03-06 19:04:48 +0000</bug_when>
    <thetext>In 2.4.2 rc2 QA autobuilder testruns discover a Oe-selftest failure common on 
Debian 9 and OpenSuse 42.3 Linux Distribution and all other testcases were found to be passing. Here are the details in breakdown.


OpenSuse42.3
============

Reference Link: http://centaurus01.png.intel.com:8010/builders/nightly-oe-selftest-opensuse423/builds/13/steps/Running%20oe-selftest/logs/stdio

Stdout Log:
2018-02-22 05:39:45,628 - oe-selftest - INFO -   test_sstate_sametune_samesigs (sstatetests.SStateTests)
2018-02-22 05:42:08,592 - oe-selftest - INFO -  ... FAIL (142.964s)
...
...
2018-02-22 06:24:32,669 - oe-selftest - INFO - ======================================================================
2018-02-22 06:24:32,669 - oe-selftest - INFO - FAIL [142.964s]: test_sstate_sametune_samesigs (sstatetests.SStateTests)
2018-02-22 06:24:32,669 - oe-selftest - INFO - ----------------------------------------------------------------------
2018-02-22 06:24:32,670 - oe-selftest - INFO - Traceback (most recent call last):
  File &quot;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 32, in wrapped_f
    return func(*args, **kwargs)
  File &quot;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/meta/lib/oeqa/selftest/cases/sstatetests.py&quot;, line 413, in test_sstate_sametune_samesigs
    self.assertCountEqual(files1, files2)
AssertionError: Element counts were not equal:
First has 1, Second has 0:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-sysvinit/2.88dsf-r14.do_package_write_rpm.sigdata.1160409047766e564611af437ca8e15a&apos;
First has 1, Second has 0:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-sysvinit/2.88dsf-r14.do_package_qa.sigdata.44d610245db83c87411fe6f2157d7ecb&apos;
First has 1, Second has 0:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-initscripts/1.0-r155.do_package_qa.sigdata.9ed59a3ff3168c119e9e2a1b84920eed&apos;
First has 1, Second has 0:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-initscripts/1.0-r155.do_package_write_rpm.sigdata.098579aa48494e34ffa8e3131491e9a5&apos;
First has 0, Second has 1:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-sysvinit/2.88dsf-r14.do_package_write_rpm.sigdata.fa6830a1f6474dde350997cc84a47aa6&apos;
First has 0, Second has 1:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-sysvinit/2.88dsf-r14.do_package_qa.sigdata.1cb239634f81d9861b1fba44febae2e2&apos;
First has 0, Second has 1:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-initscripts/1.0-r155.do_package_write_rpm.sigdata.e5417bbe33e6a226be69cdfc854583ae&apos;
First has 0, Second has 1:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-initscripts/1.0-r155.do_package_qa.sigdata.117b713e2fc93f4fd96bcd812515d537&apos;

2018-02-22 06:24:32,670 - oe-selftest - INFO - ----------------------------------------------------------------------
2018-02-22 06:24:32,670 - oe-selftest - INFO - Ran 317 tests in 33429.483s
2018-02-22 06:24:32,670 - oe-selftest - INFO - FAILED
2018-02-22 06:24:32,671 - oe-selftest - INFO -  (failures=1, skipped=1)

Debian 9 (Stretch)
=================
Reference Link: http://centaurus01.png.intel.com:8010/builders/nightly-oe-selftest-debian9/builds/18/steps/Running%20oe-selftest/logs/stdio

Stdout Log: 
2018-02-21 16:33:00,750 - oe-selftest - INFO - RESULTS - sstatetests.SStateTests.test_sstate_sametune_samesigs - Testcase 1369: FAILED
...
...
2018-02-21 16:33:00,563 - oe-selftest - INFO - ======================================================================
2018-02-21 16:33:00,563 - oe-selftest - INFO - FAIL [160.937s]: test_sstate_sametune_samesigs (sstatetests.SStateTests)
2018-02-21 16:33:00,563 - oe-selftest - INFO - ----------------------------------------------------------------------
2018-02-21 16:33:00,563 - oe-selftest - INFO - Traceback (most recent call last):
  File &quot;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 32, in wrapped_f
    return func(*args, **kwargs)
  File &quot;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/meta/lib/oeqa/selftest/cases/sstatetests.py&quot;, line 413, in test_sstate_sametune_samesigs
    self.assertCountEqual(files1, files2)
AssertionError: Element counts were not equal:
First has 1, Second has 0:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-initscripts/1.0-r155.do_package_qa.sigdata.117b713e2fc93f4fd96bcd812515d537&apos;
First has 1, Second has 0:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-initscripts/1.0-r155.do_package_write_rpm.sigdata.e5417bbe33e6a226be69cdfc854583ae&apos;
First has 1, Second has 0:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-sysvinit/2.88dsf-r14.do_package_write_rpm.sigdata.fa6830a1f6474dde350997cc84a47aa6&apos;
First has 1, Second has 0:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-sysvinit/2.88dsf-r14.do_package_qa.sigdata.1cb239634f81d9861b1fba44febae2e2&apos;
First has 0, Second has 1:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-initscripts/1.0-r155.do_package_qa.sigdata.9ed59a3ff3168c119e9e2a1b84920eed&apos;
First has 0, Second has 1:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-initscripts/1.0-r155.do_package_write_rpm.sigdata.098579aa48494e34ffa8e3131491e9a5&apos;
First has 0, Second has 1:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-sysvinit/2.88dsf-r14.do_package_write_rpm.sigdata.1160409047766e564611af437ca8e15a&apos;
First has 0, Second has 1:  &apos;~/autobuilder/yocto-worker/nightly-oe-selftest-debian9/build/build/tmp-sstatesamehash/stamps/x86-pokymllib32-linux/lib32-sysvinit/2.88dsf-r14.do_package_qa.sigdata.44d610245db83c87411fe6f2157d7ecb&apos;

2018-02-21 16:33:00,564 - oe-selftest - INFO - ----------------------------------------------------------------------
2018-02-21 16:33:00,564 - oe-selftest - INFO - Ran 317 tests in 34716.151s
2018-02-21 16:33:00,564 - oe-selftest - INFO - FAILED
2018-02-21 16:33:00,564 - oe-selftest - INFO -  (failures=1, skipped=1)

Summary:
The test_sstate_sametune_samesigs() test[1] is trying to ensure that the sstate checksums generated for two identical configurations are the same. It does so by generating the two lists and using Python unittest’s assertCountEqual() method[2] to compare the two and ensure that they have the same elements (regardless of order).

The AssertionError we’re seeing is because the two generated lists *don’t* contain the same elements, and therefore the test failed. The output (as produced by unittest) attempts to show how the two lists differ. I’d guess a change in either multilib or the sysvinit &amp; initscripts recipes are the cause of the failure, although it’s strange we didn’t see this when building the release.

Joshua

1.	http://git.yoctoproject.org/clean/cgit.cgi/poky/tree/meta/lib/oeqa/selftest/cases/sstatetests.py?h=rocko#n371
2.	https://docs.python.org/3.2/library/unittest.html#unittest.TestCase.assertCountEqual</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79750</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-03-08 04:51:33 +0000</bug_when>
    <thetext>Does the QA autobuilder enable rm_work?  I see these errors with rm_work enabled but not if I disable it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79768</commentid>
    <comment_count>2</comment_count>
    <who name="Aaron Chan">aaron.chun.yew.chan</who>
    <bug_when>2018-03-08 18:27:22 +0000</bug_when>
    <thetext>Hi Ross,

I&apos;m not aware if there is such a feature in autobuilder and try to search for the keyword &quot;rm_work&quot; and it did not return me any results. Could you elaborate more and explain to me what &quot;rm_work&quot; does?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79770</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-03-09 02:19:42 +0000</bug_when>
    <thetext>You&apos;d have to have added INHERIT += &quot;rm_work&quot; to the local.conf.  If you didn&apos;t do this then I can&apos;t replicate these failures...

Would you be able to re-run selftest on that autobuilder with the same SHA to see if they&apos;re reproducible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79778</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-03-09 06:20:09 +0000</bug_when>
    <thetext>Chased this and Richard&apos;s encyclopaedic knowledge of previous commits remembered that we&apos;d hit this in master.

Now backported to poky:rocko fe2c3c59e3c7c98d1683a0aa81868b8696b1116b.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79791</commentid>
    <comment_count>5</comment_count>
    <who name="Aaron Chan">aaron.chun.yew.chan</who>
    <bug_when>2018-03-12 22:48:53 +0000</bug_when>
    <thetext>Hi Ross Burton,

The following changes has been verified in our PG local autobuilder as:

http://centaurus01.png.intel.com:8010/builders/nightly-oe-selftest-debian9/builds/26/steps/Running%20oe-selftest/logs/stdio

On the ~/build/build/conf/auto.conf

INHERIT += &quot;report-error&quot;
DISTRO = &quot;poky&quot;
PACKAGE_CLASSES = &quot;package_rpm&quot;
BB_NUMBER_THREADS = &quot;16&quot;
PARALLEL_MAKE = &quot;-j 16&quot;
SDKMACHINE ?= &quot;x86_64&quot;
IMAGE_FSTYPES_append = &quot;  tar.gz&quot;
BB_TASK_NICE_LEVEL = &quot;5&quot;
BB_TASK_NICE_LEVEL_task-testimage = &quot;0&quot;
BB_TASK_IONICE_LEVEL = &quot;2.7&quot;
BB_TASK_IONICE_LEVEL_task-testimage = &quot;2.1&quot;
DL_DIR = &quot;/srv/data/sources&quot;
MACHINE = &quot;qemux86-64&quot;
PREMIRRORS = &quot;&quot;
ADTREPO = &quot;http://adtrepo.yoctoproject.org//2.4.2&quot;
QEMU_USE_KVM = &quot;True&quot;
SANITY_TESTED_DISTROS = &quot;&quot;
RPM_GPG_SIGN_CHUNK = &quot;1&quot;
INHERIT += &quot;rm_work&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>