All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Quentin Schulz <quentin.schulz@cherry.de>,
	Quentin Schulz <foss+yocto@0leil.net>,
	bitbake-devel@lists.openembedded.org,
	 docs@lists.yoctoproject.org
Subject: Re: [bitbake-devel] [PATCH v2] add basic support for b4 contribution workflow
Date: Wed, 05 Feb 2025 13:44:38 +0000	[thread overview]
Message-ID: <6e43bf6563a06db487fff96144fd2e61dd3d97cc.camel@linuxfoundation.org> (raw)
In-Reply-To: <e81c3992-5da5-42f4-b629-3288c63d00a8@cherry.de>

On Wed, 2025-02-05 at 14:38 +0100, Quentin Schulz wrote:
> Hi Richard,
> 
> On 2/5/25 2:34 PM, Richard Purdie wrote:
> > On Wed, 2025-02-05 at 14:11 +0100, Quentin Schulz via lists.openembedded.org wrote:
> > > Hi all,
> > > 
> > > On 1/17/25 11:44 AM, 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 Cc recipients
> > > > to always add, in our case the mailing list.
> > > > 
> > > > This also adds a wrapper script that is called by b4 to figure out which
> > > > addresses to put as Cc recipients. Considering that patches to the doc/
> > > > directory also need to be sent to the yocto-docs mailing list, this
> > > > wrapper handles that. A limitation of the script (lsdiff actually) is
> > > > that it doesn't know how to handle empty files, but those should be
> > > > of rather rare occurrences.
> > > > 
> > > > While the wrapper script should be enough by itself to add the bitbake
> > > > mailing list to the Cc recipients, one still needs to manually run b4
> > > > prep --auto-to-cc for that to happen. Therefore, let's add an explicit
> > > > send-series-cc so that at least that mailing list is always there.
> > > > 
> > > > Because we currently do not have anything to check for patch validity,
> > > > remove requirement for b4 prep --check to be run before sending a patch
> > > > series, via disable-needs-checking in prep-pre-flight-checks.
> > > > 
> > > > [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>
> > > > ---
> > > > This adds a basic config file for b4 to avoid to have to add the mailing
> > > > list by hand.
> > > > For documentation patches, the additional mailing list will be added
> > > > when running b4 prep --check, as is required for each new series managed
> > > > by b4.
> > > > 
> > > > Note that b4 supports patchwork, c.f.
> > > > https://b4.docs.kernel.org/en/latest/config.html#patchwork-integration-settings
> > > > though I have no clue what it does with it as I am no maintainer, but
> > > > maybe something worth having a look at if some maintainer of this repo
> > > > wants to use b4 to merge stuff?
> > > > ---
> > > > Changes in v2:
> > > > - add b4-wrapper for auto-detecting patches that are to be sent to the
> > > >     docs mailing list as well,
> > > > - disable forced b4 prep --check for each b4-managed series,
> > > > - Link to v1: https://lore.kernel.org/r/20240524-b4-support-v1-1-0c4334c36cc7@cherry.de
> > > > ---
> > > >    .b4-config    |  4 ++++
> > > >    b4-wrapper.py | 38 ++++++++++++++++++++++++++++++++++++++
> > > >    2 files changed, 42 insertions(+)
> > > > 
> > > > diff --git a/.b4-config b/.b4-config
> > > > new file mode 100644
> > > > index 0000000000000000000000000000000000000000..0b699f204c414099f2118ffdbc9f7b24454e4a4e
> > > > --- /dev/null
> > > > +++ b/.b4-config
> > > > @@ -0,0 +1,4 @@
> > > > +[b4]
> > > > +  send-series-cc = bitbake-devel@lists.openembedded.org
> > > > +  send-auto-cc-cmd = ./b4-wrapper.py send-auto-cc-cmd
> > > 
> > > All the above should be to instead of cc, will fix in next version.
> > > 
> > > @Richard, is the b4-wrapper.py below (this one for BitBake and not
> > > Poky!) fine in BitBake git repo? I believe it should since it needs to
> > > be called even when one develops from "vanilla" BitBake git repo and not
> > > poky combo repo. Just asking for confirmation here (and maybe you want a
> > > different name too?).
> > 
> > I guess the location is ok but can we call it b4-bitbake-wrapper.py
> 
> b4-wrapper-bitbake.py to follow the same naming scheme as for the one
> for poky that is stored in OE-Core maybe?

That makes sense, might as well try and be consistent :)

> > please? This is so that if someone sends patches, it is clear which
> > wrapper the patch is against. Top level files in repos can sometimes
> > get interesting for that, even if b4 should be helping make sure the
> > right patches go to the right lists in future!
> 
> One could have the interesting idea of contributing patches to the 
> b4-wrapper-bitbake.py script without using b4, so a unique name across 
> the code bases makes sense to me.
> 
> Looking at it, do we want the script to be in contrib/ in BitBake repo 
> maybe?

I'd wondered about that and would be fine with it. It would reduce
"clutter" in the top level directory which already has too many files
to me!

Cheers,

Richard


      reply	other threads:[~2025-02-05 13:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-17 10:44 [PATCH v2] add basic support for b4 contribution workflow Quentin Schulz
2025-01-17 11:01 ` [bitbake-devel] " Antonin Godard
2025-01-17 11:43   ` Quentin Schulz
2025-01-17 12:08     ` Antonin Godard
2025-01-17 12:12       ` Quentin Schulz
2025-01-17 12:39 ` Quentin Schulz
2025-02-05 13:11 ` Quentin Schulz
2025-02-05 13:34   ` [bitbake-devel] " Richard Purdie
2025-02-05 13:38     ` Quentin Schulz
2025-02-05 13:44       ` Richard Purdie [this message]

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=6e43bf6563a06db487fff96144fd2e61dd3d97cc.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=docs@lists.yoctoproject.org \
    --cc=foss+yocto@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.