Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
* [b4] CRITICAL: prep-pre-flight-checks must be a list, got str
@ 2025-06-10 19:46 Nathan Chancellor
  2025-06-11 15:07 ` Konstantin Ryabitsev
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Chancellor @ 2025-06-10 19:46 UTC (permalink / raw)
  To: tools

After commit 8cae108 ("Further mypy typing enhancements"), I am seeing
an error when running 'b4 send':

  $ b4 send
  Converted the branch to 1 messages
  CRITICAL: prep-pre-flight-checks must be a list, got str

The following diff appears to resolve it for me.

Cheers,
Nathan

diff --git a/src/b4/ez.py b/src/b4/ez.py
index 0b24d50..df248bf 100644
--- a/src/b4/ez.py
+++ b/src/b4/ez.py
@@ -2005,7 +2005,7 @@ def cmd_send(cmdargs: argparse.Namespace) -> None:
                         'needs-checking-deps': True,
                         'needs-auto-to-cc': True,
                         }
-            cfg_checks = config.get('prep-pre-flight-checks', 'enable-all')
+            cfg_checks = config.get('prep-pre-flight-checks', ['enable-all'])
             if not isinstance(cfg_checks, list):
                 logger.critical('CRITICAL: prep-pre-flight-checks must be a list, got %s', type(cfg_checks).__name__)
                 sys.exit(1)

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

* Re: [b4] CRITICAL: prep-pre-flight-checks must be a list, got str
  2025-06-10 19:46 [b4] CRITICAL: prep-pre-flight-checks must be a list, got str Nathan Chancellor
@ 2025-06-11 15:07 ` Konstantin Ryabitsev
  0 siblings, 0 replies; 2+ messages in thread
From: Konstantin Ryabitsev @ 2025-06-11 15:07 UTC (permalink / raw)
  To: Nathan Chancellor; +Cc: tools

On Tue, Jun 10, 2025 at 12:46:24PM -0700, Nathan Chancellor wrote:
> After commit 8cae108 ("Further mypy typing enhancements"), I am seeing
> an error when running 'b4 send':
> 
>   $ b4 send
>   Converted the branch to 1 messages
>   CRITICAL: prep-pre-flight-checks must be a list, got str

Thank you for the report. I didn't take the patch, because the way this was
implemented needed to be redone anyway. Please check the latest master, and
thank you for trying out the bleeding edge!

-K

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

end of thread, other threads:[~2025-06-11 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 19:46 [b4] CRITICAL: prep-pre-flight-checks must be a list, got str Nathan Chancellor
2025-06-11 15:07 ` Konstantin Ryabitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox