<?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>14177</bug_id>
          
          <creation_ts>2021-01-06 06:40:34 +0000</creation_ts>
          <short_desc>AB-INT PTEST: tcl ptest intermittent failure</short_desc>
          <delta_ts>2021-07-15 14:56:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Package Testing (ptest)</product>
          <component>ptest</component>
          <version>3.3</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.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Naveen Saini">naveen.kumar.saini</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>bluelightning</cc>
    
    <cc>chee.yang.lee</cc>
    
    <cc>flowergom</cc>
    
    <cc>jon.mason</cc>
    
    <cc>kory.maincent</cc>
    
    <cc>leonardo.sandoval</cc>
    
    <cc>oobitots</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</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>88870</commentid>
    <comment_count>0</comment_count>
    <who name="Naveen Saini">naveen.kumar.saini</who>
    <bug_when>2021-01-06 06:40:34 +0000</bug_when>
    <thetext>tcl ptest failure on qemux86-64 machine (master-next)

AssertionError: Failed ptests:
{&apos;tcl&apos;: [&apos;socket.test&apos;]}

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/1654</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88940</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-01-14 16:24:11 +0000</bug_when>
    <thetext>Grace, please work on this in the coming weeks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89050</commentid>
    <comment_count>2</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2021-01-28 01:49:12 +0000</bug_when>
    <thetext>I didn&apos;t reproduce the issue locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89071</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-01-28 17:12:56 +0000</bug_when>
    <thetext>The autobuilder log doesn&apos;t seem to be of much help. Here&apos;s the log:
--------------------------------------------------------------------------------------------------------------------------------------------------------
NOTE: Running task 910 of 910 (/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb:do_testimage)
NOTE: recipe core-image-sato-sdk-ptest-1.0-r0: task do_testimage: Started
Bitbake still alive (5000s)
WARNING: core-image-sato-sdk-ptest-1.0-r0 do_testimage: There were failing ptests.
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 25, in test_ptestrunner_expectfail
    self.do_ptestrunner()
  File &quot;/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 112, in do_ptestrunner
    self.fail(failmsg)
AssertionError: Failed ptests:
{&apos;tcl&apos;: [&apos;socket.test&apos;]}
Cannot run ptests without @expectedFailure as ptests are expected to fail
RESULTS:
RESULTS - ping.PingTest.test_ping: PASSED (0.07s)
RESULTS - ssh.SSHTest.test_ssh: PASSED (0.23s)
RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectsuccess: SKIPPED (0.00s)
RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectfail: EXPECTEDFAIL (9679.28s)
SUMMARY:
core-image-sato-sdk-ptest () - Ran 4 tests in 9679.593s
core-image-sato-sdk-ptest - OK - All required tests passed (successes=2, skipped=1, failures=0, errors=0)
NOTE: recipe core-image-sato-sdk-ptest-1.0-r0: task do_testimage: Succeeded
NOTE: Tasks Summary: Attempted 910 tasks of which 909 didn&apos;t need to be rerun and all succeeded.
Summary: There was 1 WARNING message shown.
/usr/lib64/python3.8/subprocess.py:844: RuntimeWarning: line buffering (buffering=1) isn&apos;t supported in binary mode, the default buffer size will be used
  self.stdout = io.open(c2pread, &apos;rb&apos;, bufsize)
program finished with exit code 0
elapsedTime=9726.330243
--------------------------------------------------------------------------------------------------------------------------------------------------------

the socket.test is doing quite a bit, can you add some logging so that we can find out what part of the tests is failing should it happen again?
We do have access to the autobuilder so we can run tests overnight and we can manually collect logs if needed.

Did you try to do a separate build and/or use stress-ng to generate high cpu/io load while the tests were running?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89376</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval">leonardo.sandoval</who>
    <bug_when>2021-02-24 20:40:16 +0000</bug_when>
    <thetext>Another event of the same problem

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1560/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89377</commentid>
    <comment_count>5</comment_count>
    <who name="Leonardo Sandoval">leonardo.sandoval</who>
    <bug_when>2021-02-24 20:41:40 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Another event of the same problem
