[Ksummit-discuss] [CORE TOPIC] Recruitment (Reviewers, Testers, Maintainers, Hobbyists)

NeilBrown neilb at suse.com
Sat Jul 18 01:42:28 UTC 2015


On Thu, 16 Jul 2015 12:52:16 -0400 Steven Rostedt <rostedt at goodmis.org>
wrote:

> On Thu, 16 Jul 2015 09:24:56 -0700
> Tim Bird <tim.bird at sonymobile.com> wrote:
> 
> 
> > That's really good feedback.  I've often assumed that if you saw something
> > that needed fixing, you had a responsibility to properly format a patch
> > so as not to burden the maintainer.  I've labeled my own "best-effort,
> > but-probably-not-mainlinable" patches as [RFC PATCH..].  Would it be
> > worth having a convention for that sort of thing?
> 
> At a minimum, the patch should not be html, an attachment, nor have
> broken whitespace where the patch doesn't apply. But other than that,
> just report the bug and say "this fixes it for me". And if it is a real
> bug, the maintainer should take it.
> 
> Now, some maintainers will want to let the author have credit for the
> patch, and may ask the author to format it differently such that they
> can submit the patch with the original author as credited. I'll do that
> as not to make the fix just with my name on it. So, if you really just
> want the fix upstream, and don't want to bother with the hassle and get
> the author credit for the change, simply state that. Something like: 
> 
> ---
> Note, this patch fixes the bug for me. If there's a better solution, or
> it needs tweaking feel free to make the change. I don't need to be
> author of the patch, a Reported-by is fine with me.
> 
> The '---' is to have that not be part of the change log in case they
> do take the patch as is.
> 
> If it's not much tweaking, I'll take the patch, make the modifications
> I want, and just add a comment to the change log about my updates,
> leaving the original author as the author of the patch.
> 

Yes.  Absolutely.  A patch is a gift - some unwrapping may be required.

We talk a lot about creating tooling to help newbies submit perfect
patches.  Maybe we need to spend more time creating tooling to help old
timers accept imperfect patches.

How hard would it be to get "patch" or "git apply" to apply
white-space-damaged patches?  Wiggle does a good job of a certain
class.  I came this --><--- close to getting wiggle to strip trailing
'\r', but I never received that third patch to push me over the edge.

How hard would it be to create a pre-commit hook that strips trailing
spaces, NormalizesCamelCase, and imposes Reverse Christmas Notation (or
whatever it is).  It could even add "FOO:" to the start of the
patch summary for any patch which modifies the "FOO" subsystem.

How hard would it be to have an SMTP server on submit.kernel.org which
only accepts properly formatted patches addressed to
"linux at kernel.org", performs basic compile tests, runs get_maintainer
and sends it off to the appropriate places.  Then Eager Developer could
just "./scripts/config-email", answer two questions, and "git
submit" (or whatever) would submit their pride and joy to the correct
place.  ./scripts/config-email would probably install the pre-commit
hooks so that bad white space would never even get to git.

NeilBrown


More information about the Ksummit-discuss mailing list