<?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>13409</bug_id>
          
          <creation_ts>2019-06-19 11:50:59 +0000</creation_ts>
          <short_desc>dbus ptest times out occasionally</short_desc>
          <delta_ts>2019-08-23 01:58:30 +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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Changqing Li">changqing.li</assigned_to>
          <cc>changqing.li</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>84248</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-19 11:50:59 +0000</bug_when>
    <thetext>When this happens the log is:

https://autobuilder.yocto.io/pub/non-release/20190618-9/testresults/qemux86-64-ptest/dbus-test.log

2019-06-18T18:26
ERROR: Unable to detach from controlling tty, Inappropriate ioctl for device
2019-06-18T18:26

ERROR: Exit status is 9
DURATION: 301

https://autobuilder.yocto.io/pub/non-release/20190618-9/testresults/testresult-report.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84483</commentid>
    <comment_count>1</comment_count>
    <who name="Changqing Li">changqing.li</who>
    <bug_when>2019-07-25 05:12:36 +0000</bug_when>
    <thetext>Testcase test-bus of dbus-ptest need long time to finish. And ptest-runner&apos;s default timeout is 300s,  so  dbus-ptest will be killed by ptest-runner when 
timeout.

Here is time of each case needed(Test on qemux86-64 with kvm)
root@qemux86-64:/usr/lib/dbus-test/ptest/test# for i in `ls test*\.log`; do echo -n $i &quot;: &quot;; grep real $i; done
test-bus-launch-helper.log : real	0m 0.02s
test-bus-system.log : real	0m 0.00s
test-bus.log : real	33m 42.13s     ---------------------&gt;33m is longer than 300s
test-corrupt.log : real	0m 0.00s
test-dbus-daemon-eavesdrop.log : real	0m 0.02s
test-dbus-daemon.log : real	0m 0.38s
test-dbus.log : real	0m 10.98s
test-fdpass.log : real	0m 0.05s
test-loopback.log : real	0m 0.08s
test-marshal.log : real	0m 0.00s
test-message.log : real	0m 0.00s
test-monitor.log : real	0m 0.10s
test-names.log : real	0m 0.00s
test-printf.log : real	0m 0.02s
test-refs.log : real	0m 0.59s
test-relay.log : real	0m 0.72s
test-sd-activation.log : real	0m 0.00s
test-shell.log : real	0m 0.00s
test-spawn.log : real	0m 0.00s
test-syntax.log : real	0m 0.00s
test-syslog.log : real	0m 0.00s
test-uid-permissions.log : real	0m 0.00s
test-variant.log : real	0m 0.16s


Upstream have separated out the subcases which take long time out of bin test-bus, but it is only on unstable release. maybe in the future, we can skip the subcases that take long time. refer:
https://gitlab.freedesktop.org/dbus/dbus/commit/3b512610c0414c4f40c464e1a8dd5d3d665e74d7



@Randy and Richard, there are several options to fix this problem, can you give your opinion, thanks.

1) skip test-bus for dbus ptest
2) add a patch for ptest-runner, for dbus-ptest, set timeout to 600s.
3) there is  an option for ptest-runner to set timeout, change autobuilder run
   with ptest-runner -t 600, but this will make all test run with this timeout</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84615</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-08-08 15:04:56 +0000</bug_when>
    <thetext>I&apos;d suggest we skip the test, we don&apos;t want to spend 30mins on that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84616</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-08-08 15:05:16 +0000</bug_when>
    <thetext>Skip the test. 
Report the issue upstream as a concern.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84673</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-08-15 14:54:41 +0000</bug_when>
    <thetext>Please skip the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84740</commentid>
    <comment_count>5</comment_count>
    <who name="Changqing Li">changqing.li</who>
    <bug_when>2019-08-23 01:58:30 +0000</bug_when>
    <thetext>https://git.openembedded.org/openembedded-core/commit/?id=76caa7aece5cc8513989f77bb15944a22d17edf5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>