<?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>12372</bug_id>
          
          <creation_ts>2017-11-21 23:28:20 +0000</creation_ts>
          <short_desc>Automate the execution of pTest</short_desc>
          <delta_ts>2019-05-23 15:28:53 +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.5</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>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</reporter>
          <assigned_to name="Yang Wang">yang.wang</assigned_to>
          <cc>aaron.chun.yew.chan</cc>
    
    <cc>akuster</cc>
    
    <cc>konrad.scherer</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</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>78307</commentid>
    <comment_count>0</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2017-11-21 23:28:20 +0000</bug_when>
    <thetext>The PtestRunnerTest class, an existing runtime class in meta/lib/oeqa/runtime/cases/ptest.py already allows to call the ptest-runner script using testimage, parse its results and save them in the logs. However, considering this test needs to be executed on actual hardware, the main obstacle to automate the complete process is to be able to flash and bring up the devices automatically. Though, once the LAVA system allows to do this, it may be possible to complete the work on this area and complete automating the pTest execution.

The purpose of this item is to track the progress and completion of this task.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81099</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-07-12 19:33:39 +0000</bug_when>
    <thetext>Yang uses Lava quite a bit so he&apos;ll work on this enhancement in the coming weeks.
We need to work out an acceptable approach with the goal being that the ptest results and stats analysis is in OE code and LAVA takes care of the hardware boot and control. I&apos;m sure there&apos;s more detail to work out via say a brief RFC email to the oe-core list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81100</commentid>
    <comment_count>2</comment_count>
    <who name="Yang Wang">yang.wang</who>
    <bug_when>2018-07-12 19:37:15 +0000</bug_when>
    <thetext>This item is on my TODO list now, will update the status in next few weeks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81415</commentid>
    <comment_count>3</comment_count>
    <who name="Aaron Chan">aaron.chun.yew.chan</who>
    <bug_when>2018-08-23 05:23:11 +0000</bug_when>
    <thetext>We are using LAVA to execute core-image-sato-sdk test cases on hardware but
we had not run any pTest on hardware but rather trying to integrate
phoronix test suite into the image. This PoC has been done x86-64 hardware 
specifics and soon it will be roll out to the community.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81427</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-08-24 08:55:00 +0000</bug_when>
    <thetext>There has been some work to allow lava and autobuilder2 to interact. The work is still being developed but the patches are are:

https://github.com/lab-github/yocto-autobuilder2/commits/linaro/lava
https://github.com/lab-github/yocto-autobuilder-helper/commits/linaro/lava

which most of the supporting code going into the -helper. This work should be submitted soon and could form a base for sending jobs to lava then reporting the results back into the autobuilder for ptest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81429</commentid>
    <comment_count>5</comment_count>
    <who name="Yang Wang">yang.wang</who>
    <bug_when>2018-08-24 15:24:05 +0000</bug_when>
    <thetext>Thanks for the comment.
I quickly looked into the code, it tries to make the helper code common and set LAVA server, bsps and device types as variables.

We are doing some similar work:
https://github.com/WindRiver-OpenSourceLabs/ci-scripts

Currently, we haven&apos;t test it much with public LAVA server and their board farm, but we do have plan to make it work as soon as we can.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83863</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-05-20 15:22:17 +0000</bug_when>
    <thetext>Closing as we run ptest automatically now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83952</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-05-23 15:28:53 +0000</bug_when>
    <thetext>Ross can you add a link to a commit or defect for that work please?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>