<?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>14065</bug_id>
          
          <creation_ts>2020-09-28 09:40:28 +0000</creation_ts>
          <short_desc>Automated ptest regression testing</short_desc>
          <delta_ts>2024-01-08 08:24:27 +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>All</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>major</bug_severity>
          <target_milestone>5.0 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Alexis Lothoré">alexis.lothore</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>chi.xu</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tgamblin</cc>
    
    <cc>tim.orling</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>88251</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-09-28 09:40:28 +0000</bug_when>
    <thetext>We run ptest builds in every a-full build, but the regressions are only reported on milestones.

This always results in a number of regressions being announced and a six week window of changes where the change could have happened.

If the ptest autobuilder job performed the regression analysis itself, it could at least warn if any tests regressed and we&apos;d only have a few patches to review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88282</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-10-01 07:51:44 +0000</bug_when>
    <thetext>The autobuilder does track the results into a git repository so we should be able to interrogate that git repo with a script to find out when regressions occur even if the autobuilder doesn&apos;t do this directly/automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89020</commentid>
    <comment_count>2</comment_count>
    <who name="Sangeeta Jain">sangeeta.jain</who>
    <bug_when>2021-01-26 02:25:32 +0000</bug_when>
    <thetext>To find out what regressions occur, we can use &apos;resuttool regression&apos; feature. For more details, please see https://wiki.yoctoproject.org/wiki/Resulttool#regression-git_example.
I don&apos;t see a need of a separate script for ptest regression. If anything else, please help to share more info.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89065</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-28 15:54:13 +0000</bug_when>
    <thetext>I agree we should try and use this functionality but I would like to see this automated so that the autobuilder automatically generates a reliable list of regressions. It does have some code to do this but the reports don&apos;t look reliable and it doesn&apos;t have a concept of understanding the last release or milestone to compare against.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93210</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-04-28 15:17:55 +0000</bug_when>
    <thetext>We need someone to work on this bug soon so we can tell when ptests regress.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94705</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-01-12 15:56:12 +0000</bug_when>
    <thetext>Alexis is working on this so in progress state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94813</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-01-26 15:53:07 +0000</bug_when>
    <thetext>Some good progress made but moving to M3 since it&apos;s not done yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94824</commentid>
    <comment_count>7</comment_count>
    <who name="Alexis Lothoré">alexis.lothore</who>
    <bug_when>2023-01-27 14:22:51 +0000</bug_when>
    <thetext>A first integration to allow checks against previous release has been done, but after testing within a real release, some issues appear :
- 4.2_M2 regression report is pretty huge and many generation errors are loggued in autobuilder
  - https://autobuilder.yocto.io/pub/releases/yocto-4.2_M2.rc2/testresults/testresult-regressions-report.txt
  - https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/4844/steps/29/logs/stdio
- some known failures/regression are not properly reported
  - https://lore.kernel.org/yocto/01010185f1a4b508-6e5da1df-b525-4798-ad94-58ea11a96b76-000000@us-west-2.amazonses.com/T/#t
- we need to display in the regression report against which revision it has been generated

I will look at all those points.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95309</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-04-06 14:56:02 +0000</bug_when>
    <thetext>Good progress mostly done but we need to do some analysis of the 4.2 regression report so moving to 4.3 M1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95714</commentid>
    <comment_count>9</comment_count>
    <who name="Alexis Lothoré">alexis.lothore</who>
    <bug_when>2023-06-14 12:29:36 +0000</bug_when>
    <thetext>Developed and integrated. Still needs some real testing (last test was 4.3_M1 but another issue in test results prevented us from evaluating result)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96411</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-09-14 15:04:25 +0000</bug_when>
    <thetext>This failed to generate a report for 4.3 M3. The build step &quot;passed&quot; (worryingly) but there is an error for the regression report:

https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/5865/steps/29/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96676</commentid>
    <comment_count>11</comment_count>
    <who name="Alexis Lothoré">alexis.lothore</who>
    <bug_when>2023-10-12 07:08:40 +0000</bug_when>
    <thetext>Issues which have prevented report 4.3_M3 from being generated have been fixed.
Draft report generated after fix shows the following need:
- add a max number of regression for tests pairs generating a lot of errors (e.g. : display only the 30 first regressions), but keeping count of total regression for current tests pair.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97740</commentid>
    <comment_count>12</comment_count>
    <who name="Alexis Lothoré">alexis.lothore</who>
    <bug_when>2024-01-05 09:07:28 +0000</bug_when>
    <thetext>I think this feature base has been set and his now running for each release through the autobuilder, so I would like to mark this as resolved. There are still some possible adjustments but it should now be mentioned  as improvements in dedicated issues. If no one object, I will close this in a few days</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>