Re: b4 fails filter-repo with FileNotFoundError

Tomi Valkeinen <[email protected]> Wed, 17 Jun 2026 15:02:37 +0300
Newsgroups org.kernel.linux.tools
Message-ID <[email protected]>
Hi,

On 15/06/2026 21:39, Konstantin Ryabitsev wrote:
> On Mon, Jun 15, 2026 at 03:52:53PM +0300, Tomi Valkeinen wrote:
>> Hi,
>>
>> I'm seeing this with a few commands, I think at least "b4 trailers -u" and
>> "b4 prep --edit-cover". Linux mint, b4 0.15.2.
>>
>> $ b4 prep --edit-cover
>> Invoking git-filter-repo to update the cover letter.
> 
> We got rid of git-filter-repo in the upcoming 0.16, so, since it's succeeding
> anyway, I'm going to put this on the backburner.
> 
> Thanks for the report, though!
Alright, I'll wait for 0.16 =).

Just for completeness, today when using "b4 send" I got a slightly 
different one (but, again, everything seems to be ok):

Sent 12 messages
Tagging sent/20250219-rcar-streams-1fdea8860e5e-v6
Recording series message-id in cover letter tracking
Created new revision v7
Updating cover letter with templated changelog entries.
Invoking git-filter-repo to update the cover letter.
New history written in 0.08 seconds...
Traceback (most recent call last):
   File "/home/tomba/.local/bin/b4", line 6, in <module>
     sys.exit(cmd())
              ^^^^^
   File 
"/home/tomba/.local/share/pipx/venvs/b4/lib/python3.12/site-packages/b4/command.py", 
line 512, in cmd
     cmdargs.func(cmdargs)
   File 
"/home/tomba/.local/share/pipx/venvs/b4/lib/python3.12/site-packages/b4/command.py", 
line 95, in cmd_send
     b4.ez.cmd_send(cmdargs)
   File 
"/home/tomba/.local/share/pipx/venvs/b4/lib/python3.12/site-packages/b4/ez.py", 
line 2352, in cmd_send
     reroll(mybranch, tag_msg, cl_msgid)
   File 
"/home/tomba/.local/share/pipx/venvs/b4/lib/python3.12/site-packages/b4/ez.py", 
line 2491, in reroll
     store_cover(new_cover, tracking)
   File 
"/home/tomba/.local/share/pipx/venvs/b4/lib/python3.12/site-packages/b4/ez.py", 
line 749, in store_cover
     run_frf(frf)
   File 
"/home/tomba/.local/share/pipx/venvs/b4/lib/python3.12/site-packages/b4/ez.py", 
line 157, in run_frf
     frf.run()
   File 
"/home/tomba/.local/share/pipx/venvs/b4/lib/python3.12/site-packages/git_filter_repo.py", 
line 4936, in run
     self._record_metadata(self.results_tmp_dir(), self._orig_refs)
   File 
"/home/tomba/.local/share/pipx/venvs/b4/lib/python3.12/site-packages/git_filter_repo.py", 
line 4767, in _record_metadata
     self._compute_metadata(metadata_dir, orig_refs)
   File 
"/home/tomba/.local/share/pipx/venvs/b4/lib/python3.12/site-packages/git_filter_repo.py", 
line 4712, in _compute_metadata
     assert(usoa == intermediate) # old wasn't pruned => usoa == 
intermediate
            ^^^^^^^^^^^^^^^^^^^^
AssertionError

  Tomi