From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 5E7A85585 for ; Wed, 30 Nov 2016 16:26:26 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 30 Nov 2016 07:26:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,574,1473145200"; d="scan'208";a="1075624732" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.64]) by fmsmga001.fm.intel.com with SMTP; 30 Nov 2016 07:26:23 -0800 Received: by (sSMTP sendmail emulation); Wed, 30 Nov 2016 15:26:22 +0000 Date: Wed, 30 Nov 2016 15:26:22 +0000 From: Bruce Richardson To: Thomas Monjalon Cc: Ferruh Yigit , dev@dpdk.org Message-ID: <20161130152622.GA259108@bricha3-MOBL3.ger.corp.intel.com> References: <1479768194-6255-1-git-send-email-thomas.monjalon@6wind.com> <1b249c77-5685-8492-6f6b-3478a2731267@intel.com> <3896815.T41b2RsLT8@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3896815.T41b2RsLT8@xps13> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.7.1 (2016-10-04) Subject: Re: [dpdk-dev] [PATCH] scripts: check cc stable mailing list in commit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2016 15:26:26 -0000 On Wed, Nov 30, 2016 at 04:09:47PM +0100, Thomas Monjalon wrote: > 2016-11-30 14:54, Ferruh Yigit: > > On 11/21/2016 10:43 PM, Thomas Monjalon wrote: > > > +stablefixes=$($selfdir/git-log-fixes.sh $range | sed '/(N\/A)$/d' | cut -d' ' -f2) > > > > This breaks the "check-git-log.sh -N" usage, since "-N" is not a valid > > range for git-log-fixes.sh. > > Generates warning: > > .../scripts/git-log-fixes.sh: illegal option -- 6 > > usage: git-log-fixes.sh [-h] > > Yes, good catch. > I'm trying to fix it by converting -N to HEAD~N.. > > if printf -- $range | grep -q '^-[0-9]\+' ; then > range="HEAD$(printf -- $range | sed 's,^-,~,').." > fi > > > > +# check CC:stable for fixes > > > +bad=$(for fix in $stablefixes ; do > > > + git log --format='%b' -1 $fix | grep -qi '^CC: *stable@dpdk.org' || > > > + git log --format='\t%s' -1 $fix > > > +done) > > > +[ -z "$bad" ] || printf "Should CC: stable@dpdk.org\n$bad\n" > > > > This is good for developer, but since "CC: xx" tags removed when patch > > applied, this will generate warnings when run against existing history. > > I do not think it is a problem. > Who runs this tool against existing history? > Me for one. I prefer to run the script against the commits in the repo before I generate the patches, rather than manually hand-editing the patches afterward - or having to fix the repo and then regenerate them. Also, when I was maintaining the next-net tree, I used to use pwclient git-am to apply a patch, and then check-got-log.sh -1 to sanity check it once build checks had passed. /Bruce