tools.linux.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: b4 trailers doesn't work with imported series
@ 2025-06-27 17:00 Mark Brown
  2025-06-27 17:04 ` Konstantin Ryabitsev
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mark Brown @ 2025-06-27 17:00 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: tools

[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]

Hi,

With current git I'm seeing an error trying to shazam one particular
"series" (a single patch with a cover letter, which does normally work):

$ b4 shazam 20250627164348.3982628-2-mathias.nyman@linux.intel.com
Grabbing thread from lore.kernel.org/all/20250627164348.3982628-2-mathias.nyman@linux.intel.com/t.mbox.gz
Checking for newer revisions
Grabbing search results from lore.kernel.org
Analyzing 9 messages in the thread
Analyzing 0 code-review messages
Traceback (most recent call last):
  File "/home/broonie/git/b4/src/b4/command.py", line 450, in <module>
    cmd()
  File "/home/broonie/git/b4/src/b4/command.py", line 433, in cmd
    cmdargs.func(cmdargs)
  File "/home/broonie/git/b4/src/b4/command.py", line 105, in cmd_shazam
    b4.mbox.main(cmdargs)
  File "/home/broonie/git/b4/src/b4/mbox.py", line 842, in main
    make_am(msgs, cmdargs, msgid)
  File "/home/broonie/git/b4/src/b4/mbox.py", line 113, in make_am
    lser = lmbx.get_series(revision=wantver, sloppytrailers=cmdargs.sloppytrailers, reroll=reroll,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/broonie/git/b4/src/b4/__init__.py", line 362, in get_series
    pmsg = self.msgid_map[fmsg.in_reply_to]
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: '20250627142044.3872229-2-mathias.nyman@linux.intel.com'

Thanks,
Mark

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* b4 trailers doesn't work with imported series
@ 2022-12-07  0:41 Mark Brown
  2022-12-07  1:56 ` Konstantin Ryabitsev
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2022-12-07  0:41 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: tools

[-- Attachment #1: Type: text/plain, Size: 912 bytes --]

Not a common use case but if I do for example:

| $ b4 prep -F 20221117104636.639889-1-broonie@kernel.org -n tap-spec-relax -f v6.1-rc1
...
| NOTE: any follow-up trailers were ignored; apply them with b4 trailers -u

I run the suggested command but get:

| $ b4 trailers -u
| Calculating patch-ids from commits, this may take a moment...
| Checking change-id "20221207-tap-spec-relax-9138e5760340"
| Grabbing search results from lore.kernel.org
| Nothing matching that query.
| No trailer updates found.

since the change wasn't sent with b4 initially.  I see that the
documentaton does say to use -F but using that produces the same
output, it looks like it's checking the change-id no matter what
and gives up if it can't find it.

BTW I also notice that no template inter-version chnagelog is
generated for the b4 prep command above, the same thing seems to
happen even if the sent series has a cover letter.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-06-27 17:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-27 17:00 b4 trailers doesn't work with imported series Mark Brown
2025-06-27 17:04 ` Konstantin Ryabitsev
2025-06-27 17:10 ` Bugspray Bot
2025-06-27 17:40 ` Bugspray Bot
  -- strict thread matches above, loose matches on Subject: below --
2022-12-07  0:41 Mark Brown
2022-12-07  1:56 ` Konstantin Ryabitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).