Return-Path: Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: (qmail 80200 invoked from network); 25 Oct 2010 19:00:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Oct 2010 19:00:27 -0000 Received: (qmail 39276 invoked by uid 500); 25 Oct 2010 19:00:27 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 39124 invoked by uid 500); 25 Oct 2010 19:00:26 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 39117 invoked by uid 99); 25 Oct 2010 19:00:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 19:00:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 19:00:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4B2E32388978; Mon, 25 Oct 2010 18:59:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1027235 - in /hadoop/common/trunk: CHANGES.txt src/test/bin/test-patch.sh Date: Mon, 25 Oct 2010 18:59:29 -0000 To: common-commits@hadoop.apache.org From: nigel@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101025185929.4B2E32388978@eris.apache.org> Author: nigel Date: Mon Oct 25 18:59:28 2010 New Revision: 1027235 URL: http://svn.apache.org/viewvc?rev=1027235&view=rev Log: HADOOP-7005: Update test-patch.sh to remove callback to Hudson master. Contributed by nigel. Modified: hadoop/common/trunk/CHANGES.txt hadoop/common/trunk/src/test/bin/test-patch.sh Modified: hadoop/common/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1027235&r1=1027234&r2=1027235&view=diff ============================================================================== --- hadoop/common/trunk/CHANGES.txt (original) +++ hadoop/common/trunk/CHANGES.txt Mon Oct 25 18:59:28 2010 @@ -142,6 +142,8 @@ Trunk (unreleased changes) HADOOP-6987. Use JUnit Rule to optionally fail test cases that run more than 10 seconds (jghoman) + HADOOP-7005. Update test-patch.sh to remove callback to Hudson. (nigel) + OPTIMIZATIONS HADOOP-6884. Add LOG.isDebugEnabled() guard for each LOG.debug(..). Modified: hadoop/common/trunk/src/test/bin/test-patch.sh URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/test/bin/test-patch.sh?rev=1027235&r1=1027234&r2=1027235&view=diff ============================================================================== --- hadoop/common/trunk/src/test/bin/test-patch.sh (original) +++ hadoop/common/trunk/src/test/bin/test-patch.sh Mon Oct 25 18:59:28 2010 @@ -16,7 +16,7 @@ ulimit -n 1024 ### Setup some variables. -### JOB_NAME, SVN_REVISION, and BUILD_NUMBER are set by Hudson if it is run by patch process +### SVN_REVISION and BUILD_URL are set by Hudson if it is run by patch process ############################################################################### parseArgs() { @@ -24,8 +24,8 @@ parseArgs() { HUDSON) ### Set HUDSON to true to indicate that this script is being run by Hudson HUDSON=true - if [[ $# != 19 ]] ; then - echo "ERROR: usage $0 HUDSON " + if [[ $# != 18 ]] ; then + echo "ERROR: usage $0 HUDSON " cleanupAndExit 0 fi PATCH_DIR=$2 @@ -41,11 +41,10 @@ parseArgs() { ECLIPSE_HOME=${12} PYTHON_HOME=${13} BASEDIR=${14} - TRIGGER_BUILD_URL=${15} - JIRA_PASSWD=${16} - JAVA5_HOME=${17} - CURL=${18} - defect=${19} + JIRA_PASSWD=${15} + JAVA5_HOME=${16} + CURL=${17} + defect=${18} ### Retrieve the defect number if [ -z "$defect" ] ; then @@ -389,7 +388,7 @@ checkReleaseAuditWarnings () { echo "Lines that start with ????? in the release audit report indicate files that do not have an Apache license header." > $PATCH_DIR/releaseAuditDiffWarnings.txt echo "" > $PATCH_DIR/releaseAuditDiffWarnings.txt diff $PATCH_DIR/patchReleaseAuditProblems.txt $PATCH_DIR/trunkReleaseAuditProblems.txt >> $PATCH_DIR/releaseAuditDiffWarnings.txt - JIRA_COMMENT_FOOTER="Release audit warnings: http://hudson.zones.apache.org/hudson/job/$JOB_NAME/$BUILD_NUMBER/artifact/trunk/patchprocess/releaseAuditDiffWarnings.txt + JIRA_COMMENT_FOOTER="Release audit warnings: $BUILD_URL/artifact/trunk/patchprocess/releaseAuditDiffWarnings.txt $JIRA_COMMENT_FOOTER" return 1 fi @@ -418,7 +417,7 @@ checkStyle () { echo "" echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= checkstyle" $ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= checkstyle - JIRA_COMMENT_FOOTER="Checkstyle results: http://hudson.zones.apache.org/hudson/job/$JOB_NAME/$BUILD_NUMBER/artifact/trunk/build/test/checkstyle-errors.html + JIRA_COMMENT_FOOTER="Checkstyle results: $BUILD_URL/artifact/trunk/build/test/checkstyle-errors.html $JIRA_COMMENT_FOOTER" ### TODO: calculate actual patchStyleErrors # patchStyleErrors=0 @@ -454,7 +453,7 @@ checkFindbugsWarnings () { -1 findbugs. The patch appears to cause Findbugs to fail." return 1 fi -JIRA_COMMENT_FOOTER="Findbugs warnings: http://hudson.zones.apache.org/hudson/job/$JOB_NAME/$BUILD_NUMBER/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html +JIRA_COMMENT_FOOTER="Findbugs warnings: $BUILD_URL/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html $JIRA_COMMENT_FOOTER" cp $BASEDIR/build/test/findbugs/*.xml $PATCH_DIR/patchFindbugsWarnings.xml $FINDBUGS_HOME/bin/setBugDatabaseInfo -timestamp "01/01/1999" \ @@ -697,7 +696,7 @@ cleanupAndExit () { ############################################################################### JIRA_COMMENT="" -JIRA_COMMENT_FOOTER="Console output: http://hudson.zones.apache.org/hudson/job/$JOB_NAME/$BUILD_NUMBER/console +JIRA_COMMENT_FOOTER="Console output: $BUILD_URL/console This message is automatically generated." @@ -709,8 +708,6 @@ checkout RESULT=$? if [[ $HUDSON == "true" ]] ; then if [[ $RESULT != 0 ]] ; then - ### Resubmit build. - $CURL $TRIGGER_BUILD_URL'&DEFECTNUM='$defect exit 100 fi fi @@ -750,7 +747,7 @@ if [[ $HUDSON == "true" ]] ; then fi checkInjectSystemFaults (( RESULT = RESULT + $? )) -JIRA_COMMENT_FOOTER="Test results: http://hudson.zones.apache.org/hudson/job/$JOB_NAME/$BUILD_NUMBER/testReport/ +JIRA_COMMENT_FOOTER="Test results: $BUILD_URL/testReport/ $JIRA_COMMENT_FOOTER" submitJiraComment $RESULT