* [PATCH b4] config: accept prep-pre-flight-checks from .b4-config
@ 2026-07-10 15:14 Clément Le Goffic
2026-07-10 15:51 ` Matthieu Baerts
0 siblings, 1 reply; 4+ messages in thread
From: Clément Le Goffic @ 2026-07-10 15:14 UTC (permalink / raw)
To: Kernel.org Tools; +Cc: Konstantin Ryabitsev, Clément Le Goffic
The .b4-config file is a convenient way to share project-level b4
configuration among contributors via version control. However, only
keys matching a set of glob patterns are currently accepted from it
(see wtglobs in _setup_main_config).
The prep-pre-flight-checks key, which controls which pre-flight
checks are enabled or disabled before sending a series, is not
matched by any of the existing patterns. The closest glob,
'prep-*-check-cmd', only matches keys ending in '-check-cmd', not
'-checks'. As a result, setting prep-pre-flight-checks in
.b4-config has no effect: the value is silently dropped and the
default 'enable-all' is used instead.
Add 'prep-pre-flight-checks' to the wtglobs list so it can be set
from .b4-config, allowing projects to disable checks (e.g.
needs-checking, needs-auto-to-cc) that are not relevant to their
workflow and share that decision via version control.
Signed-off-by: Clément Le Goffic <clegoffic@baylibre.com>
Assisted-by: huggingface:zai-org/GLM-5.2
---
src/b4/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/b4/__init__.py b/src/b4/__init__.py
index d7b41ee45dad..a2f1a008d41b 100644
--- a/src/b4/__init__.py
+++ b/src/b4/__init__.py
@@ -3847,6 +3847,7 @@ def _setup_main_config(cmdargs: Optional[argparse.Namespace] = None) -> None:
topdir = git_get_toplevel()
wtglobs = [
'prep-*-check-cmd',
+ 'prep-pre-flight-checks',
'review-*-check-cmd',
'send-*',
'*mask',
---
base-commit: 4217c3e5d3e1eb259626142fd71b91ec6d5e3d1e
change-id: 20260710-b4-config-pre-flight-checks-80dd6226c614
Best regards,
--
Clément Le Goffic <clegoffic@baylibre.com>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH b4] config: accept prep-pre-flight-checks from .b4-config
2026-07-10 15:14 [PATCH b4] config: accept prep-pre-flight-checks from .b4-config Clément Le Goffic
@ 2026-07-10 15:51 ` Matthieu Baerts
2026-07-10 16:04 ` Clément Le Goffic
0 siblings, 1 reply; 4+ messages in thread
From: Matthieu Baerts @ 2026-07-10 15:51 UTC (permalink / raw)
To: Clément Le Goffic, Kernel.org Tools; +Cc: Konstantin Ryabitsev
Hi Clément,
On 10/07/2026 17:14, Clément Le Goffic wrote:
> The .b4-config file is a convenient way to share project-level b4
> configuration among contributors via version control. However, only
> keys matching a set of glob patterns are currently accepted from it
> (see wtglobs in _setup_main_config).
>
> The prep-pre-flight-checks key, which controls which pre-flight
> checks are enabled or disabled before sending a series, is not
> matched by any of the existing patterns. The closest glob,
> 'prep-*-check-cmd', only matches keys ending in '-check-cmd', not
> '-checks'. As a result, setting prep-pre-flight-checks in
> .b4-config has no effect: the value is silently dropped and the
> default 'enable-all' is used instead.
>
> Add 'prep-pre-flight-checks' to the wtglobs list so it can be set
> from .b4-config, allowing projects to disable checks (e.g.
> needs-checking, needs-auto-to-cc) that are not relevant to their
> workflow and share that decision via version control.
I don't remember if it was present in this list for security reasons --
similar to *-check-cmd at some points [1] -- but I do remember a bug
report with the same patch [2] which has never been applied.
On my side, I think it would be useful to be able to use
"disable-needs-auto-to-cc" on some specific dev tree of a
"sub-subsystem". On these dev branches, no need to add extra reviewers
from the "parent" subsystem.
We could then have this config:
[b4]
send-series-to = <dev ML>
prep-pre-flight-checks = disable-needs-auto-to-cc
send-prefixes = <specific dev prefix>
[1] https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=a1360385
[2] https://bugzilla.kernel.org/show_bug.cgi?id=219705
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH b4] config: accept prep-pre-flight-checks from .b4-config
2026-07-10 15:51 ` Matthieu Baerts
@ 2026-07-10 16:04 ` Clément Le Goffic
2026-07-10 16:14 ` Matthieu Baerts
0 siblings, 1 reply; 4+ messages in thread
From: Clément Le Goffic @ 2026-07-10 16:04 UTC (permalink / raw)
To: Matthieu Baerts, Kernel.org Tools; +Cc: Konstantin Ryabitsev
Hi Mathieu,
On 7/10/26 5:51 PM, Matthieu Baerts wrote:
> Hi Clément,
>
> On 10/07/2026 17:14, Clément Le Goffic wrote:
>> The .b4-config file is a convenient way to share project-level b4
>> configuration among contributors via version control. However, only
>> keys matching a set of glob patterns are currently accepted from it
>> (see wtglobs in _setup_main_config).
>>
>> The prep-pre-flight-checks key, which controls which pre-flight
>> checks are enabled or disabled before sending a series, is not
>> matched by any of the existing patterns. The closest glob,
>> 'prep-*-check-cmd', only matches keys ending in '-check-cmd', not
>> '-checks'. As a result, setting prep-pre-flight-checks in
>> .b4-config has no effect: the value is silently dropped and the
>> default 'enable-all' is used instead.
>>
>> Add 'prep-pre-flight-checks' to the wtglobs list so it can be set
>> from .b4-config, allowing projects to disable checks (e.g.
>> needs-checking, needs-auto-to-cc) that are not relevant to their
>> workflow and share that decision via version control.
> I don't remember if it was present in this list for security reasons --
> similar to *-check-cmd at some points [1] -- but I do remember a bug
> report with the same patch [2] which has never been applied.
>
> On my side, I think it would be useful to be able to use
> "disable-needs-auto-to-cc" on some specific dev tree of a
> "sub-subsystem". On these dev branches, no need to add extra reviewers
> from the "parent" subsystem.
>
> We could then have this config:
>
> [b4]
> send-series-to = <dev ML>
> prep-pre-flight-checks = disable-needs-auto-to-cc
> send-prefixes = <specific dev prefix>
>
> [1] https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=a1360385
> [2] https://bugzilla.kernel.org/show_bug.cgi?id=219705
This is actually what this patch allows.
My usecase is to use b4 in a project unrelated to kernel process and
internals and I wanted to be able to use and push a .b4-config file with:
"prep-pre-flight-checks = disable-needs-auto-to-cc, disable-needs-checking"
in it so the pre-flight-checks doesn't fire for this project and for
everyone.
Note that disable all should also work here, not tested.
It should fix the bugzilla bug though.
Should I add a Fixes trailer or something like that?
Regards,
Clément
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH b4] config: accept prep-pre-flight-checks from .b4-config
2026-07-10 16:04 ` Clément Le Goffic
@ 2026-07-10 16:14 ` Matthieu Baerts
0 siblings, 0 replies; 4+ messages in thread
From: Matthieu Baerts @ 2026-07-10 16:14 UTC (permalink / raw)
To: Clément Le Goffic, Kernel.org Tools; +Cc: Konstantin Ryabitsev
On 10/07/2026 18:04, Clément Le Goffic wrote:
> Hi Mathieu,
>
> On 7/10/26 5:51 PM, Matthieu Baerts wrote:
>> Hi Clément,
>>
>> On 10/07/2026 17:14, Clément Le Goffic wrote:
>>> The .b4-config file is a convenient way to share project-level b4
>>> configuration among contributors via version control. However, only
>>> keys matching a set of glob patterns are currently accepted from it
>>> (see wtglobs in _setup_main_config).
>>>
>>> The prep-pre-flight-checks key, which controls which pre-flight
>>> checks are enabled or disabled before sending a series, is not
>>> matched by any of the existing patterns. The closest glob,
>>> 'prep-*-check-cmd', only matches keys ending in '-check-cmd', not
>>> '-checks'. As a result, setting prep-pre-flight-checks in
>>> .b4-config has no effect: the value is silently dropped and the
>>> default 'enable-all' is used instead.
>>>
>>> Add 'prep-pre-flight-checks' to the wtglobs list so it can be set
>>> from .b4-config, allowing projects to disable checks (e.g.
>>> needs-checking, needs-auto-to-cc) that are not relevant to their
>>> workflow and share that decision via version control.
>> I don't remember if it was present in this list for security reasons --
>> similar to *-check-cmd at some points [1] -- but I do remember a bug
>> report with the same patch [2] which has never been applied.
>>
>> On my side, I think it would be useful to be able to use
>> "disable-needs-auto-to-cc" on some specific dev tree of a
>> "sub-subsystem". On these dev branches, no need to add extra reviewers
>> from the "parent" subsystem.
>>
>> We could then have this config:
>>
>> [b4]
>> send-series-to = <dev ML>
>> prep-pre-flight-checks = disable-needs-auto-to-cc
>> send-prefixes = <specific dev prefix>
>>
>> [1] https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=a1360385
>> [2] https://bugzilla.kernel.org/show_bug.cgi?id=219705
>
>
> This is actually what this patch allows.
> My usecase is to use b4 in a project unrelated to kernel process and
> internals and I wanted to be able to use and push a .b4-config file with:
> "prep-pre-flight-checks = disable-needs-auto-to-cc, disable-needs-checking"
> in it so the pre-flight-checks doesn't fire for this project and for
> everyone.
> Note that disable all should also work here, not tested.
>
> It should fix the bugzilla bug though.
I don't know, but I guess no, otherwise Konstantin would have applied
the original bug attached to this bug report:
https://msgid.link/a8bc0958-6c46-4622-96ef-b1e55c15f30f@cherry.de
> Should I add a Fixes trailer or something like that?
Better to wait for Konstantin's feedback before sending a new version ;)
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-10 16:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 15:14 [PATCH b4] config: accept prep-pre-flight-checks from .b4-config Clément Le Goffic
2026-07-10 15:51 ` Matthieu Baerts
2026-07-10 16:04 ` Clément Le Goffic
2026-07-10 16:14 ` Matthieu Baerts
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.