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 3CB019DB5 for ; Mon, 26 Mar 2012 04:15:17 +0000 (UTC) Received: (qmail 63451 invoked by uid 500); 26 Mar 2012 04:15:16 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 63395 invoked by uid 500); 26 Mar 2012 04:15:16 -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 63377 invoked by uid 99); 26 Mar 2012 04:15:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2012 04:15:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2012 04:15:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4342E34615A for ; Mon, 26 Mar 2012 04:14:52 +0000 (UTC) Date: Mon, 26 Mar 2012 04:14:52 +0000 (UTC) From: "Aaron T. Myers (Updated) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <980651576.15965.1332735292430.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <330737614.30743.1308784130854.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HADOOP-7416) Allow test-patch to work with cross sub-project changes 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-7416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aaron T. Myers updated HADOOP-7416: ----------------------------------- Attachment: HADOOP-7416.patch Here's a patch which partially addresses the issue. This will allow for cross-sub-project patches to apply cleanly, and will comment with a "-0 patch..." in the JIRA comment if this is detected. It *won't* actually run all of the tests from all affected modules. Since that's a substantially more involved change, and since this change should help considerably, I'd like to punt that to a separate JIRA. I tested this patch by creating a few uni-project and multi-project patches, and running test-patch manually. With this change, test-patch successfully applies and detects cross-sub-project patches. > Allow test-patch to work with cross sub-project changes > ------------------------------------------------------- > > Key: HADOOP-7416 > URL: https://issues.apache.org/jira/browse/HADOOP-7416 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Aaron T. Myers > Assignee: Aaron T. Myers > Attachments: HADOOP-7416.patch > > > Now that the sub-projects are sub-directories in the same repo, we can make {{test-patch.sh}} not barf on cross-project patches. We would need to make {{smart-apply-patch.sh}} not fail hard when it detects this, and probably make {{test-patch.sh}} run all the validation checks against all affected sub-projects. > This was inspired by HDFS-1900, which changes a config in Common that's referenced in a bunch of places in HDFS. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira