From: Joe Perches <joe@perches.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: Andrey Utkin <andrey.krieger.utkin@gmail.com>,
kernelnewbies@kernelnewbies.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org
Subject: Re: How to automate checkpatch && get_maintainers && git send-email of commits range?
Date: Fri, 18 Jul 2014 15:47:44 -0700 [thread overview]
Message-ID: <1405723664.14358.98.camel@joe-AO725> (raw)
In-Reply-To: <20140718222215.GF18775@thunk.org>
On Fri, 2014-07-18 at 18:22 -0400, Theodore Ts'o wrote:
> On Fri, Jul 18, 2014 at 05:38:30PM +0300, Andrey Utkin wrote:
> > Is there script for automated checkpatch.pl && get_maintainers.pl &&
> > git send-email for range of commits? I see none. Would it be welcome
> > to submit such one to kernel tree?
>
> Too much automation can be a really bad thing. You **really** want to
> sanity check the output of checkpatch.pl
True.
checkpatch should not be used on existing commits.
checkpatch should be used prior to committing.
> and get_maintainers.pl.
I think checkpatch is pretty good about cc'ing mostly the
right folk by default.
Where it's not adequate is when some particular bit of code
was written by someone not the maintainer and that writer
should also be copied on a patch.
Many different command-line options exist for get_maintainer.
Perhaps too many. --git-blame can be used with patches to
also list the author of any modified commit. Using that
option can take a fairly long while to run though.
> Their output is not always correct, and some amount of human common
> sense is required.
True. Experience is more of a benefit than common sense here.
> And then think very hard about which patches people need to see in
> order to be able to evaluate a patch. For example, if you have patch
> 1 out of a series which adds a new function, and then patches 2
> through 1000 modify a thousand different drivers to use that new
> function, if you use an automated get_maintainers.pl script to send
> each patch to just the maintainer, then the device driver maintainer
> might not see patch #1 which is critical context to understanding the
> patch that you want to make to his driver. And then you will have
> several hundred very angry and annoyed developers wondering why you
> sent them patch 345/1000, with no other context, and wondering what
> the heck they are supposed to do with the email that you have just
> launched into their inbox.
There is no good solution to this problem.
You can't cc the world on patch 1/n (vger rejects emails
with too many recipients) and cc just the maintainers on x/n.
One solution is to send the 0/n and 1/n patches to all the
email lists that are cc'd on any single patch of large patch
series.
A better solution might be to send _only_ the 1/n patch to
lkml and to someone like Andrew Morton with an explanation
as to why it's useful, wait for it to be applied, then send
the large patch series during the next release cycle.
> There's a reason why many developers cordially hate these scripts;
> it's too easy to misuse them,
Yup, though cordial can be a misdescription for some of
those developers...
I hope everyone enjoys their weekends...
next prev parent reply other threads:[~2014-07-18 22:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 14:38 Andrey Utkin
2014-07-18 14:46 ` Benoit Taine
2014-07-18 15:24 ` Andrey Utkin
2014-07-18 20:40 ` Greg KH
2014-07-18 22:22 ` Theodore Ts'o
2014-07-18 22:47 ` Joe Perches [this message]
2014-07-18 22:50 ` Joe Perches
2014-07-19 1:31 ` Steven Rostedt
2014-07-19 3:35 ` Hillf Danton
2014-07-19 4:05 ` Nick Krause
2014-07-20 22:23 ` Dave Chinner
2014-07-18 14:55 Alexey Dobriyan
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=1405723664.14358.98.camel@joe-AO725 \
--to=joe@perches.com \
--cc=andrey.krieger.utkin@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=kernelnewbies@kernelnewbies.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®