Bug 25877

Summary: bugs.webkit.org should have a patch size warning
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: WebKit WebsiteAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Enhancement CC: abarth, ap, cjerdonek, darin, mrowe, zoltan
Priority: P4    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Eric Seidel (no email) 2009-05-19 15:08:20 PDT
bugs.webkit.org should warn potential committers that patches larger than 20k (or pick some equally small number) are unlikely to be reviewed.  This should be in bold letters and reviewers should feel free to just r- patches larger than that on principle.  :)  I suspect this will keep our review queue smaller.  Maybe such a warning would help me keep my own patch size smaller...  (Since I currently have ~10 patches up for review myself.)

I'll post a patch with some suggested text when I next have a clean tree.
Comment 1 Eric Seidel (no email) 2009-05-19 15:08:41 PDT
s/potential committers/potential contributers/
Comment 2 Alexey Proskuryakov 2009-05-20 03:39:30 PDT
It may make sense to add a note to <http://webkit.org/coding/contributing.html>, but I'm against polluting the Bugzilla "Create a New Attachment" page - a lot of good first time contributors cannot even mark patches for review, which is a sure sign that this page is too complicated as it is.
Comment 3 Mark Rowe (bdash) 2009-05-20 03:43:41 PDT
The Bugzilla UI is just plain awful for new contributors, and just barely tolerable for those that are used to it.  For new contributors a simpler, task-oriented UI that assisted them with the process (whether filing a bug, attaching a patch, marking a bug as fixed) would make life less complicated.  It'd probably make things more pleasant for frequent contributors too.  I guess this is all on a bit of a tangent from this bug report though.
Comment 4 Ojan Vafai 2009-05-20 05:20:09 PDT
(In reply to comment #3)
> The Bugzilla UI is just plain awful for new contributors, and just barely
> tolerable for those that are used to it.

A command-line script (a la git-send-bugzilla or chromium's gcl scripts) is much more friendly for new contributors. Also, it allows for automating many of the steps on the current contributing page. For example, it can warn if your patch is >20K or lacks a Changelog. Once we have a linter, it can warn if your style is incorrect. 
Comment 5 Chris Jerdonek 2009-12-14 01:37:43 PST
(In reply to comment #2)
> It may make sense to add a note to
> <http://webkit.org/coding/contributing.html>

I can add such a note since I'm in the middle of making some changes to that page.  Do you have any suggestions on how the page can be made simpler?

Note that we can also add screen shots (for example pointing out the "patch" checkbox, etc. in the "Add Attachment" UI), though that change will make the instructions page longer and perhaps more intimidating.
Comment 6 Chris Jerdonek 2009-12-14 01:46:55 PST
(In reply to comment #0)
> bugs.webkit.org should warn potential committers that patches larger than 20k
> (or pick some equally small number) are unlikely to be reviewed.

We can also add this check to check-webkit-style (it would be simple), though strictly speaking it's not a matter of style.
Comment 7 Adam Barth 2009-12-14 15:46:54 PST
I'm not sure check-webkit-style is the best place for the check.  Although convenient, it's not really a matter of code style.  If we'd like to check this property using a bot, it's trivial to extend an existing bot or set up a new bot.
Comment 8 Chris Jerdonek 2009-12-14 18:59:10 PST
(In reply to comment #7)
> I'm not sure check-webkit-style is the best place for the check.

After thinking a bit more, I agree with you that check-webkit-style is not a good place to check patch length.

There is an advantage, though, to having a warning appear as part of a script that contributors already run. You can save time by catching the problem earlier in the process than a bot can.

Another option is having svn-create-patch emit a warning through stderr.  This way contributors would always receive a notification early on that their patch is large.
Comment 9 Chris Jerdonek 2010-03-17 05:12:16 PDT
(In reply to comment #8)
> Another option is having svn-create-patch emit a warning through stderr.  This
> way contributors would always receive a notification early on that their patch
> is large.

FYI, the report for this option is here (a patch was just submitted):

https://bugs.webkit.org/show_bug.cgi?id=32582