<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 28, 2015, at 3:00 PM, Assaf Muller <<a href="mailto:amuller@redhat.com" class="">amuller@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Sep 28, 2015 at 12:40 PM, Zane Bitter <span dir="ltr" class=""><<a href="mailto:zbitter@redhat.com" target="_blank" class="">zbitter@redhat.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 28/09/15 05:47, Gorka Eguileor wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 26/09, Morgan Fainberg wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As a core (and former PTL) I just ignored commit message -1s unless there is something majorly wrong (no bug id where one is needed, etc).<br class="">
<br class="">
I appreciate well formatted commits, but can we let this one go? This discussion is so far into the meta-bike-shedding (bike shedding about bike shedding commit messages) ... If a commit message is *that* bad a -1 (or just fixing it?) Might be worth it. However, if a commit isn't missing key info (bug id? Bp? Etc) and isn't one long incredibly unbroken sentence moving from topic to topic, there isn't a good reason to block the review.<br class="">
</blockquote></blockquote>
<br class=""></span>
+1<span class=""><br class="">
<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It is not worth having a bot -1 bad commits or even having gerrit muck with them. Let's do the job of the reviewer and actually review code instead of going crazy with commit messages.<br class="">
</blockquote></blockquote>
<br class=""></span>
+1<span class=""><br class="">
<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sent via mobile<br class="">
<br class="">
</blockquote>
<br class="">
I have to disagree, as reviewers we have to make sure that guidelines<br class="">
are followed, if we have an explicit guideline that states that<br class="">
the limit length is 72 chars, I will -1 any patch that doesn't follow<br class="">
the guideline, just as I would do with i18n guideline violations.<br class="">
</blockquote>
<br class=""></span>
Apparently you're unaware of the definition of the word 'guideline'. It's a guide. If it were a hard-and-fast rule then we would have a bot enforcing it already.<br class="">
<br class="">
Is there anything quite so frightening as a large group of people blindly enforcing rules with total indifference to any sense of overarching purpose?<br class="">
<br class="">
A reminder that the reason for this guideline is to ensure that none of the broad variety of tools that are available in the Git ecosystem effectively become unusable with the OpenStack repos due to wildly inconsistent formatting. And of course, even that goal has to be balanced against our other goals, such as building a healthy community and occasionally shipping some software.<br class="">
<br class="">
There are plenty of ways to achieve that goal other than blanket drive-by -1's for trivial inconsistencies in the formatting of individual commit messages.</blockquote><div class=""><br class=""></div><div class="">The actual issue is that we as a community (Speaking of the Neutron community at least) are stat-crazed. We have a fair number of contributors</div><div class="">that -1 for trivial issues to retain their precious stats with alarming zeal. That is the real issue. All of these commit message issues, translation mishaps,</div><div class="">comment typos etc are excuses for people to boost their stats without contributing their time or energy in to the project. I am beyond bitter about this</div><div class="">issue at this point.</div><div class=""><br class=""></div><div class="">I'll say what I've always said about this issue: The review process is about collaboration. I imagine that the author is sitting next to me, and we're going</div><div class="">through the patch together for the purpose of improving it. Review comments should be motivated by a thirst to improve the proposed code in a real way,</div><div class="">not by your want or need to improve your stats on stackalytics. The latter is an enormous waste of your time.</div></div></div></div></div></blockquote><div><br class=""></div><div>This is kind of a thread-jack, but to respond to your concern, I think the infra team has a nice writeup on how to review that addresses your concern: <a href="http://docs.openstack.org/infra/system-config/project.html#review-criteria" class="">http://docs.openstack.org/infra/system-config/project.html#review-criteria</a></div><div><br class=""></div><div>I’ve certainly seen plenty of neutron reviewers that I’d prefer to see following the above link (myself included, on occasion.)</div><div><br class=""></div><div>Thanks,</div><div>doug</div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A polite comment and a link to the guidelines is a great way to educate new contributors. For core reviewers especially, a comment like that and a +1 review will *almost always* get you the change you want in double-quick time. (Any contributor who knows they are 30s work away from a +2 is going to be highly motivated.)<span class=""><br class="">
<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Typos are a completely different matter and they should not be grouped<br class="">
together with guideline infringements.<br class="">
</blockquote>
<br class=""></span>
"Violations"? "Infringements"? It's line wrapping, not a felony case.<span class=""><br class="">
<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I agree that it is a waste of time and resources when you have to -1 a<br class="">
patch for this, but there multiple solutions, you can make sure your<br class="">
editor does auto wrapping at the right length (I have mine configured<br class="">
this way), or create a git-enforce policy with a client-side hook, or do<br class="">
like Ihar is trying to do and push for a guideline change.<br class="">
<br class="">
I don't mind changing the guideline to any other length, but as long as<br class="">
it is 72 chars I will keep enforcing it, as it is not the place of<br class="">
reviewers to decide which guidelines are worthy of being enforced and<br class="">
which ones are not.<br class="">
</blockquote>
<br class=""></span>
Of course it is.<br class="">
<br class="">
If we're not here to use our brains, why are we here? Serious question. Feel free to use any definition of 'here'.<span class=""><br class="">
<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br class="">
Gorka.<br class="">
<br class="">
<br class="">
<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sep 26, 2015, at 21:19, Ian Wells <<a href="mailto:ijw.ubuntu@cack.org.uk" target="_blank" class="">ijw.ubuntu@cack.org.uk</a>> wrote:<br class="">
<br class="">
Can I ask a different question - could we reject a few simple-to-check things on the push, like bad commit messages? For things that take 2 seconds to fix and do make people's lives better, it's not that they're rejected, it's that the whole rejection cycle via gerrit review (push/wait for tests to run/check website/swear/find change/fix/push again) is out of proportion to the effort taken to fix it.<br class="">
</blockquote></blockquote></blockquote>
<br class=""></span>
I would welcome a confirmation step - but *not* an outright rejection - that runs *locally* in git-review before the change is pushed. Right now, gerrit gives you a warning after the review is pushed, at which point it is too late.<span class=""><br class="">
<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It seems here that there's benefit to 72 line messages - not that everyone sees that benefit, but it is present - but it doesn't outweigh the current cost.<br class="">
</blockquote></blockquote></blockquote>
<br class=""></span>
Yes, 72 columns is the correct guideline IMHO. It's used virtually throughout the Git ecosystem now. Back in the early days of Git it wasn't at all clear - should you have no line breaks at all and let each tool do its own soft line wrapping? If not, where should you wrap? Now there's a clear consensus that you hard wrap at 72. Vi wraps git commit messages at 72 by default.<br class="">
<br class="">
The output of "git log" indents commit messages by four spaces, so anything longer than 76 gets ugly, hard-to-read line-wrapping. I've also noticed that Launchpad (or at least the bot that posts commit messages to Launchpad when patches merge) does a hard wrap at 72 characters.<br class="">
<br class="">
A much better idea than modifying the guideline would be to put documentation on the wiki about how to set up your editor so that this is never an issue. You shouldn't even have to even think about the line length for at least 99% of commits.<br class="">
<br class="">
cheers,<br class="">
Zane.<div class="HOEnZb"><div class="h5"><br class="">
<br class="">
__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org/?subject:unsubscribe" rel="noreferrer" target="_blank" class="">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br class="">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="">
</div></div></blockquote></div><br class=""></div></div>
__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></div></blockquote></div><br class=""></body></html>