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 5CEAD200B92 for ; Wed, 14 Sep 2016 01:05:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5B6C5160AD3; Tue, 13 Sep 2016 23:05:50 +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 7D49F160AD2 for ; Wed, 14 Sep 2016 01:05:49 +0200 (CEST) Received: (qmail 85096 invoked by uid 500); 13 Sep 2016 23:05:48 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 85083 invoked by uid 99); 13 Sep 2016 23:05:48 -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; Tue, 13 Sep 2016 23:05:48 +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 B3B9DCECEC for ; Tue, 13 Sep 2016 23:05:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.802 X-Spam-Level: X-Spam-Status: No, score=-0.802 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-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 MyVu6Y51JYoe for ; Tue, 13 Sep 2016 23:05:46 +0000 (UTC) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id A2BB05FB19 for ; Tue, 13 Sep 2016 23:05:45 +0000 (UTC) Received: by mail-pa0-f53.google.com with SMTP id cm16so97803pac.0 for ; Tue, 13 Sep 2016 16:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:mime-version:subject:message-id:date :references:in-reply-to:to; bh=+DjrINViHKki1QxWj4L2BEsRpYHVValmi2GOWEbwEMg=; b=X6Ic4p1BADnNwruFT6zgVwzjgFXOq4JAB0q+lmHAqSVQCYNWTZK6dX97zDs3mwmQFW qHxw4ORhyW6Az96Ro7M5yVQKUJmK/JV6r/m5ThKnmScXpCohi9ZJXDMgy0BtvS0seyWW 2x/0kCeCLcoB+zwqPCrwI1yHDX+7hKIGOI1jdJk9+wsFrc3f3VzwP9VzTgW5kA2qa7z0 SLfOrdPQVzKKBs/r+eB0BkWug78lObpP/4XuSiAykdn5kUKlPbuQSS18HFtFa6/FDxRJ l+OWqCGydRMj//70NQ9xjWCFMpFctRZCU/ZE6EviHi+Ow2C6Zrzeoag5FVGggcO1MVsL d+Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:references:in-reply-to:to; bh=+DjrINViHKki1QxWj4L2BEsRpYHVValmi2GOWEbwEMg=; b=HAagcU0O9pOMCaVGf+QT5Ee64yB1oGihUBT05o9/4tqkdy2vOW+tc7hiwBPQEE34TL EVZ4t9MpgcJtVFdMeuyAFSEpdKHI1zQWrURO3IE+BWBTelB0iXwCMPw1LJ6L7+MVjy8Q KOh9fG8KbqK/1xyttSuOkt5LquCYFMTN7h5jUhYG6AH52YoFbiJnkU0RmLchCWc55MWk 7Qa2O2L+aPgb6fX4d7nsBwhobYdR8c90CGLiz/yaLnudXJydNc/egFtxQ7/Gmw7GXDhh qaNfr3JH+EDdu9A/iAFo0ysWPuREmSeGpRix0RKXgpg6/tLIZ1yTSHW+AEUK12rWT6gG q3yg== X-Gm-Message-State: AE9vXwO5pR5TXJOk7gXPxpNjTqyjrHgRoJpr90+N+8Ds6seGUg+DQG7PifAJaKvZZDaWwQ== X-Received: by 10.66.75.164 with SMTP id d4mr5667626paw.22.1473807944205; Tue, 13 Sep 2016 16:05:44 -0700 (PDT) Received: from [192.168.0.12] (cpe-172-250-97-70.socal.res.rr.com. [172.250.97.70]) by smtp.gmail.com with ESMTPSA id bx9sm695797pab.17.2016.09.13.16.05.42 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Sep 2016 16:05:42 -0700 (PDT) From: Andrew Purtell Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: Consider adding the issue number in commit message Message-Id: Date: Tue, 13 Sep 2016 16:05:41 -0700 References: In-Reply-To: To: dev@hbase.apache.org X-Mailer: iPhone Mail (13G36) archived-at: Tue, 13 Sep 2016 23:05:50 -0000 I believe we have the commit format documented in our online book. If not, l= ets. =20 > On Sep 13, 2016, at 2:30 PM, Xi Yang wrote: >=20 > +1 > If I don't put Jira issue number in commit message then I don't know > whatelse I can put. Jira issue number already contain all the information > of your commitment and it makes the commitment traceable . So I suggest w= e > don't need to say any other words except Jira issue number and the title. >=20 > The whole commitment message should be "HBASE- xxxxxxxxx" >=20 > That will make our got history looks clear >=20 > Thanks > Alex >=20 >> On Tuesday, 13 September 2016, Dima Spivak wrote:= >>=20 >> +1 to that, Enis. >>=20 >> -Dima >>=20 >> On Tue, Sep 13, 2016 at 2:15 PM, Enis S=C3=B6ztutar > > wrote: >>=20 >>> +1 on not force pushing. The git repo is sync'ed to multiple places (lik= e >>> github, etc) so force pushes should be avoided unless a feature branch. >>>=20 >>> Should we extend the list of no-force-pushes to all active release >> branches >>> (branch-1, branch-1.2, branch-1.1, etc)? >>>=20 >>> Enis >>>=20 >>>> On Tue, Sep 13, 2016 at 1:46 PM, Ted Yu >> > wrote: >>>=20 >>>> Interesting. >>>>=20 >>>> I can try to write a script which: >>>> given JIRA number (e.g. 16491), emits HBASE-xyz Description (author) >>>>=20 >>>> The output can then be copy-pasted in commit. >>>>=20 >>>> Cheers >>>>=20 >>>> On Tue, Sep 13, 2016 at 12:57 PM, Jerry He > > wrote: >>>>=20 >>>>> I have made similar mistakes on the commit messages previously, (and >>>> people >>>>> here on this thread had kindly reminded me on the JIRA before). >>>>> I was wondering if some automatic enforcement could be set up, on the >>>>> server side, or on the client side. >>>>>=20 >>>>> On Tue, Sep 13, 2016 at 11:18 AM, Andrew Purtell < >> apurtell@apache.org > >>>>> wrote: >>>>>=20 >>>>>> Big +1 >>>>>>=20 >>>>>> JIRA identifiers in commit issues must be mandatory. >>>>>>=20 >>>>>> Occasionally a committer makes a mistake. We're human. Simply >> revert >>>> and >>>>>> push up a fixed commit. >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> On Tue, Sep 13, 2016 at 10:16 AM, Sean Busbey > > >>>>> wrote: >>>>>>=20 >>>>>>> On Tue, Sep 13, 2016 at 10:00 AM, Gary Helmling < >>> ghelmling@gmail.com >>>>>=20 >>>>>>> wrote: >>>>>>>>=20 >>>>>>>>> To fix erroneous commit messages, please revert the offending >>>>> commits >>>>>>>>> and then reapply them with a correct commit message. >>>>>>>> Honestly, I don't see the point of this. In this case the >>> original >>>>>>> commit >>>>>>>> is still there, so nothing is really fixed. Instead we wind up >>>> with >>>>> 3 >>>>>>>> commits muddying up the change history for the affected files. >>>>>>>>=20 >>>>>>>> I would much rather preserve a clean change history at the cost >>> of >>>> a >>>>>> few >>>>>>>> bad commit messages. I don't think it's really that big a >> deal. >>>>>>>=20 >>>>>>> We rely on the commit messages in git for both authorship and as >> a >>>>>>> sanity check against the information in JIRA. It may not seem >> like >>> a >>>>>>> big deal in the small when one of these is missing, but it adds >> up >>> to >>>>>>> making more work for folks who are trying to do necessary and >>> already >>>>>>> unpopular tasks. >>>>>>>=20 >>>>>>> The authorship information is mostly a nice-to-have for checking >> on >>>>>>> activity levels in the project. As a PMC member that information >> is >>>>>>> important to me. I can get it from JIRA as well, but that's more >>>> work. >>>>>>>=20 >>>>>>> The JIRA key in the commit message is a key part of how we do >>> sanity >>>>>>> checks on the information in JIRA come release time. Please make >>> sure >>>>>>> you correct erroneous commits that miss it or use the wrong JIRA >>> key. >>>>>>> Otherwise you put a bunch more work on folks doing RM duty (or >>>> atleast >>>>>>> me when I do RM duty), because we have to do a lot more to track >>> down >>>>>>> what's going on when JIRA says an issue is fixed but git doesn't >>>> agree >>>>>>> (or vice versa). >>>>>>>=20 >>>>>>>=20 >>>>>>> -- >>>>>>> busbey >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> -- >>>>>> Best regards, >>>>>>=20 >>>>>> - Andy >>>>>>=20 >>>>>> Problems worthy of attack prove their worth by hitting back. - Piet >>>> Hein >>>>>> (via Tom White) >>=20