Return-Path: X-Original-To: apmail-mesos-reviews-archive@minotaur.apache.org Delivered-To: apmail-mesos-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DBA3F179AF for ; Fri, 6 Nov 2015 09:05:30 +0000 (UTC) Received: (qmail 52699 invoked by uid 500); 6 Nov 2015 09:05:30 -0000 Delivered-To: apmail-mesos-reviews-archive@mesos.apache.org Received: (qmail 52679 invoked by uid 500); 6 Nov 2015 09:05:30 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 52662 invoked by uid 99); 6 Nov 2015 09:05:30 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2015 09:05:30 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 35A5027B617; Fri, 6 Nov 2015 09:05:30 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7491442759422001182==" MIME-Version: 1.0 Subject: Re: Review Request 39985: [1/5] Introduced ACL protobuf definitions for dynamic reservation. From: "Adam B" To: "Michael Park" , "Adam B" , "Jie Yu" , "Till Toenshoff" Cc: "Guangya Liu" , "Greg Mann" , "mesos" Date: Fri, 06 Nov 2015 09:05:30 -0000 Message-ID: <20151106090530.1770.69251@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Adam B" X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/39985/ X-Sender: "Adam B" References: <20151106072200.1771.29471@reviews.apache.org> In-Reply-To: <20151106072200.1771.29471@reviews.apache.org> Reply-To: "Adam B" X-ReviewRequest-Repository: mesos --===============7491442759422001182== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Nov. 5, 2015, 11:22 p.m., Guangya Liu wrote: > > include/mesos/authorizer/authorizer.proto, line 28 > > > > > > We have some discussions want to reduce the comments to 70 chars per line. > > Adam B wrote: > We actually recently changed the style guide to no longer require comments to wrap at 70 chars. > Now comments can/should wrap at 80 chars like everything else. We will not do a sweeping change. > > Guangya Liu wrote: > I see that we are still under discussion for this in mail list, seems @bmahler has some different comments, please search "Mesos Style Guideline Adjustments?" in dev list for detail. > > Just cite the comments from bmahler from dev list: > This has come up in a couple of reviews, seems like we should add some soft > guidelines around how to format comments for readability. > > In particular, the reason that we wrapped at 70 in the past was for > readability, so it would be great to continue doing so as a soft stylistic > rule. The other thing we've been doing for readability is reducing > "jaggedness" (variability in line lengths). > > It would be great to establish these as soft rules and encourage new > contributors / committers to follow them. Compare these two comments in > Master::updateTask. The first one wraps at 70 and reduces jagedness, the > second wraps at 80 and is more jagged: > > https://github.com/apache/mesos/blob/0.25.0/src/master/master.cpp#L6057 > https://github.com/apache/mesos/blob/0.25.0/src/master/master.cpp#L6072 > > I can provide more examples to help clarify. If no one objects, I'll follow > up with an update to the style guide. Thoughts appreciated! > > Guangya Liu wrote: > You can also refer here: http://search-hadoop.com/m/0Vlr6MlNkc1FGzCj2/Mesos+Style+Guideline+Adjustments%25E2%2580%258F+Ben+Mahler+This+has+come+up+in+a+couple+of+reviews%252C+seems+like+we+should+add+some+soft&subj=Re+Mesos+Style+Guideline+Adjustments > > This is still under discussion. Fair enough, but if the goal is to reduce jaggedness, that's yet another argument for keeping this comment all on one line, even past 70 chars. (Thanks for the discussion reference. I knew that we'd recently removed the 70 char restriction, but wasn't abreast of the ongoing discussion.) - Adam ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/39985/#review105376 ----------------------------------------------------------- On Nov. 5, 2015, 1:50 p.m., Greg Mann wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/39985/ > ----------------------------------------------------------- > > (Updated Nov. 5, 2015, 1:50 p.m.) > > > Review request for mesos, Adam B, Jie Yu, Michael Park, and Till Toenshoff. > > > Bugs: MESOS-3062 > https://issues.apache.org/jira/browse/MESOS-3062 > > > Repository: mesos > > > Description > ------- > > Introduced ACL protobuf definitions for dynamic reservation. > Note: this review is continued from https://reviews.apache.org/r/37002/ > > > Diffs > ----- > > include/mesos/authorizer/authorizer.proto 86bbb45f9d91b4098a262e3e50a793f3bb39497e > > Diff: https://reviews.apache.org/r/39985/diff/ > > > Testing > ------- > > This is the first in a chain of 5 patches. `make check` was used to test at the end of the chain. > > > Thanks, > > Greg Mann > > --===============7491442759422001182==--