<?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>13839</bug_id>
          
          <creation_ts>2020-03-19 14:46:28 +0000</creation_ts>
          <short_desc>apr ptest intermittent failure</short_desc>
          <delta_ts>2020-03-30 17:42:29 +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>unspecified</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Jeremy A. Puhlman">jpuhlman</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>86754</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-03-19 14:46:28 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/93/builds/457</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86755</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-03-19 14:47:23 +0000</bug_when>
    <thetext>Cannot run ptests with @expectedFailure as ptests are required to pass
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 33, in test_ptestrunner_expectsuccess
    self.do_ptestrunner()
  File &quot;/home/pokybuild/yocto-worker/qemuarm64-ptest-fast/build/meta/lib/oeqa/runtime/cases/ptest.py&quot;, line 103, in do_ptestrunner
    self.fail(failmsg)
AssertionError: Failed ptests:
{&apos;apr&apos;: [&apos;testlock_1_of_6&apos;]}

We should be able to find the ptest logs on the autobuilder from this build too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86782</commentid>
    <comment_count>2</comment_count>
    <who name="Jeremy A. Puhlman">jpuhlman</who>
    <bug_when>2020-03-24 00:42:29 +0000</bug_when>
    <thetext>So I have been running testlock of and on since last Thursday with no luck in reproduction. Were I to venture a guess its likely:

test_timeoutmutex
test_timeoutcond

It doesn&apos;t appear the test is run with -v (which would at least give a line number as to which test failed).


However, testsock has at least every 30-40 runs failed(if running the full suite). And it looks like a timeout issue in the code. Not sure if bumping the sleep it is using would resolve the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86792</commentid>
    <comment_count>3</comment_count>
    <who name="Jeremy A. Puhlman">jpuhlman</who>
    <bug_when>2020-03-24 15:57:05 +0000</bug_when>
    <thetext>Adding screen to the image and running the ltp tests in the background to stress the system I am able to get both testsock and testlock to fail in the timer tests.

These are both highly dependant on the function returning in a specific amount of time if they run over the allotted time they fail. With virtualization and any other stresses on the system, these tests are going to randomly fail. My first inclination is to just disable them because they are likely not going to be consistent in a virtualized environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86838</commentid>
    <comment_count>4</comment_count>
    <who name="Jeremy A. Puhlman">jpuhlman</who>
    <bug_when>2020-03-26 20:31:28 +0000</bug_when>
    <thetext>Initial cut at resolving this.
https://patchwork.openembedded.org/patch/171350/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86866</commentid>
    <comment_count>5</comment_count>
    <who name="Jeremy A. Puhlman">jpuhlman</who>
    <bug_when>2020-03-30 17:42:29 +0000</bug_when>
    <thetext>Commit accepted in to master.

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

Moving to resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>