<?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>12181</bug_id>
          
          <creation_ts>2017-10-04 13:22:36 +0000</creation_ts>
          <short_desc>QA: Archive ptest results in git</short_desc>
          <delta_ts>2018-11-01 08:14:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.4</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>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="yeoh ee peng">ee.peng.yeoh</assigned_to>
          <cc>ee.peng.yeoh</cc>
    
    <cc>jair.de.jesus.gonzalez.plascencia</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77338</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-10-04 13:22:36 +0000</bug_when>
    <thetext>Per the test plan[1] we currently store pTest results in the wiki[2] and generate comparisons using the ptest-parser in qa-tools[3].

We&apos;re increasingly moving QA data to git and using associated scripts that can generate reports or perform comparisons on the data. Examples of this trend are buildhistory and performance data.

It would be desirable to store pTest results this way also and be able to generate comparative reports based on the results archived in git.

Ideally we&apos;d have:
a) a yp-qa-ptest-results (or similarly named) repo on git.yoctoproject.org
b) automated execution of the ptests on a dut (triggered by QA autobuilder)
c) scripts to generate reports comparing the ptest results from two builds

b and c should probably have separate bugs

1. https://wiki.yoctoproject.org/wiki/BSP_Test_Plan#pTest
2. https://wiki.yoctoproject.org/wiki/Ptest/archive
3. https://wiki.yoctoproject.org/wiki/Qa-tools#Ptest_Parser</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77387</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-10-05 15:14:31 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5f6945f5031e1a4ca116cc1eccf4c2f9dc228547 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77389</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2017-10-05 15:16:12 +0000</bug_when>
    <thetext>Added Robert since he worked on the commit that adds ptest results to buildhistory that Richard just referenced above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77394</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-10-05 16:00:17 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/
&gt; ?id=5f6945f5031e1a4ca116cc1eccf4c2f9dc228547 ?

This is definitely part of the solution, it means we don&apos;t need a separate repository. I need to look closer, some extra tooling may or may not be required.

There were more patches in that series which don&apos;t appear to have been merged, they will be useful to resolve this bug.

https://patchwork.openembedded.org/series/8033/#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77395</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-10-05 16:02:29 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #1)
&gt; &gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/
&gt; &gt; ?id=5f6945f5031e1a4ca116cc1eccf4c2f9dc228547 ?
&gt; 
&gt; This is definitely part of the solution, it means we don&apos;t need a separate
&gt; repository. I need to look closer, some extra tooling may or may not be
&gt; required.
&gt; 
&gt; There were more patches in that series which don&apos;t appear to have been
&gt; merged, they will be useful to resolve this bug.
&gt; 
&gt; https://patchwork.openembedded.org/series/8033/#

Or I&apos;m an idiot, looks like they were all merged</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78308</commentid>
    <comment_count>5</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2017-11-21 23:36:35 +0000</bug_when>
    <thetext>I&apos;ve created bug 12372 to track the progress in the implementation of automated execution of pTest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81989</commentid>
    <comment_count>6</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-11-01 08:14:28 +0000</bug_when>
    <thetext>As point out by Richard and Randy, Robert had enabled ptest from testimage to archive test result to buildhistory git repository.

Had verified that this was working with below configuration, ptest result from testimage was stored into buildhistory git repository.  
TEST_SUITES = &quot;ping ssh xorg ptest&quot;
INHERIT += &quot;buildhistory&quot;
BUILDHISTORY_COMMIT = &quot;1&quot;

Closing this ticket.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>