<?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>15262</bug_id>
          
          <creation_ts>2023-10-27 11:51:41 +0000</creation_ts>
          <short_desc>Improve patchtest testresult messages</short_desc>
          <delta_ts>2024-02-29 18:09:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Patchwork/Patchtest</product>
          <component>Patchtest</component>
          <version>5.0</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>5.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Trevor Gamblin">tgamblin</reporter>
          <assigned_to name="Simone Weiß">simone.p.weiss</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>simone.p.weiss</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97019</commentid>
    <comment_count>0</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-10-27 11:51:41 +0000</bug_when>
    <thetext>Patchtest provides a simple set of PASS/FAIL/SKIP results with names of tests that were run, and (if failed or skipped) a short explanation of why and what to do. This is useful but could still be more user-friendly, especially when it comes to the automated service providing feedback on the mailing list. A non-exhaustive list of possible improvements:

- Better test indicators (not just a reformatted version of the test names), including what the tests are looking for
- Better suggestions for failing patches
- Links to the contributor guide or other docs
- (If/when the test suite is expanded) Direct feedback on how variables, syntax, etc. are being misused</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98216</commentid>
    <comment_count>1</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-02-15 19:58:41 +0000</bug_when>
    <thetext>Something that recently came up was a desire to remove all of the unittest-specific text that gets printed with the results, e.g.:

----------------------------------------------------------------------
Ran 21 tests in 2.715s

OK

In theory, this should be catchable by redirecting the stderr output from unittest into a variable that is otherwise ignored, although that&apos;s kind of hacky. A better way would be to implement a custom test framework for patchtest, but that&apos;s obviously a lot more complicated. I&apos;ve been wondering about pytest and whether that might be better too, but haven&apos;t had time to really look and see what the changes would involve.

There might be another way that I&apos;ve missed...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98219</commentid>
    <comment_count>2</comment_count>
    <who name="Simone Weiß">simone.p.weiss</who>
    <bug_when>2024-02-15 20:21:39 +0000</bug_when>
    <thetext>pytest should ideally also be more performant, which could help with overhead added when  extending patchtests like the one mentioned here: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15400#c1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>