Skip to contentSkip to conversation

patchtest-send-results: use Message-ID directly

PATCH In review Trevor Gamblin 2 participants 3 messages Feb 15, 2024 – Feb 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 patchtest-send-results: use Message-ID directly

There's no need to use regex for extracting the Message-ID field from the patch email and mangle it by removing the angle brackets in the process. Pull it directly from the mbox so that Patchtest's replies have even fewer differences when compared to other replies. Also add a TODO so that it's clear this needs adjustment when full series support is added.

---
 scripts/patchtest-send-results | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/patchtest-send-results +3 -1
index 8190fe86c32..8a3dadbd111 100755
@@ -65,7 +65,9 @@ subject_line = f"Patchtest results for {mbox_subject}"
 reply_address = mbox[0]['from']
 
 # extract the message ID and use that as the in-reply-to address
-in_reply_to = re.findall("<(.*)>", mbox[0]['Message-ID'])[0]
+# TODO: This will need to change again when patchtest can handle a whole
+# series at once
+in_reply_to = mbox[0]['Message-ID']
 
 # the address the results email is sent from
 from_address = "[email protected]"
Signature · 1 line
2.43.0
#1 lore raw

Just wanted to note that sadly patchtest replies still aren't threaded. What are regular mail clients doing that patchtest does not?

Alex

Quoted 40 lines · Trevor Gamblin

There's no need to use regex for extracting the Message-ID field from the patch email and mangle it by removing the angle brackets in the process. Pull it directly from the mbox so that Patchtest's replies have even fewer differences when compared to other replies. Also add a TODO so that it's clear this needs adjustment when full series support is added.

---
 scripts/patchtest-send-results | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/patchtest-send-results +3 -2
index 8190fe86c32..8a3dadbd111 100755
@@ -65,7 +65,9 @@ subject_line = f"Patchtest results for {mbox_subject}"
 reply_address = mbox[0]['from']
 
 # extract the message ID and use that as the in-reply-to address
-in_reply_to = re.findall("<(.*)>", mbox[0]['Message-ID'])[0]
+# TODO: This will need to change again when patchtest can handle a whole
+# series at once
+in_reply_to = mbox[0]['Message-ID']
 
 # the address the results email is sent from
 from_address = "[email protected]"
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#195705): https://lists.openembedded.org/g/openembedded-core/message/195705
Mute This Topic: https://lists.openembedded.org/mt/104382040/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 2 lines · Alexander Kanavin

Just wanted to note that sadly patchtest replies still aren't threaded. What are regular mail clients doing that patchtest does not?

Patchwork's docs say (https://patchwork.readthedocs.io/en/latest/usage/overview/#comments):

|Comments are replies to a submission - either a patch or a cover letter. Unlike a Mail User Agent (MUA) like Gmail, Patchwork does not thread comments. Instead, every comment is associated with either a patch or a cover letter, and organized by date.|

I'm wondering if maybe it's as simple as the subject line being too different - instead of "Patchtest results for [OE-core][PATCH 1/2] patchtest: Fix grammar in log output", maybe it just needs to reply with the exact subject line like anyone else.

That being said, I haven't seen the Patchtest service send a result since that change was merged...

Quoted 43 lines

Alex

Quoted 39 lines · Trevor Gamblin

There's no need to use regex for extracting the Message-ID field from the patch email and mangle it by removing the angle brackets in the process. Pull it directly from the mbox so that Patchtest's replies have even fewer differences when compared to other replies. Also add a TODO so that it's clear this needs adjustment when full series support is added.

---
  scripts/patchtest-send-results | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
scripts/patchtest-send-results +3 -2
index 8190fe86c32..8a3dadbd111 100755
@@ -65,7 +65,9 @@ subject_line = f"Patchtest results for {mbox_subject}"
  reply_address = mbox[0]['from']
 
  # extract the message ID and use that as the in-reply-to address
-in_reply_to = re.findall("<(.*)>", mbox[0]['Message-ID'])[0]
+# TODO: This will need to change again when patchtest can handle a whole
+# series at once
+in_reply_to = mbox[0]['Message-ID']
 
  # the address the results email is sent from
  from_address ="[email protected]"
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#195705):https://lists.openembedded.org/g/openembedded-core/message/195705 Mute This Topic:https://lists.openembedded.org/mt/104382040/1686489
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-