Skip to content

Commit

Permalink
HBASE-27477 Tweak hbase-vote.sh to support hbase-thirdparty
Browse files Browse the repository at this point in the history
With a small change, the hbase-vote.sh script can be used to verify release candidates produced
from the hbase-thirdparty repository. Probably more could be done that is specific to this
project's release artifacts, but this minor change enables the basics.

Signed-off-by: Duo Zhang <[email protected]>
  • Loading branch information
ndimiduk authored Nov 10, 2022
1 parent 6c32d1a commit da99738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev-support/hbase-vote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function build_from_source() {

function run_tests() {
rm -f "${OUTPUT_PATH_PREFIX}"_run_tests
mvn package "${MVN_PROFILES[@]}" "${MVN_PROPERTIES[@]}" -Dsurefire.rerunFailingTestsCount=3 2>&1 | tee "${OUTPUT_PATH_PREFIX}"_run_tests && UNIT_TEST_PASSED=1
mvn clean package "${MVN_PROFILES[@]}" "${MVN_PROPERTIES[@]}" -Dsurefire.rerunFailingTestsCount=3 2>&1 | tee "${OUTPUT_PATH_PREFIX}"_run_tests && UNIT_TEST_PASSED=1
}

function execute() {
Expand All @@ -175,7 +175,7 @@ function print_when_exit() {
* Built from source (${JAVA_VERSION}): $( ((BUILD_FROM_SOURCE_PASSED)) && echo "ok" || echo "failed" )
- mvn clean install ${MVN_PROPERTIES[@]} -DskipTests
* Unit tests pass (${JAVA_VERSION}): $( ((UNIT_TEST_PASSED)) && echo "ok" || echo "failed" )
- mvn package ${MVN_PROFILES[@]} ${MVN_PROPERTIES[@]} -Dsurefire.rerunFailingTestsCount=3
- mvn clean package ${MVN_PROFILES[@]} ${MVN_PROPERTIES[@]} -Dsurefire.rerunFailingTestsCount=3
__EOF
if ((CHECKSUM_PASSED)) && ((SIGNATURE_PASSED)) && ((RAT_CHECK_PASSED)) && ((BUILD_FROM_SOURCE_PASSED)) && ((UNIT_TEST_PASSED)) ; then
exit 0
Expand Down

0 comments on commit da99738

Please sign in to comment.