<?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>14213</bug_id>
          
          <creation_ts>2021-02-01 21:56:33 +0000</creation_ts>
          <short_desc>gawk ptest intermittent failure</short_desc>
          <delta_ts>2021-04-23 13:36:23 +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>arm64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Yi Fan Yu">yf3yu</assigned_to>
          <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>89112</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-02-01 21:56:33 +0000</bug_when>
    <thetext>WARNING: core-image-sato-ptest-fast-1.0-r0 do_testimage: There were failing ptests.
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemuarm64-ptest-fast/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-fast/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-fast/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-fast/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-fast/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 112, in do_ptestrunner
    self.fail(failmsg)
AssertionError: Failed ptests:
{&apos;gawk&apos;: [&apos;timeout&apos;]}

Full log is here:
https://autobuilder.yoctoproject.org/typhoon/#/builders/93/builds/800/steps/12</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89139</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-02-04 15:49:12 +0000</bug_when>
    <thetext>Not fixed by the ptest timeout increase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89551</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Fan Yu">yf3yu</who>
    <bug_when>2021-03-09 16:00:31 +0000</bug_when>
    <thetext>bumping to m4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89570</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-03-11 14:30:32 +0000</bug_when>
    <thetext>This was ubuntu1804-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90081</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Fan Yu">yf3yu</who>
    <bug_when>2021-04-22 22:08:31 +0000</bug_when>
    <thetext>
basically we run in gawk `(sleep 1; echo bye) | readline`
but readline  is set to timeout after 400ms and retry again.

The test expects the retry to happen twice (succeed on third one) but it only happened once.

https://autobuilder.yocto.io/pub/non-release/20210201-1/testresults/qemuarm64-ptest-fast/gawk.log


this is similar to what python ptest saw relatively recently on the arm host.
i disabled some of the timing related test:
https://git.openembedded.org/openembedded-core/commit/?id=7c67bc2476b784083acbc7a55ecf3627ec8f2b6b


root cause is probably in the overloaded arm64 host.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90098</commentid>
    <comment_count>5</comment_count>
    <who name="Yi Fan Yu">yf3yu</who>
    <bug_when>2021-04-23 13:36:23 +0000</bug_when>
    <thetext>It hasn&apos;t occurred for 2 months, this was an evidence of a system slow-down of more than 200ms.

If it happens again, my suggestion would be turning off the ptest on arm hosts, since 200ms of slack is pretty generous.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>