<?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>13055</bug_id>
          
          <creation_ts>2018-12-01 13:01:45 +0000</creation_ts>
          <short_desc>oe-selftest runcmd.RunCmdTests.test_stdin failure</short_desc>
          <delta_ts>2020-06-23 15:03:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>mhalstead</cc>
    
    <cc>randy.macleod</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>82377</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-12-01 13:01:45 +0000</bug_when>
    <thetext>http://errors.yoctoproject.org/Errors/Details/202611/
https://autobuilder.yoctoproject.org/typhoon/#builders/87/builds/31

2018-11-29 17:23:36,847 - oe-selftest - INFO - runcmd.RunCmdTests.test_stdin (subunit.RemotedTestCase)
2018-11-29 17:23:36,848 - oe-selftest - INFO -  ... FAIL
2018-11-29 17:23:36,848 - oe-selftest - INFO - 0: 16/21 38/338 (0.04s) (runcmd.RunCmdTests.test_stdin)
2018-11-29 17:23:36,848 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 32, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/runcmd.py&quot;, line 110, in test_stdin
    self.assertEqual(numthreads, threading.active_count())
  File &quot;/usr/lib/python3.5/unittest/case.py&quot;, line 820, in assertEqual
    assertion_func(first, second, msg=msg)
  File &quot;/usr/lib/python3.5/unittest/case.py&quot;, line 813, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: 1 != 2


2018-11-29 17:23:41,899 - oe-selftest - INFO - runcmd.RunCmdTests.test_stdin_timeout (subunit.RemotedTestCase)
2018-11-29 17:23:41,899 - oe-selftest - INFO -  ... ok</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85508</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-11-08 22:59:05 +0000</bug_when>
    <thetext>Occurred again:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/477

2019-11-08 20:53:52,904 - oe-selftest - INFO - ======================================================================
2019-11-08 20:53:52,904 - oe-selftest - INFO - FAIL: runcmd.RunCmdTests.test_stdin (subunit.RemotedTestCase)
2019-11-08 20:53:52,905 - oe-selftest - INFO - ----------------------------------------------------------------------
2019-11-08 20:53:52,905 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/runcmd.py&quot;, line 100, in test_stdin
    self.assertEqual(numthreads, threading.active_count())
  File &quot;/usr/lib64/python3.7/unittest/case.py&quot;, line 852, in assertEqual
    assertion_func(first, second, msg=msg)
  File &quot;/usr/lib64/python3.7/unittest/case.py&quot;, line 845, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: 1 != 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85576</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-11-19 16:31:07 +0000</bug_when>
    <thetext>It&apos;s good to get self-tests working reliably sooner rather than later so tar3.1-M1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86784</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-03-24 03:32:46 +0000</bug_when>
    <thetext>Richard, I tried to find out if this problem has been happening in the YP autobuilder in recent build failures but once again, my lack of skill at retrieving data from the autobuilder is apparent. I checked the most recent ~5 build errors that seemed like likely candidates but none match this signature.
Are you still seeing this error and if so can you explain how you find the logs in the autobuilder without examining the error section of each and every failure log?

I am filtering by oe-selftest-FOO, such as the ubuntu runs show here:
https://autobuilder.yoctoproject.org/typhoon/#/builders/87</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87500</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-17 03:39:45 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/1033</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87536</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-22 14:28:00 +0000</bug_when>
    <thetext>As a bit more information this test is testing passing &quot;stdin&quot; data to a command being run by &quot;runCmd&quot;. The check is to see whether  threading.active_count() is the same at the end of the test as it is at the start. In this case there are clearly more active threads than when we started. The question is then, why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87538</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-22 14:56:56 +0000</bug_when>
    <thetext>I think I figured this one out, you see the failure if you add a &quot;time.sleep(10)&quot; to the end of writeThread() in runCmd(). Patch sent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87559</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-23 15:03:02 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=fde0637e1cabfb2d39eff1a57f3d4c7c55061fc3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>