&gt; 
&gt; https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1560/steps/
&gt; 12/logs/stdio

Another from the same AB collection

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/1842/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89384</commentid>
    <comment_count>6</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2021-02-25 08:45:16 +0000</bug_when>
    <thetext>Hi Leonardo,

The link you posted is not the failed log for tcl and it should be as expected at some point. BTW, I couldn&apos;t reproduce the tcl ptest failure locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89388</commentid>
    <comment_count>7</comment_count>
    <who name="Leonardo Sandoval">leonardo.sandoval</who>
    <bug_when>2021-02-25 15:20:13 +0000</bug_when>
    <thetext>@Mingli, you are right. Somehow, I through these were the same issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89408</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-02-25 16:39:30 +0000</bug_when>
    <thetext>@Mingli, Please add some logging so that we can find out what part of the tests is failing should it happen again. Richard is happy to add such changes to the master-next branch to improve the test results on the autobuilders.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89415</commentid>
    <comment_count>9</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-02-26 01:38:30 +0000</bug_when>
    <thetext>An other tcl ptest failed:

AssertionError: Failed ptests:
{&apos;tcl&apos;: [&apos;interp.test&apos;]}

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1531/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89418</commentid>
    <comment_count>10</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-02-26 01:55:31 +0000</bug_when>
    <thetext>&apos;tcl&apos;: [&apos;interp.test&apos;]

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1550/steps/12/l
ogs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89554</commentid>
    <comment_count>11</comment_count>
    <who name="Köry Maincent">kory.maincent</who>
    <bug_when>2021-03-09 16:16:55 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/1892/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89568</commentid>
    <comment_count>12</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-03-11 14:28:36 +0000</bug_when>
    <thetext>So far, happened:

3 times on ubuntu1804-arm-1
1  time on fedora-ty-1
1  time on ubuntu1804-ty-1
1  time on tumbleweed-ty-3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89611</commentid>
    <comment_count>13</comment_count>
    <who name="Köry Maincent">kory.maincent</who>
    <bug_when>2021-03-12 09:27:23 +0000</bug_when>
    <thetext>AssertionError: Failed ptests:
{&apos;tcl&apos;: [&apos;timer.test&apos;]}

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1615/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89619</commentid>
    <comment_count>14</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-03-12 16:54:07 +0000</bug_when>
    <thetext>Grace, can you send a patch to either increase the timeout or remove the timer test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89622</commentid>
    <comment_count>15</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2021-03-15 06:22:01 +0000</bug_when>
    <thetext>@Randy,
I&apos;m still looking into this issue.

Currently there are three cases failed as the autobuilder ever reported:
{&apos;tcl&apos;: [&apos;socket.test&apos;]}
{&apos;tcl&apos;: [&apos;interp.test&apos;]}
{&apos;tcl&apos;: [&apos;timer.test&apos;]}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89701</commentid>
    <comment_count>16</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-03-23 12:04:40 +0000</bug_when>
    <thetext>*** Bug 14312 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89742</commentid>
    <comment_count>17</comment_count>
    <who name="Oleksiy Obitotskyy">oobitots</who>
    <bug_when>2021-03-25 10:44:56 +0000</bug_when>
    <thetext>qemuarm64-ptest ubuntu1804-arm-1

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1652

NOTE: recipe core-image-sato-sdk-ptest-1.0-r0: task do_testimage: Started
Bitbake still alive (5000s)
Bitbake still alive (10000s)
WARNING: core-image-sato-sdk-ptest-1.0-r0 do_testimage: There were failing ptests.
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 25, in test_ptestrunner_expectfail
    self.do_ptestrunner()
  File &quot;/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 112, in do_ptestrunner
    self.fail(failmsg)
AssertionError: Failed ptests:
{&apos;tcl&apos;: [&apos;chanio.test&apos;, &apos;interp.test&apos;],
 &apos;valgrind&apos;: [&apos;callgrind/tests/simwork-branch&apos;]}

