Skip to content

Commit

Permalink
Update CI script for hybrid execution tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Liu <[email protected]>
  • Loading branch information
NvTimLiu committed Jan 16, 2025
1 parent a1bf0a0 commit 9700b40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions jenkins/hybrid_execution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ hybrid_prepare(){
echo "cup_arch=$cup_arch, os_version=$os_version, SCALA_BINARY_VER=$SCALA_BINARY_VER"
if [[ ! ("$cup_arch" == "x86_64" && ("$os_version" == "ubuntu_20.04" || "$os_version" == "ubuntu_22.04") && "$SCALA_BINARY_VER" == "2.12") ]]; then
echo "SKIP! Only supports running Scala 2.12 hybrid execution tests on an x86_64 processor under Ubuntu 20.04 or 22.04."
return 1
fi

echo "Downloading hybrid execution dependency jars..."
Expand Down
5 changes: 1 addition & 4 deletions jenkins/spark-premerge-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,8 @@ mvn_verify() {

# test Hybrid feature
source "${WORKSPACE}/jenkins/hybrid_execution.sh"
result=$(hybrid_prepare)
if [ $result == 0 ]; then
if hybrid_prepare ; then
hybrid_test
else
echo "Skipped hybrid execution tests $result"
fi
}

Expand Down
5 changes: 1 addition & 4 deletions jenkins/spark-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,8 @@ fi
# hybrid execution tests
if [[ "$TEST_MODE" == "DEFAULT" || "$TEST_MODE" == "HYBRID_EXECUTION" ]]; then
source "${WORKSPACE}/jenkins/hybrid_execution.sh"
result=$(hybrid_prepare)
if [ $result == 0 ]; then
if hybrid_prepare ; then
hybrid_test
else
echo "Skipped hybrid execution tests $result"
fi
fi

Expand Down

0 comments on commit 9700b40

Please sign in to comment.