<?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>13088</bug_id>
          
          <creation_ts>2018-12-17 16:59:53 +0000</creation_ts>
          <short_desc>Add support for extracting individual ptest timing</short_desc>
          <delta_ts>2019-01-14 17:43:57 +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>enhancement</bug_severity>
          <target_milestone>2.7 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Aníbal Limón">anibal</assigned_to>
          <cc>ndec13</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>82518</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-12-17 16:59:53 +0000</bug_when>
    <thetext>It would be very useful to be able to know how long each individual ptest takes to run and be able to pass this data from ptest-runner through to the xml results logging from testimage so it ends up in the standard test results.

I believe we have some ptests which are taking too long and ending up being &apos;killed&apos; for timing out but its hard to obtain that data from the logs.

Creating a &quot;dummy&quot; timeout failure in the test results may also be something we need to look at as a way of flagging timeouts up the chain of test reporting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82636</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal</who>
    <bug_when>2019-01-02 19:47:14 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; It would be very useful to be able to know how long each individual ptest
&gt; takes to run and be able to pass this data from ptest-runner through to the
&gt; xml results logging from testimage so it ends up in the standard test
&gt; results.
&gt; 
&gt; I believe we have some ptests which are taking too long and ending up being
&gt; &apos;killed&apos; for timing out but its hard to obtain that data from the logs.
&gt; 
&gt; Creating a &quot;dummy&quot; timeout failure in the test results may also be something
&gt; we need to look at as a way of flagging timeouts up the chain of test
&gt; reporting.

Currently is printing TIMEOUT in the stdout [1], I can add a xml dummy failure for timeout that will display when status in exit is SIGKILL [2]. Is that the idea? [2]

[1] http://git.yoctoproject.org/cgit/cgit.cgi/ptest-runner2/tree/utils.c#n320
[2] http://git.yoctoproject.org/cgit/cgit.cgi/ptest-runner2/tree/utils.c#n432</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82660</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal</who>
    <bug_when>2019-01-03 18:02:59 +0000</bug_when>
    <thetext>At,

https://lists.yoctoproject.org/pipermail/yocto/2019-January/043703.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82687</commentid>
    <comment_count>3</comment_count>
    <who name="Aníbal Limón">anibal</who>
    <bug_when>2019-01-06 17:45:59 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; At,
&gt; 
&gt; https://lists.yoctoproject.org/pipermail/yocto/2019-January/043703.html

Added report duration support,

https://lists.yoctoproject.org/pipermail/yocto/2019-January/043724.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82787</commentid>
    <comment_count>4</comment_count>
    <who name="Aníbal Limón">anibal</who>
    <bug_when>2019-01-14 17:43:57 +0000</bug_when>
    <thetext>Merge at,

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b1c2ef099cdb49655f4ae0d9cf9c5baef997e833

http://git.yoctoproject.org/cgit/cgit.cgi/ptest-runner2/commit/?id=80712583732b4a809532f644fb09e7d2e812d7ba</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>