* [PATCH] b4: include change-id in cover template
@ 2026-07-10 7:22 ` Chen Linxuan via B4 Relay
0 siblings, 0 replies; 4+ messages in thread
From: Chen Linxuan @ 2026-07-10 7:22 UTC (permalink / raw)
To: git; +Cc: Patrick Steinhardt, Junio C Hamano, Chen Linxuan
With b4 0.15.2, I hit a local failure after sending a series with the
in-tree cover template. The generated sent/<change-id>-vN tag contained
base-commit, but did not contain change-id, and later b4 commands failed
when trying to read it:
CRITICAL: Tag sent/... does not contain change-id info
Looking at b4's source, the sent tag message is derived from the rendered
cover letter. The same code later parses that tag and expects both
base-commit and change-id to be present. The default b4 cover template
has both trailers, but our in-tree template only has base-commit.
Add the missing change-id trailer next to base-commit so sent tags
produced from the project template remain readable by b4's reroll and
comparison logic.
Signed-off-by: Chen Linxuan <me@black-desk.cn>
---
.b4-cover-template | 1 +
1 file changed, 1 insertion(+)
diff --git a/.b4-cover-template b/.b4-cover-template
index ab864933b5c8..8168d8a10b3a 100644
--- a/.b4-cover-template
+++ b/.b4-cover-template
@@ -8,4 +8,5 @@ ${diffstat}
${range_diff}
---
base-commit: ${base_commit}
+change-id: ${change_id}
${prerequisites}
---
base-commit: f60db8d575adb79761d363e026fb49bddf330c73
change-id: 20260710-add-change-id-to-b4-template-f9fd20937027
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] b4: include change-id in cover template
@ 2026-07-10 7:22 ` Chen Linxuan via B4 Relay
0 siblings, 0 replies; 4+ messages in thread
From: Chen Linxuan via B4 Relay @ 2026-07-10 7:22 UTC (permalink / raw)
To: git; +Cc: Patrick Steinhardt, Junio C Hamano, Chen Linxuan
From: Chen Linxuan <me@black-desk.cn>
With b4 0.15.2, I hit a local failure after sending a series with the
in-tree cover template. The generated sent/<change-id>-vN tag contained
base-commit, but did not contain change-id, and later b4 commands failed
when trying to read it:
CRITICAL: Tag sent/... does not contain change-id info
Looking at b4's source, the sent tag message is derived from the rendered
cover letter. The same code later parses that tag and expects both
base-commit and change-id to be present. The default b4 cover template
has both trailers, but our in-tree template only has base-commit.
Add the missing change-id trailer next to base-commit so sent tags
produced from the project template remain readable by b4's reroll and
comparison logic.
Signed-off-by: Chen Linxuan <me@black-desk.cn>
---
.b4-cover-template | 1 +
1 file changed, 1 insertion(+)
diff --git a/.b4-cover-template b/.b4-cover-template
index ab864933b5c8..8168d8a10b3a 100644
--- a/.b4-cover-template
+++ b/.b4-cover-template
@@ -8,4 +8,5 @@ ${diffstat}
${range_diff}
---
base-commit: ${base_commit}
+change-id: ${change_id}
${prerequisites}
---
base-commit: f60db8d575adb79761d363e026fb49bddf330c73
change-id: 20260710-add-change-id-to-b4-template-f9fd20937027
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] b4: include change-id in cover template
2026-07-10 7:22 ` Chen Linxuan via B4 Relay
(?)
@ 2026-07-10 8:46 ` Patrick Steinhardt
2026-07-10 17:02 ` Junio C Hamano
-1 siblings, 1 reply; 4+ messages in thread
From: Patrick Steinhardt @ 2026-07-10 8:46 UTC (permalink / raw)
To: me; +Cc: git, Junio C Hamano
On Fri, Jul 10, 2026 at 03:22:13PM +0800, Chen Linxuan via B4 Relay wrote:
> From: Chen Linxuan <me@black-desk.cn>
>
> With b4 0.15.2, I hit a local failure after sending a series with the
> in-tree cover template. The generated sent/<change-id>-vN tag contained
> base-commit, but did not contain change-id, and later b4 commands failed
> when trying to read it:
>
> CRITICAL: Tag sent/... does not contain change-id info
>
> Looking at b4's source, the sent tag message is derived from the rendered
> cover letter. The same code later parses that tag and expects both
> base-commit and change-id to be present. The default b4 cover template
> has both trailers, but our in-tree template only has base-commit.
>
> Add the missing change-id trailer next to base-commit so sent tags
> produced from the project template remain readable by b4's reroll and
> comparison logic.
Ah, that's indeed an oversight on my side. So this change looks good to
me, thanks!
Patrick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] b4: include change-id in cover template
2026-07-10 8:46 ` Patrick Steinhardt
@ 2026-07-10 17:02 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2026-07-10 17:02 UTC (permalink / raw)
To: Patrick Steinhardt; +Cc: me, git
Patrick Steinhardt <ps@pks.im> writes:
> On Fri, Jul 10, 2026 at 03:22:13PM +0800, Chen Linxuan via B4 Relay wrote:
>> From: Chen Linxuan <me@black-desk.cn>
>>
>> With b4 0.15.2, I hit a local failure after sending a series with the
>> in-tree cover template. The generated sent/<change-id>-vN tag contained
>> base-commit, but did not contain change-id, and later b4 commands failed
>> when trying to read it:
>>
>> CRITICAL: Tag sent/... does not contain change-id info
>>
>> Looking at b4's source, the sent tag message is derived from the rendered
>> cover letter. The same code later parses that tag and expects both
>> base-commit and change-id to be present. The default b4 cover template
>> has both trailers, but our in-tree template only has base-commit.
>>
>> Add the missing change-id trailer next to base-commit so sent tags
>> produced from the project template remain readable by b4's reroll and
>> comparison logic.
>
> Ah, that's indeed an oversight on my side. So this change looks good to
> me, thanks!
>
> Patrick
I would have slightly preferred to see the observation part fully in
present tense (instead of "I did and it failed"), perhaps like so:
When sending a series with the in-tree cover template, the
generated sent/<change-id>-vN tag contains base-commit but lacks
change-id. Later b4 commands fail when trying to read it.
but that is a minor point.
Will queue. Thanks, both.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-10 17:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 7:22 [PATCH] b4: include change-id in cover template Chen Linxuan
2026-07-10 7:22 ` Chen Linxuan via B4 Relay
2026-07-10 8:46 ` Patrick Steinhardt
2026-07-10 17:02 ` Junio C Hamano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.