HADOOP-11352 Clean up test-patch.sh to disable "+1 contrib tests"
This commit is contained in:
parent
f71eb51ab8
commit
82707b4419
@ -857,74 +857,6 @@ findModules () {
|
|||||||
rm $TMP_MODULES
|
rm $TMP_MODULES
|
||||||
echo $CHANGED_MODULES
|
echo $CHANGED_MODULES
|
||||||
}
|
}
|
||||||
###############################################################################
|
|
||||||
### Run the test-contrib target
|
|
||||||
runContribTests () {
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
echo "======================================================================"
|
|
||||||
echo "======================================================================"
|
|
||||||
echo " Running contrib tests."
|
|
||||||
echo "======================================================================"
|
|
||||||
echo "======================================================================"
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
if [[ `$GREP -c 'test-contrib' build.xml` == 0 ]] ; then
|
|
||||||
echo "No contrib tests in this project."
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
### Kill any rogue build processes from the last attempt
|
|
||||||
$PS auxwww | $GREP ${PROJECT_NAME}PatchProcess | $AWK '{print $2}' | /usr/bin/xargs -t -I {} /bin/kill -9 {} > /dev/null
|
|
||||||
|
|
||||||
#echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" $ECLIPSE_PROPERTY -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no test-contrib"
|
|
||||||
#$ANT_HOME/bin/ant -Dversion="${VERSION}" $ECLIPSE_PROPERTY -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no test-contrib
|
|
||||||
echo "NOP"
|
|
||||||
if [[ $? != 0 ]] ; then
|
|
||||||
JIRA_COMMENT="$JIRA_COMMENT
|
|
||||||
|
|
||||||
{color:red}-1 contrib tests{color}. The patch failed contrib unit tests."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
JIRA_COMMENT="$JIRA_COMMENT
|
|
||||||
|
|
||||||
{color:green}+1 contrib tests{color}. The patch passed contrib unit tests."
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
### Run the inject-system-faults target
|
|
||||||
checkInjectSystemFaults () {
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
echo "======================================================================"
|
|
||||||
echo "======================================================================"
|
|
||||||
echo " Checking the integrity of system test framework code."
|
|
||||||
echo "======================================================================"
|
|
||||||
echo "======================================================================"
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
### Kill any rogue build processes from the last attempt
|
|
||||||
$PS auxwww | $GREP ${PROJECT_NAME}PatchProcess | $AWK '{print $2}' | /usr/bin/xargs -t -I {} /bin/kill -9 {} > /dev/null
|
|
||||||
|
|
||||||
#echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME inject-system-faults"
|
|
||||||
#$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME inject-system-faults
|
|
||||||
echo "NOP"
|
|
||||||
return 0
|
|
||||||
if [[ $? != 0 ]] ; then
|
|
||||||
JIRA_COMMENT="$JIRA_COMMENT
|
|
||||||
|
|
||||||
{color:red}-1 system test framework{color}. The patch failed system test framework compile."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
JIRA_COMMENT="$JIRA_COMMENT
|
|
||||||
|
|
||||||
{color:green}+1 system test framework{color}. The patch passed system test framework compile."
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
### Submit a comment to the defect's Jira
|
### Submit a comment to the defect's Jira
|
||||||
submitJiraComment () {
|
submitJiraComment () {
|
||||||
@ -1059,10 +991,7 @@ checkReleaseAuditWarnings
|
|||||||
if [[ $JENKINS == "true" || $RUN_TESTS == "true" ]] ; then
|
if [[ $JENKINS == "true" || $RUN_TESTS == "true" ]] ; then
|
||||||
runTests
|
runTests
|
||||||
(( RESULT = RESULT + $? ))
|
(( RESULT = RESULT + $? ))
|
||||||
runContribTests
|
|
||||||
(( RESULT = RESULT + $? ))
|
|
||||||
fi
|
fi
|
||||||
checkInjectSystemFaults
|
|
||||||
(( RESULT = RESULT + $? ))
|
(( RESULT = RESULT + $? ))
|
||||||
JIRA_COMMENT_FOOTER="Test results: $BUILD_URL/testReport/
|
JIRA_COMMENT_FOOTER="Test results: $BUILD_URL/testReport/
|
||||||
$JIRA_COMMENT_FOOTER"
|
$JIRA_COMMENT_FOOTER"
|
||||||
|
@ -148,6 +148,9 @@ Trunk (Unreleased)
|
|||||||
HADOOP-11081. Document hadoop properties expected to be set by the shell
|
HADOOP-11081. Document hadoop properties expected to be set by the shell
|
||||||
code in *-env.sh (aw)
|
code in *-env.sh (aw)
|
||||||
|
|
||||||
|
HADOOP-11352 Clean up test-patch.sh to disable "+1 contrib tests"
|
||||||
|
(Akira AJISAKA via stevel)
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
||||||
HADOOP-9451. Fault single-layer config if node group topology is enabled.
|
HADOOP-9451. Fault single-layer config if node group topology is enabled.
|
||||||
|
Loading…
Reference in New Issue
Block a user