<?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>15270</bug_id>
          
          <creation_ts>2023-10-30 15:29:03 +0000</creation_ts>
          <short_desc>patchtest-send-results should reply to specific threads</short_desc>
          <delta_ts>2024-09-03 13:28:08 +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>WORKSFORME</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 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Trevor Gamblin">tgamblin</reporter>
          <assigned_to name="Trevor Gamblin">tgamblin</assigned_to>
          <cc>mhalstead</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>97043</commentid>
    <comment_count>0</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-10-30 15:29:03 +0000</bug_when>
    <thetext>the boto3 send_email function that patchtest-send-results uses does not provide a means to specify a thread to reply to. send_raw_email does but will require more careful construction of the reply patch. Ideally, patchtest-send-results should at least provide the option to specify a particular thread/message ID to reply to, if not make it the default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97167</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-10-31 10:27:57 +0000</bug_when>
    <thetext>Make it the default please!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97169</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-10-31 10:28:30 +0000</bug_when>
    <thetext>*** Bug 15271 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97174</commentid>
    <comment_count>3</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-11-01 15:47:44 +0000</bug_when>
    <thetext>Did some investigating into this and found that there are actually two message IDs for patches on the mailing list, as described by the email headers: the &quot;X-Orig-Message-Id&quot; and the &quot;Message ID&quot;. The latter seems to be what is needed to reply correctly to a message thread, but the former is what is available in the patch files that patchtest pulls from Patchwork. 

The Groups.io Help Center page confirms that it replaces the original message ID and renames the old one if a checkbox is selected in the account preferences (for a mailing list?): https://groups.io/helpcenter/membersmanual?single=true under &quot;Seeing copies of your own messages that you email to groups&quot;:

&quot;For those interested in the technical details: When this checkbox is selected, Groups.io replaces the Message-Id header with a new, system-generated one and renames the original Message-Id header to X-Orig-Message-Id.&quot;

I&apos;m not sure what the larger implications for the mailing list usability would be if this is indeed an account setting for openembedded-core@lists.openembedded.org. If true and we don&apos;t want to change the groups.io settings, some extra function could be written to scan the mailing list for the right patch and get the new message ID, but that could have a lot of test time/validation impacts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97175</commentid>
    <comment_count>4</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-11-01 16:51:19 +0000</bug_when>
    <thetext>We&apos;ll have to scan the mailing list and compare message IDs to get the right one to respond against.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97176</commentid>
    <comment_count>5</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-11-01 18:21:35 +0000</bug_when>
    <thetext>After review that&apos;s incorrect - I was operating under incorrect assumptions about message ID mangling. Submitted a patch to use In-Reply-To with results emails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97232</commentid>
    <comment_count>6</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-11-09 14:30:18 +0000</bug_when>
    <thetext>Fixed in https://git.yoctoproject.org/poky/commit/?id=2bddb6bb97075a2dd8e988867e0ee6e4556d2924 and https://git.yoctoproject.org/poky/commit/?id=b53d1287d24f506a08905fa86a81aca21203e73a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98142</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-02-06 16:11:11 +0000</bug_when>
    <thetext>The threading is still not happening correctly.

See for example https://lore.kernel.org/openembedded-core/0101018d7d1f5ee6-9ed9018f-ac7d-48ee-bbfb-c24420673d13-000000@us-west-2.amazonses.com/T/#u which is not threading as a reply to https://lore.kernel.org/openembedded-core/20240206061701.3947297-1-simone.p.weiss@posteo.com/T/#u.

This impacts patchwork, as the patchtest reply doesn&apos;t appear at all:

https://patchwork.yoctoproject.org/project/oe-core/patch/20240206061701.3947297-1-simone.p.weiss@posteo.com/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98157</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-08 16:00:46 +0000</bug_when>
    <thetext>Trevor is working on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98178</commentid>
    <comment_count>9</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-02-09 15:25:15 +0000</bug_when>
    <thetext>Sent a patch to add the &apos;References&apos; header to patchtest-send-results in oe-core. That should fix this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98260</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-22 16:03:22 +0000</bug_when>
    <thetext>Michael, Trevor is mostly waiting for your input on why the threading isn&apos;t working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98271</commentid>
    <comment_count>11</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-02-22 17:36:24 +0000</bug_when>
    <thetext>Steve was right in the bug triage meeting - it seems to be threading properly now. I&apos;ll keep an eye on it and reopen this if there are instances where it doesn&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98330</commentid>
    <comment_count>12</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-02-26 21:17:16 +0000</bug_when>
    <thetext>See: https://lists.openembedded.org/g/openembedded-core/topic/patchtest_results_for/104591017?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,0,104591017,previd%3D1708981536361105116,nextid%3D1708939175624870970&amp;previd=1708981536361105116&amp;nextid=1708939175624870970

That one didn&apos;t thread the way it should&apos;ve.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98331</commentid>
    <comment_count>13</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-02-26 21:17:46 +0000</bug_when>
    <thetext>Shorter comment: https://lists.openembedded.org/g/openembedded-core/topic/patchtest_results_for/104591017</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99604</commentid>
    <comment_count>14</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-09-03 13:28:08 +0000</bug_when>
    <thetext>I haven&apos;t seen patchtest fail to thread responses in a while. It would still be good to improve the subject line in its replies, but that&apos;s not a factor in whether it replies to the right email. I&apos;ll close this for now, but if we see problems again then it can be reopened.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>