All of lore.kernel.org
 help / color / mirror / Atom feed
* [b4] prep-pre-flight-checks doesn't seem to work
@ 2025-01-17 11:35 Quentin Schulz
  2025-01-17 15:20 ` Konstantin Ryabitsev
  2025-01-17 16:20 ` Bugspray Bot
  0 siblings, 2 replies; 6+ messages in thread
From: Quentin Schulz @ 2025-01-17 11:35 UTC (permalink / raw)
  To: Kernel.org Tools

Hi all,

I believe prep-pre-flight-checks doesn't work.

I've added

[b4]
   prep-pre-flight-checks = disable-all

in my local git repo .b4-config, but b4 send still complains.

Adding --debug to b4 shows the following (stripped down to what I 
believe is important):

Loading worktree configs from 
/home/qschulz/work/upstream/yocto/yocto-docs/.b4-config
Running git --no-pager config --file 
/home/qschulz/work/upstream/yocto/yocto-docs/.b4-config -z --get-regexp 
b4\..*
wtcfg={'send-series-cc': 'yocto-docs@lists.yoctoproject.org', 
'prep-pre-flight-checks': 'disable-all'}
wtcfg: send-series-cc=yocto-docs@lists.yoctoproject.org

Now if I dump cfg_checks from 
https://git.kernel.org/pub/scm/utils/b4/b4.git/tree/src/b4/ez.py?id=33ea697cc3d0bc77d2f3fb58176116608a0f1332#n1923 
I only get "enable-all" the default value if the prep-pre-flight-checks 
key is missing from the config dict.

"""
diff --git a/src/b4/__init__.py b/src/b4/__init__.py
index 814413e..b514556 100644
--- a/src/b4/__init__.py
+++ b/src/b4/__init__.py
@@ -2883,7 +2883,7 @@ def _setup_main_config(cmdargs: 
Optional[argparse.Namespace] = None) -> None:
      # some options can be provided via the toplevel .b4-config file,
      # so load them up and use as defaults
      topdir = git_get_toplevel()
-    wtglobs = ['prep-*-check-cmd', 'send-*', '*mask', '*template*', 
'trailer*', 'pw-*']
+    wtglobs = ['prep-*-check-cmd', 'send-*', '*mask', '*template*', 
'trailer*', 'pw-*', 'prep-pre-flight-checks']
      multivals = ['keyringsrc', 'am-perpatch-check-cmd', 
'prep-perpatch-check-cmd']
      if topdir:
          wtcfg = os.path.join(topdir, '.b4-config')
"""

patching b4 with the above makes the property persist. No clue if that 
is the proper way to fix it nor what makes a setting worthy of being in 
that list.

Have I missed/misconfigured something somehow and this should work?

If it helps in anyway, running Fedora 41, Python 3.13.1. b4 tested from 
master (33ea697cc3d0 ("b4: stop generating full object IDs for 
non-binary diffs")) with b4.sh and also from v0.14.2 from pypi.

Let me know if there's anything I can do.

Cheers,
Quentin

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

end of thread, other threads:[~2025-01-17 16:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-17 11:35 [b4] prep-pre-flight-checks doesn't seem to work Quentin Schulz
2025-01-17 15:20 ` Konstantin Ryabitsev
2025-01-17 15:49   ` Quentin Schulz
2025-01-17 16:17     ` Konstantin Ryabitsev
2025-01-17 16:21       ` Quentin Schulz
2025-01-17 16:20 ` Bugspray Bot

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.