Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1B898200C7C for ; Mon, 5 Jun 2017 20:01:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1A33D160BD4; Mon, 5 Jun 2017 18:01:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 39CC9160BBB for ; Mon, 5 Jun 2017 20:01:35 +0200 (CEST) Received: (qmail 7119 invoked by uid 500); 5 Jun 2017 18:01:34 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 7107 invoked by uid 99); 5 Jun 2017 18:01:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2017 18:01:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 98B1ECF383 for ; Mon, 5 Jun 2017 18:01:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.48 X-Spam-Level: X-Spam-Status: No, score=0.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=deenlo-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id rpBd0-wi1p_y for ; Mon, 5 Jun 2017 18:01:31 +0000 (UTC) Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5A5CB5F5B5 for ; Mon, 5 Jun 2017 18:01:31 +0000 (UTC) Received: by mail-qt0-f175.google.com with SMTP id u19so39075939qta.3 for ; Mon, 05 Jun 2017 11:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deenlo-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=cwX25b9GU3zP7ImP+GLMILboj1F6+PpBm3CMlVzqhaU=; b=hwdtQy/AnBMqErFFNQbuHCCuEPFaUN8E6EqgiIqoVE0PSrSNV2mGwQGUFit6vmFBZq sPNyQ3Z+HIS+tklJkhBuHPAfHpfbMiXVcRoLZQDnMZVz0vQMvbAmLGWHYPe022+yFFfV 60/LLJHI0KsRlToGQ5w9tCEB8D8kfzLVtpuUXEKiMryO/hyInh8lmYLP5hdgzmw5cBoc yx9ksufCEkqpzqA4br5DnTFsk5pxqvdOR5/iOaJ//eWcOj8FTK3yJ4EL2VvDERuDv/Vd cgwJSdh58N8BTHdyTZf1prnkBrkJTI97tbDmA99omEokfbi6IdaN5Y0NbFHLFMK3xJQ2 BcQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=cwX25b9GU3zP7ImP+GLMILboj1F6+PpBm3CMlVzqhaU=; b=iSs+MUXC5Ls1R/Y77i3FRZear+OLJa4YxQ8jjTppqTgWfJatUf7ct1EAsTB4NO+w5p wWQ3tZPU/m/cDuR4c6mhosWQbPm8t5D2GPHnECKlWTGIOYthZpCK1zZGUSwNn/sl3pDV B6mLVs/2336kmmZkMs5Ir+gjooJlvgS4xRgXoRyeQn9DW9ilOPfjWnX6UAzjmjVsZlpf A4OWMUVzf1e6F8O862wXi6TMp9NLhUnSvrxSY/esHkiMud//zKRAu/Sp1S19Yaq4IaY9 rd6P29uf2n5urjJCYGhxaDh3uv3HPaV/g26CM8n8KTVYPPDZB2gs5+3wV5OEJRDVQeO/ hoZQ== X-Gm-Message-State: AODbwcCcidDomT17pAacHscNDD48oy9hWnkb5PSUjD89vmUq3R5xtVHF i4XXmFP2QpJk2yCaCPsEYh9QpYfNnVArhKE= X-Received: by 10.55.203.132 with SMTP id u4mr23708733qkl.59.1496685690198; Mon, 05 Jun 2017 11:01:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.141.134 with HTTP; Mon, 5 Jun 2017 11:01:29 -0700 (PDT) In-Reply-To: References: <1263150021.90725.1496675313506@connect.xfinity.com> <1216526815.96005.1496680343808@connect.xfinity.com> <85a7cc91-fcbb-10cf-fadf-526614154897@gmail.com> <1194646934.97271.1496681853617@connect.xfinity.com> From: Keith Turner Date: Mon, 5 Jun 2017 14:01:29 -0400 Message-ID: Subject: Re: [DISCUSS] Pull Request Guidelines To: Accumulo Dev List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable archived-at: Mon, 05 Jun 2017 18:01:36 -0000 If Accumulo had a CONTRIBUTING.md, then when someone opens a PR GH would offer a link to it. https://help.github.com/articles/helping-people-contribute-to-your-project/ On Mon, Jun 5, 2017 at 1:19 PM, Mike Miller wrot= e: > I could be wrong, but it sounds like there are two different > perspectives being discussed here and it may be helpful to try and > separate the two. On one hand there are discussions of guidelines for > reviewers (Dave's initial list, Keith's ideas) to follow and on the > other hand, suggestions for contributors, which Christopher's list > sounds more geared towards. Since everyone on this list has to wear > both hats, I think each different point of view could benefit from > some loose guidelines. > > For example, General Pull Request Guidelines for the Accumulo community: > When submitting a PR... please run these commands [...] before > submitting to ensure code adheres to checkstyle and passes findbugs, > etc > When reviewing a PR... ensure dialog portrays how strongly the > reviewer feels about the comment [Could =3D optional suggestion, Should > =3D would be helpful but not blocking, Must =3D required] > > On Mon, Jun 5, 2017 at 12:57 PM, Dave Marion wrote= : >> I think things can be improved when it comes to handling pull requests. = The point of this thread was to try and come up with something to set expec= tations for the contributor. I figured the discussion would lead to the mod= ification of the existing example or to a new example. Christopher provided= a different example, but most of the feedback seemed to indicate that this= was not warranted. I'm not sure what else I can say on the matter. If the = majority thinks that its not a problem, then its not a problem. >> >>> On June 5, 2017 at 12:39 PM Josh Elser wrote: >>> >>> >>> Perhaps this discussion would be better served if you gave some concret= e >>> suggestions on how you think things can/should be improved. >>> >>> e.g. Mike's suggestion of using the maven-checkstyle-plugin earlier, wh= y >>> not focus on that? Does this (still) work with the build? If so, how do >>> we get that run automagically via travis or jenkins? >>> >>> To me, it seems like you either wanted to throw some shade or you are >>> genuinely concerned about a problem that others are not (yet?) concerne= d >>> about. I doubt re-focusing contribution processes for efficiency would >>> be met with disapproval. >>> >>> On 6/5/17 12:32 PM, Dave Marion wrote: >>> > The main entrance to the community for new contributors is through pu= ll requests. I have seen PR's approved in an inconsistent manner. My intent= was to make known the expectations for new contributions so that newcomers= don't get discouraged by the amount of feedback and/or changes requested w= hile providing some guidelines to make it more consistent. It seems that th= ere is not a desire to do this for various reasons. That's fine by me and I= 'm willing to drop the discussion here. >>> > >>> > >>> >> On June 5, 2017 at 12:14 PM "Marc P." wrote: >>> >> >>> >> Turner and Tubbs, >>> >> You both piqued my interest and I agree. There's something important= in what both said regarding the discussion and importance of a particular = change. Style changes most likely aren't deal breakers unless it is terribl= y confusing, but I would leave that up to the reviewer and developer to dis= cuss. >>> >> >>> >> Dave, >>> >> I'm sure your intent is good and you goal isn't the handcuff reviewe= rs. Is your concern over a stalemate on something such as a code style? Wou= ld a discussion not be the remedy for this? >>> >> >>> >> On Mon, Jun 5, 2017 at 12:07 PM, Keith Turner wrote: >>> >> >>> >> > > Sometimes I use review comments to just ask questions about thin= gs I >>> >>> don't understand. Sometimes when looking at a code review, I have a >>> >>> thought about the change that I know is a subjective opinion. In th= is >>> >>> case I want to share my thought, in case they find it useful. >>> >>> However, I don't care if a change is made or not. Sometimes I think= a >>> >>> change must be made. I try to communicate my intentions, but its >>> >>> wordy, slow, and I don't think I always succeed. >>> >>> >>> >>> Given there are so many ways the comments on a review can be used, = I >>> >>> think it can be difficult to quickly know the intentions of the >>> >>> reviewer. I liked review board's issues, I think they helped with >>> >>> this problem. A reviewer could make comments and issues. The issues >>> >>> made it clear what the reviewer thought must be done vs discussion. >>> >>> Issues made reviews more efficient by making the intentions clear A= ND >>> >>> separating important concerns from lots of discussion. >>> >>> >>> >>> When I submit a PR and it has lots of comments, towards the end I g= o >>> >>> back and look through all of the comments to make sure I didn't mis= s >>> >>> anything important. Its annoying to have to do this. Is there >>> >>> anything we could do in GH to replicate this and help separate the >>> >>> signal from the noise? >>> >>> >>> >>> >>> >>> On Mon, Jun 5, 2017 at 11:08 AM, Dave Marion wrote: >>> >>> > I propose that we define a set of guidelines to use when reviewin= g pull requests. In doing so, contributors will be able to determine potent= ial issues in their code possibly reducing the number of changes that occur= before acceptance. Here's an example to start the discussion: >>> >>> > >>> >>> > >>> >>> > Items a reviewer should look for: >>> >>> > >>> >>> > 1. Adherence to code formatting rules (link to formatting rules) >>> >>> > >>> >>> > 2. Unit tests required >>> >>> > >>> >>> > 3. Threading issues >>> >>> > >>> >>> > 4. Performance implications >>> >>> > >>> >>> > >>> >>> > Items that should not block acceptance: >>> >>> > >>> >>> > 1. Stylistic changes that have no performance benefit >>> >>> > >>> >>> > 2. Addition of features outside the scope of the ticket (moving t= he goal post, discussion should lead to ticket creation) >>> >>> >>> >>> > >>> >> >>> > >>> >