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 7B2EB109D6 for ; Thu, 12 Dec 2013 22:43:10 +0000 (UTC) Received: (qmail 88363 invoked by uid 500); 12 Dec 2013 22:43:08 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 88309 invoked by uid 500); 12 Dec 2013 22:43:08 -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 88242 invoked by uid 99); 12 Dec 2013 22:43:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 22:43:08 +0000 Date: Thu, 12 Dec 2013 22:43:08 +0000 (UTC) From: "Brock Noland (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10163) Attachment Id for last tested patch should be passed to test-patch.sh 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-10163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13846844#comment-13846844 ] Brock Noland commented on HADOOP-10163: --------------------------------------- Here is what we do with hive where $JIRA_TEXT is a file containing the entire HTML page: {noformat} # pull attachments from JIRA (hack stolen from hadoop since rest api doesn't show attachments) PATCH_URL=$(grep -o '"/jira/secure/attachment/[0-9]*/[^"]*' $JIRA_TEXT | \ grep -v -e 'htm[l]*$' | sort | tail -1 | \ grep -o '/jira/secure/attachment/[0-9]*/[^"]*') if [[ -z "$PATCH_URL" ]] then echo "Unable to find attachment for $JIRA_NAME" exit 1 fi # ensure attachment has not already been tested ATTACHMENT_ID=$(basename $(dirname $PATCH_URL)) if grep -q "ATTACHMENT ID: $ATTACHMENT_ID" $JIRA_TEXT then echo "Attachment $ATTACHMENT_ID is already tested for $JIRA_NAME" exit 1 fi {noformat} > Attachment Id for last tested patch should be passed to test-patch.sh > --------------------------------------------------------------------- > > Key: HADOOP-10163 > URL: https://issues.apache.org/jira/browse/HADOOP-10163 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Ted Yu > > In HBASE-10044, attempt was made to filter attachments according to known file extensions. > However, that change alone wouldn't work because when non-patch is attached, QA bot doesn't provide attachment Id for last tested patch. > This results in the modified test-patch.sh to seek backward and launch duplicate test run for last tested patch. > If attachment Id for last tested patch is provided, test-patch.sh can decide whether there is need to run test. -- This message was sent by Atlassian JIRA (v6.1.4#6159)