Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 95451D5C4 for ; Thu, 11 Oct 2012 23:39:05 +0000 (UTC) Received: (qmail 26278 invoked by uid 500); 11 Oct 2012 23:39:04 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 26221 invoked by uid 500); 11 Oct 2012 23:39:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 26077 invoked by uid 99); 11 Oct 2012 23:39:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 23:39:04 +0000 Date: Thu, 11 Oct 2012 23:39:04 +0000 (UTC) From: "Raja Aluri (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1637940173.33875.1349998744301.JavaMail.jiratomcat@arcas> In-Reply-To: <2030331917.33819.1349998143629.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HADOOP-8918) dev-support/test-patch.sh is parsing modified files wrong MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Raja Aluri updated HADOOP-8918: ------------------------------- Description: dev-support/test-patch.sh is parsing modified files wrong from the patch. In test-patch.sh script, for running findbugs command, it is trying to find out the modified files by doing the following command {code} $GREP '^+++\|^---' $PATCH_DIR/patch | cut -c '5-' | $GREP -v /dev/null | sort | uniq > $TMP {code} A patch file can have an entry with xml comments removed, which would match that to be a filename. If you look at the last line of the below text, it would match the filename to be '^M' {code} -^M -^M {code} was: dev-setup/test-patch.sh is parsing modified files wrong from the patch. In test-patch.sh script, for running findbugs command, it is trying to find out the modified files by doing the following command {code} $GREP '^+++\|^---' $PATCH_DIR/patch | cut -c '5-' | $GREP -v /dev/null | sort | uniq > $TMP {code} A patch file can have an entry with xml comments removed, which would match that to be a filename. If you look at the last line of the below text, it would match the filename to be '^M' {code} -^M -^M {code} > dev-support/test-patch.sh is parsing modified files wrong > --------------------------------------------------------- > > Key: HADOOP-8918 > URL: https://issues.apache.org/jira/browse/HADOOP-8918 > Project: Hadoop Common > Issue Type: Bug > Components: build > Affects Versions: 2.0.2-alpha > Reporter: Raja Aluri > Fix For: 2.0.3-alpha > > > dev-support/test-patch.sh is parsing modified files wrong from the patch. > In test-patch.sh script, for running findbugs command, it is trying to find out the modified files by doing the following command > {code} > $GREP '^+++\|^---' $PATCH_DIR/patch | cut -c '5-' | $GREP -v /dev/null | sort | uniq > $TMP > {code} > A patch file can have an entry with xml comments removed, which would match that to be a filename. If you look at the last line of the below text, it would match the filename to be '^M' > {code} > -^M > -^M > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira