<?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>15575</bug_id>
          
          <creation_ts>2024-08-08 18:15:45 +0000</creation_ts>
          <short_desc>test_mbox.TestMbox.test_shortlog_length needs to exclude branch specifiers</short_desc>
          <delta_ts>2024-09-03 13:24:49 +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>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>normal</bug_severity>
          <target_milestone>5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Eatmon">reatmon</reporter>
          <assigned_to name="Trevor Gamblin">tgamblin</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>reatmon</cc>
    
    <cc>richard.purdie</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>99531</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Eatmon">reatmon</who>
    <bug_when>2024-08-08 18:15:45 +0000</bug_when>
    <thetext>The test_mbox.TestMbox.test_shortlog_length check is not excluding the [master] or [master/scarthgap] branch specifier in the subject.  For example:

[OE-core][master/scarthgap][PATCH] u-boot.inc: Refactor do_* steps into functions that can be overridden

Resulted in the failure:

FAIL: test shortlog length: Edit shortlog so that it is 90 characters or less (currently 95 characters) (test_mbox.TestMbox.test_shortlog_length)


But the same shortlog without the specifier passed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99541</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-08-15 14:31:39 +0000</bug_when>
    <thetext>Anything in [] will not make the commit message so the test should probably exclude anything enclosed in those.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99591</commentid>
    <comment_count>2</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-08-31 01:27:31 +0000</bug_when>
    <thetext>This is a little strange. I&apos;ve got a local copy of that patch and I&apos;m testing it with patchtest locally. That subject line is actually 104 characters, so not sure why it&apos;s counting 95. Coincidentally, removing &quot;scarthgap&quot; from it brings the count to 95, so maybe it&apos;s reading it with that stripped.

When I try locally, with prints added:

|SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
|PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
|shortlog is [master/scarthgap][PATCH] u-boot.inc: Refactor do_* steps into functions that can be overridden
|shortlog len is 95
|FAIL: test shortlog length: Edit shortlog so that it is 90 characters or less (currently 95 characters) (test_mbox.TestMbox.test_shortlog_length)

So the &quot;[OE-core]&quot; is getting stripped, but the branch and PATCH tags aren&apos;t.

A re.sub() call should fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99592</commentid>
    <comment_count>3</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-08-31 13:25:14 +0000</bug_when>
    <thetext>Patch up for review: https://lists.openembedded.org/g/openembedded-core/message/203972</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99603</commentid>
    <comment_count>4</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-09-03 13:24:49 +0000</bug_when>
    <thetext>See: https://git.openembedded.org/openembedded-core/commit/?id=6e1ddadfe779291cf46fb88fb01769c022b733ac</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>