Cannot run ptests without @expectedFailure as ptests are expected to fail
RESULTS:
RESULTS - ping.PingTest.test_ping: PASSED (0.09s)
RESULTS - ssh.SSHTest.test_ssh: PASSED (0.20s)
RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectsuccess: SKIPPED (0.00s)
RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectfail: EXPECTEDFAIL (12885.39s)
SUMMARY:
core-image-sato-sdk-ptest () - Ran 4 tests in 12885.711s
core-image-sato-sdk-ptest - OK - All required tests passed (successes=2, skipped=1, failures=0, errors=0)
NOTE: recipe core-image-sato-sdk-ptest-1.0-r0: task do_testimage: Succeeded
NOTE: Tasks Summary: Attempted 901 tasks of which 900 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89799</commentid>
    <comment_count>18</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2021-03-29 03:01:58 +0000</bug_when>
    <thetext>Failed again:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1662</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89991</commentid>
    <comment_count>19</comment_count>
    <who name="Naveen Saini">naveen.kumar.saini</who>
    <bug_when>2021-04-19 07:03:38 +0000</bug_when>
    <thetext>tcl ptest failed again  (qemuarm64):

AssertionError: Failed ptests:
{&apos;tcl&apos;: [&apos;interp.test&apos;]}

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1704</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90089</commentid>
    <comment_count>20</comment_count>
    <who name="Naveen Saini">naveen.kumar.saini</who>
    <bug_when>2021-04-23 02:37:57 +0000</bug_when>
    <thetext>Happened again on master-next (qemuarm64):

AssertionError: Failed ptests:
{&apos;tcl&apos;: [&apos;interp.test&apos;]}

Worker: ubuntu1804-arm-1

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1711</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90387</commentid>
    <comment_count>21</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2021-05-14 08:28:28 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2088/steps/12/logs/stdio
{&apos;tcl&apos;: [&apos;interp.test&apos;]}
debian10-ty-1
qemux86-64-ptest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90413</commentid>
    <comment_count>22</comment_count>
    <who name="Jon Mason">jon.mason</who>
    <bug_when>2021-05-19 01:08:40 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1805/steps/12/logs/stdio
{&apos;tcl&apos;: [&apos;interp.test&apos;]}
qemuarm64-ptest
ubuntu1804-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90417</commentid>
    <comment_count>23</comment_count>
    <who name="Jon Mason">jon.mason</who>
    <bug_when>2021-05-19 15:10:27 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1812/steps/12/logs/stdio
qemuarm64-ptest
ubuntu1804-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90487</commentid>
    <comment_count>24</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-05-27 13:05:14 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1825/steps/12/logs/stdio

qemuarm64-ptest
ubuntu1804-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90545</commentid>
    <comment_count>25</comment_count>
    <who name="Minjae Kim">flowergom</who>
    <bug_when>2021-06-02 01:27:25 +0000</bug_when>
    <thetext>Happend again:https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1668/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90547</commentid>
    <comment_count>26</comment_count>
    <who name="Minjae Kim">flowergom</who>
    <bug_when>2021-06-02 02:06:43 +0000</bug_when>
    <thetext>Happend again:

tcl ptest failure on qemux86-64-ptest
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2141/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90716</commentid>
    <comment_count>27</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-06-20 17:02:34 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2193/steps/12/logs/stdio

qemux86-64-ptest opensuse152-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90843</commentid>
    <comment_count>28</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-07-04 13:26:52 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1946/steps/12/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90911</commentid>
    <comment_count>29</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-07-12 13:53:33 +0000</bug_when>
    <thetext>Got a patch for interp at least.  Hopefully that helps that test case specifically, and if it does the others can have a similar approach taken.  At least some of the test cases have changed since this issue was first opened so may not be as prone to timing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90942</commentid>
    <comment_count>30</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-07-15 14:56:00 +0000</bug_when>
    <thetext>Closing as the patches and landed and hopefully they fix the issues.  Re-open this or new tickets for future tcl issues.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>