Skip to contentSkip to conversation

b4 diff on multi-patch series does nothing (and fails)

b4 Quentin Schulz 2 participants 5 messages Dec 4, 2025 – Dec 5, 2025

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm flabbergasted, the same command I believe I ran a week ago doesn't work anymore. (the same series can be applied with b4 shazam still today).

From a U-Boot git repo (https://source.denx.de/u-boot/u-boot.git), run

b4 diff -v 2 3 -- https://lore.kernel.org/u-boot/[email protected]/

the command returns 1 as exit code and the following output:

"""
Grabbing thread from lore.kernel.org/all/[email protected]/t.mbox.gz Checking for older revisions
Grabbing search results from lore.kernel.org
Added from v2: 1 patches
---
Analyzing 14 messages in the thread
"""

I tried with another series (https://lore.kernel.org/u-boot/[email protected]/ and https://lore.kernel.org/u-boot/20251203-topic-am33-evm-lcd-v2026-01-v2-0-262cf4f34eb5@baylibre.com/) same issue. I tried with a Linux kernel multi-patch series (https://lore.kernel.org/linux-rockchip/[email protected]/), same issue.

Then I tried with a single-patch series (https://lore.kernel.org/u-boot/[email protected]/) from U-Boot and it displayed git range-diff as expected.

Full output with debug and no cache enabled:
"""

$ b4 -d diff -C -v 1 2 -- https://lore.kernel.org/u-boot/[email protected]/T/\#t
Running git --no-pager rev-parse --show-toplevel
Loading worktree configs from /home/qschulz/work/upstream/u-boot-test/.b4-config
Running git --no-pager config --file /home/qschulz/work/upstream/u-boot-test/.b4-config -z --get-regexp b4\..*
wtcfg={'send-auto-to-cmd': 'scripts/get_maintainer.pl --nogit --nogit-fallback --nogit-chief-penguins --norolestats --nom', 'send-auto-cc-cmd': 'scripts/get_maintainer.pl --nogit-fallback --nogit-chief-penguins --norolestats --nol'}
wtcfg: send-auto-to-cmd=scripts/get_maintainer.pl --nogit --nogit-fallback --nogit-chief-penguins --norolestats --nom
wtcfg: send-auto-cc-cmd=scripts/get_maintainer.pl --nogit-fallback --nogit-chief-penguins --norolestats --nol
Running git --no-pager config -z --get-regexp b4\..*
Running git --no-pager config -z --get-regexp gpg\..*
Running git --no-pager config -z --get-regexp user\..*
Running git --no-pager config -z --get-regexp sendemail\.[^.]+$
Using values from sendemail
t_mbx_url=https://lore.kernel.org/all/[email protected]/t.mbox.gz
Grabbing thread from lore.kernel.org/all/[email protected]/t.mbox.gz
Mailsplitting the mbox into /tmp/tmpah0iuqd0-mailsplit
Running git --no-pager mailsplit --mboxrd -o/tmp/tmpah0iuqd0-mailsplit
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Checking the subject on [PATCH v3] spi-nor: add support for XM25QH01D
Current base_msg: [PATCH v3] spi-nor: add support for XM25QH01D
Checking the subject on Re: [PATCH v2] spi-nor: add support for XM25QH01D
Current base_msg: [PATCH v3] spi-nor: add support for XM25QH01D
Checking the subject on Re: [PATCH v2] spi-nor: add support for XM25QH01D
Current base_msg: [PATCH v3] spi-nor: add support for XM25QH01D
Checking the subject on Re: [PATCH v2] spi-nor: add support for XM25QH01D
Current base_msg: [PATCH v3] spi-nor: add support for XM25QH01D
Checking the subject on [PATCH v2] spi-nor: add support for XM25QH01D
Current base_msg: [PATCH v3] spi-nor: add support for XM25QH01D
Checking the subject on Re: [PATCH] spi-nor: add support for XM25QH01D
Current base_msg: [PATCH v3] spi-nor: add support for XM25QH01D
Checking the subject on Re: [PATCH] spi-nor: add support for XM25QH01D
Current base_msg: [PATCH v3] spi-nor: add support for XM25QH01D
Checking the subject on [PATCH] spi-nor: add support for XM25QH01D
Checking for older revisions
Using cached copy: /home/qschulz/.cache/b4/a71aa23c4445f2a569dc5d928a1ea59df1b4665a.pi.msgs
Skipping [PATCH] spi-nor: add support for XM25QH01D: already have it
Skipping Re: [PATCH] spi-nor: add support for XM25QH01D: already have it
Skipping [PATCH v2] spi-nor: add support for XM25QH01D: already have it
Skipping Re: [PATCH v2] spi-nor: add support for XM25QH01D: already have it
Skipping [PATCH v3] spi-nor: add support for XM25QH01D: already have it
---
Analyzing 8 messages in the thread
Looking at: [PATCH v3] spi-nor: add support for XM25QH01D
  adding as patch
Looking at: Re: [PATCH v2] spi-nor: add support for XM25QH01D
  adding to followups
Looking at: Re: [PATCH v2] spi-nor: add support for XM25QH01D
  adding to followups
Looking at: Re: [PATCH v2] spi-nor: add support for XM25QH01D
  adding to followups
Looking at: [PATCH v2] spi-nor: add support for XM25QH01D
Found new series v2
  adding as patch
Looking at: Re: [PATCH] spi-nor: add support for XM25QH01D
  adding to followups
Looking at: Re: [PATCH] spi-nor: add support for XM25QH01D
  adding to followups
Looking at: [PATCH] spi-nor: add support for XM25QH01D
Found new series v1
  adding as patch
Using cache /home/qschulz/.cache/b4/0f33d9035ecc6d2c5c33d79799f4e3e6a79b2877.fakeam for [email protected]
Running git --no-pager cat-file -e d3538748550dbf654f317143d59c103985a02f3f
Running git --no-pager cat-file -e 487a240aafeb7e35c11b505aca889df791e81a08
Using previously generated range
Using cache /home/qschulz/.cache/b4/43d6735d5b703d096e83d51781ae02a37174ff7c.fakeam for [email protected]
Running git --no-pager cat-file -e d3538748550dbf654f317143d59c103985a02f3f
Running git --no-pager cat-file -e ecdcfe5cfa7b58a5a41a63ef86a43709f10f9998
Using previously generated range
---
Diffing v1 and v2
    Running: git range-diff d3538748550d..487a240aafeb 
d3538748550d..ecdcfe5cfa7b
Running git --no-pager range-diff d3538748550dbf654f317143d59c103985a02f3f..487a240aafeb7e35c11b505aca889df791e81a08 d3538748550dbf654f317143d59c103985a02f3f..ecdcfe5cfa7b58a5a41a63ef86a43709f10f9998 --color
---
1:  487a240aafe < -:  ----------- spi-nor: add support for XM25QH01D
-:  ----------- > 1:  ecdcfe5cfa7 spi-nor: add support for XM25QH01D
"""

"""

$ b4 -d diff -C -v 2 3 -- https://lore.kernel.org/u-boot/[email protected]/
Running git --no-pager rev-parse --show-toplevel
Loading worktree configs from /home/qschulz/work/upstream/u-boot-test/.b4-config
Running git --no-pager config --file /home/qschulz/work/upstream/u-boot-test/.b4-config -z --get-regexp b4\..*
wtcfg={'send-auto-to-cmd': 'scripts/get_maintainer.pl --nogit --nogit-fallback --nogit-chief-penguins --norolestats --nom', 'send-auto-cc-cmd': 'scripts/get_maintainer.pl --nogit-fallback --nogit-chief-penguins --norolestats --nol'}
wtcfg: send-auto-to-cmd=scripts/get_maintainer.pl --nogit --nogit-fallback --nogit-chief-penguins --norolestats --nom
wtcfg: send-auto-cc-cmd=scripts/get_maintainer.pl --nogit-fallback --nogit-chief-penguins --norolestats --nol
Running git --no-pager config -z --get-regexp b4\..*
Running git --no-pager config -z --get-regexp gpg\..*
Running git --no-pager config -z --get-regexp user\..*
Running git --no-pager config -z --get-regexp sendemail\.[^.]+$
Using values from sendemail
t_mbx_url=https://lore.kernel.org/all/[email protected]/t.mbox.gz
Grabbing thread from lore.kernel.org/all/[email protected]/t.mbox.gz
Mailsplitting the mbox into /tmp/tmpntdhes0t-mailsplit
Running git --no-pager mailsplit --mboxrd -o/tmp/tmpntdhes0t-mailsplit
Looking at: [email protected]
Going into maybe: 20251202201451.GL303283@bill-the-cat->[email protected]
Looking at: [email protected]
Going into maybe: CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com->[email protected]
Looking at: 20251202201451.GL303283@bill-the-cat
Going into maybe: CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com->20251202201451.GL303283@bill-the-cat
Looking at: CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com
Going into maybe: [email protected]>CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com
Looking at: [email protected]
Going into maybe: CAFLszThxhLBEm731QjvB-wbOGryGBfh1_09NeWNy13nLwqZW4A@mail.gmail.com->[email protected]
Looking at: [email protected]
Going into maybe: CAFLszThFdfMeFTtvDyXfH1iO2zx5fe9rJJSz=MQBGJiXB4HG5w@mail.gmail.com->[email protected]
Looking at: CAFLszThxhLBEm731QjvB-wbOGryGBfh1_09NeWNy13nLwqZW4A@mail.gmail.com
Going into maybe: [email protected]>CAFLszThxhLBEm731QjvB-wbOGryGBfh1_09NeWNy13nLwqZW4A@mail.gmail.com
Looking at: CAFLszThFdfMeFTtvDyXfH1iO2zx5fe9rJJSz=MQBGJiXB4HG5w@mail.gmail.com
Going into maybe: [email protected]>CAFLszThFdfMeFTtvDyXfH1iO2zx5fe9rJJSz=MQBGJiXB4HG5w@mail.gmail.com
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Going into maybe: 20251202201451.GL303283@bill-the-cat->[email protected]
Looking at: [email protected]
Going into maybe: CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com->[email protected]
Looking at: 20251202201451.GL303283@bill-the-cat
Going into maybe: CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com->20251202201451.GL303283@bill-the-cat
Looking at: CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com
Going into maybe: [email protected]>CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: CAFLszThxhLBEm731QjvB-wbOGryGBfh1_09NeWNy13nLwqZW4A@mail.gmail.com
Kept in thread: CAFLszThxhLBEm731QjvB-wbOGryGBfh1_09NeWNy13nLwqZW4A@mail.gmail.com
Looking at: CAFLszThFdfMeFTtvDyXfH1iO2zx5fe9rJJSz=MQBGJiXB4HG5w@mail.gmail.com
Kept in thread: CAFLszThFdfMeFTtvDyXfH1iO2zx5fe9rJJSz=MQBGJiXB4HG5w@mail.gmail.com
Looking at: [email protected]
Going into maybe: 20251202201451.GL303283@bill-the-cat->[email protected]
Looking at: [email protected]
Kept in thread: [email protected]
Looking at: 20251202201451.GL303283@bill-the-cat
Kept in thread: 20251202201451.GL303283@bill-the-cat
Looking at: CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com
Kept in thread: CAFLszTh1Tt1=9SOHf1WdnENB3q1E7vdq4mK4XjPC7Bob5gQoEw@mail.gmail.com
Looking at: [email protected]
Kept in thread: [email protected]
Checking the subject on [PATCH v3 1/4] fit: support signing with only an engine_id
Found change-id 20251030-binman-engine-e349b02696d0
Current base_msg: [PATCH v3 1/4] fit: support signing with only an engine_id
Checking the subject on [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
Current base_msg: [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
Checking the subject on Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
Current base_msg: [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
Checking the subject on Re: [PATCH v3 3/4] tools: binman: fit: add support for OpenSSL engines
Current base_msg: [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
Checking the subject on Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
Current base_msg: [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
Checking the subject on Re: [PATCH v3 3/4] tools: binman: fit: add support for OpenSSL engines
Current base_msg: [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
Checking the subject on Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
Current base_msg: [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
Checking the subject on Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
Current base_msg: [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
Checking the subject on Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
Current base_msg: [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
Checking the subject on Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
Checking for older revisions
Grabbing search results from lore.kernel.org
Mailsplitting the mbox into /tmp/tmphb58mgmz-mailsplit
Running git --no-pager mailsplit --mboxrd -o/tmp/tmphb58mgmz-mailsplit
Ignoring result (not revision we want): [PATCH 0/3] fit: allow signing with only an engine_id
Definitely an older revision [v2]: [PATCH v2 0/4] fit: allow signing with an OpenSSL engine
Adding: [PATCH v2 0/4] fit: allow signing with an OpenSSL engine
Skipping [PATCH v3 0/4] fit: allow signing with an OpenSSL engine: already have it
  Added from v2: 1 patches
---
Analyzing 14 messages in the thread
Ignoring 826:  all: $(TARGETS) (not a recognized non-person trailer)
Ignoring 829:  elf_sections: CFLAGS += $(LDS_EFL_SECTIONS) (not a recognized non-person trailer)
Ignoring 830:  elf_sections: elf_sections.c (not a recognized non-person trailer)
Looking at: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
  adding as patch
Ignoring 210:              args.update({'align': fdt_util.fdt32_to_cpu(align.value)}) (not a recognized non-person trailer)
Looking at: [PATCH v3 3/4] tools: binman: fit: add support for OpenSSL engines
  adding as patch
Ignoring 30:              align: Bytes to use for alignment of the FIT and its external data (not a recognized non-person trailer)
Ignoring 31:              keys_dir: Path to directory containing private and encryption keys (not a recognized non-person trailer)
Looking at: [PATCH v3 2/4] tools: binman: mkimage: add support for passing the engine
  adding as patch
Looking at: [PATCH v3 1/4] fit: support signing with only an engine_id
  adding as patch
Ignoring 97:       fit: support signing with only an engine_id (not a recognized non-person trailer)
Ignoring 98:       tools: binman: mkimage: add support for passing the engine (not a recognized non-person trailer)
Ignoring 99:       tools: binman: fit: add support for OpenSSL engines (not a recognized non-person trailer)
Ignoring 100:       tools: binman: fit: add tests for signing with an OpenSSL engine (not a recognized non-person trailer)
Looking at: [PATCH v3 0/4] fit: allow signing with an OpenSSL engine
  adding as v3 cover letter
Looking at: Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
  adding to followups
Looking at: Re: [PATCH v3 3/4] tools: binman: fit: add support for OpenSSL engines
  adding to followups
Looking at: Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
  adding to followups
Looking at: Re: [PATCH v3 3/4] tools: binman: fit: add support for OpenSSL engines
  adding to followups
Looking at: Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
  adding to followups
Looking at: Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
  adding to followups
Looking at: Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
  adding to followups
Looking at: Re: [PATCH v3 4/4] tools: binman: fit: add tests for signing with an OpenSSL engine
  adding to followups
Ignoring 72:       fit: support signing with only an engine_id (not a recognized non-person trailer)
Ignoring 73:       tools: binman: mkimage: add support for passing the engine (not a recognized non-person trailer)
Ignoring 74:       tools: binman: fit: add support for OpenSSL engines (not a recognized non-person trailer)
Ignoring 75:       tools: binman: fit: add tests for signing with an OpenSSL engine (not a recognized non-person trailer)
Looking at: [PATCH v2 0/4] fit: allow signing with an OpenSSL engine
  adding as v2 cover letter
"""

The commands were run with b4 0.13.0 but I actually tested all versions up to 0.14.3 (I do use 0.14.3 but went back to 0.13.0 for testing purposes), all from a separate virtualenv (venv) with only b4 in it.

I cannot rule out a PEBKAC, but I don't even know where to start debugging this so I would appreciate some hints/support :)

Thanks!
Quentin

#1 lore raw
Quoted 4 lines · Quentin Schulz

Hi all,

I'm flabbergasted, the same command I believe I ran a week ago doesn't work anymore. (the same series can be applied with b4 shazam still today).

Yes, I can confirm that this broke with the migration to the new servers. Somehow the search for previous revisions now only uses the first patch in the series instead of the entire series.

I'm investigating and will follow up shortly.

-K

#2 lore raw
Quoted 8 lines · Konstantin Ryabitsev
Quoted 2 lines

I'm flabbergasted, the same command I believe I ran a week ago doesn't work anymore. (the same series can be applied with b4 shazam still today).

Yes, I can confirm that this broke with the migration to the new servers. Somehow the search for previous revisions now only uses the first patch in the series instead of the entire series.

I'm investigating and will follow up shortly.

Looks like there may be a bug with search threads download in v2.0. I've reported it upstream:
https://public-inbox.org/meta/20251204-modest-jaybird-of-will-9d55dc@lemur/T/#u

Meanwhile, I will repoint lore.kernel.org to the old servers until this is fixed.

-K

#3 lore raw

Hi Konstantin,

Quoted 8 lines · Konstantin Ryabitsev
Quoted 7 lines · Konstantin Ryabitsev
Quoted 2 lines

I'm flabbergasted, the same command I believe I ran a week ago doesn't work anymore. (the same series can be applied with b4 shazam still today).

Yes, I can confirm that this broke with the migration to the new servers. Somehow the search for previous revisions now only uses the first patch in the series instead of the entire series.

Quoted 9 lines
Quoted 1 line

I'm investigating and will follow up shortly.

Looks like there may be a bug with search threads download in v2.0. I've reported it upstream:
https://public-inbox.org/meta/20251204-modest-jaybird-of-will-9d55dc@lemur/T/#u

Meanwhile, I will repoint lore.kernel.org to the old servers until this is fixed.

Thanks for the quick fix, much appreciated!

Cheers,
Quentin

#4 lore raw
Quoted 9 lines · Quentin Schulz
Quoted 7 lines

Looks like there may be a bug with search threads download in v2.0. I've reported it upstream:
https://public-inbox.org/meta/20251204-modest-jaybird-of-will-9d55dc@lemur/T/#u

Meanwhile, I will repoint lore.kernel.org to the old servers until this is fixed.

Thanks for the quick fix, much appreciated!

The fix is in place and I've repointed the servers back to their new location. Please let me know if you run into any other problems.

-K