All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Antonin Godard" <antonin.godard@bootlin.com>
To: "Quentin Schulz" <quentin.schulz@cherry.de>,
	"Quentin Schulz" <foss@0leil.net>, <docs@lists.yoctoproject.org>
Subject: Re: [docs] [PATCH v2] add basic b4 config file
Date: Fri, 07 Feb 2025 10:35:50 +0100	[thread overview]
Message-ID: <D7M414DI5EPE.22H0A4EO3Q0M@bootlin.com> (raw)
In-Reply-To: <4d4eec55-641f-40ea-b332-f24569682ed9@cherry.de>

Hi Quentin,

On Fri Feb 7, 2025 at 10:26 AM CET, Quentin Schulz wrote:
> Hi Antonin,
>
> On 2/7/25 10:09 AM, Antonin Godard wrote:
>> Hi Quentin,
>> 
>> On Wed Feb 5, 2025 at 3:02 PM CET, Quentin Schulz wrote:
>>> From: Quentin Schulz <quentin.schulz@cherry.de>
>>>
>>> b4[1] is a very nice tool for mail-based contribution. A config[2] file
>>> exists to set up a few defaults. We can use it to set the To recipients
>>> to always add, in our case the mailing list.
>>>
>>> Because we do not have anything to check for now, disable needs-checking
>>> so patches can be sent without running b4 prep --check.
>>>
>>> Because we do not have any auto-to-cc support (and the implicit one
>>> using scripts/get_maintainer.pl cannot work for us), also disable
>>> needs-auto-to-cc so patches can be sent without running b4 prep
>>> --auto-to-cc.
>>>
>>> [1] https://pypi.org/project/b4/
>>> [2] https://b4.docs.kernel.org/en/latest/config.html
>>>
>>> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
>>> ---
>>> I'm wondering if we couldn't add some per-patch check as well, checking
>>> that the documentation builds for each for example. Could be added in a
>>> later patch though. Any idea?
>> 
>> I think this is a good idea although I think it would make more sense to build
>> the tip commit only, as doc builds are a bit long? Don't know if this is
>
> Ideally individual patches shouldn't break builds so that bisectability 
> is guaranteed.
>
> At the same time, prep-perpatch-check-cmd currently runs sequentially 
> and Sphinx caches stuff between builds... so probably the first run 
> would be the longest and subsequent ones would benefit from the cache 
> (if we reuse the build output from previous patches).
>
>> possible with b4, though.
>> 
>
> Not yet, see 
> https://git.kernel.org/pub/scm/utils/b4/b4.git/tree/src/b4/ez.py#n1683
>
> Konstantin is typically the only one really working on that, so I'm sure 
> he would appreciate some patches :)
>
> At the same time, I've done some shady stuff with b4 for poky where I 
> check (rather **guess**) if the current patch is the last patch in a 
> series. c.f. 
> https://git.openembedded.org/openembedded-core/tree/scripts/b4-wrapper-poky.py#n44
>
>> In any case we might also use your container scripts for this (which I will get
>> to soon hopefully!).
>> 
>
> That itself may be adding a lot of time to the test since we need to 
> compile the container first. Additionally, remember that absolutely NO 
> message should be output to stdout or stderr by the script otherwise the 
> check is understood as a fail. I'm wondering if we couldn't add support 
> for a PIPE between b4 and the scripts so that we can ask it to print 
> stuff (e.g. "please be patient, this may take a while" and maybe even 
> print some progress). For example, I briefly added some WIP support for 
> patchtest as prep-perpatch-cmd in OE-Core, but it takes a long time 
> before returning something, not very user-friendly :/

Ok, all of that sounds like we could already have a first version of this
scripts that just builds the doc locally (no container), commit-per-commit.

Also, is there an option to opt out of this easily? I wouldn't want to
discourage people to contribute because they are unable to setup the docs build,
if you see what I mean (even though I really encourage them to do so, this saves
me time).

Random idea, but the script could read an env variable that switches to a
container build rather than a local build. So the default behavior is build to
build locally but we could always opt out of it. In any case, I would appreciate
a first version of the script that just does the build locally.

Antonin

-- 
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2025-02-07  9:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-05 14:02 [PATCH v2] add basic b4 config file Quentin Schulz
2025-02-07  9:09 ` [docs] " Antonin Godard
2025-02-07  9:26   ` Quentin Schulz
2025-02-07  9:35     ` Antonin Godard [this message]
2025-02-07  9:47       ` Quentin Schulz
2025-02-07  9:53     ` Richard Purdie
2025-02-07 10:28       ` Antonin Godard
2025-02-07 10:30         ` Richard Purdie
2025-02-07 10:48         ` Quentin Schulz
2025-02-07 11:21           ` Antonin Godard
2025-02-07 11:35             ` Quentin Schulz
2025-02-07 15:13               ` Antonin Godard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D7M414DI5EPE.22H0A4EO3Q0M@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=docs@lists.yoctoproject.org \
    --cc=foss@0leil.net \
    --cc=quentin.schulz@cherry.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.