Skip to content

Commit

Permalink
Quick fix for hybrid tests without git information.
Browse files Browse the repository at this point in the history
For some tests in CI/CD, we only need to download specific test files and do not need to clone the entire Git repository.

As a result, we cannot retrieve the project root directory using Git commands.

So we use the $WORKSPACE(always pointing to the root dir of the project) instead of the Git top-level path.

Signed-off-by: timl <timl@nvidia.com>
  • Loading branch information
NvTimLiu committed Feb 7, 2025
1 parent c35cac8 commit 2f9fb3c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jenkins/hybrid_execution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ hybrid_prepare(){
fi

echo "Downloading hybrid execution dependency jars..."
project_root=$(git rev-parse --show-toplevel)
# This script may run outside the project root path, so we use mvn -f $project_root to target the project's pom.xml
RAPIDS_HYBRID_VER=${RAPIDS_HYBRID_VER:-$(mvn -f $project_root -B -q help:evaluate -Dexpression=spark-rapids-hybrid.version -DforceStdout)}
# This script may run outside the project root path, so we use mvn -f $WORKSPACE to target the project's pom.xml
RAPIDS_HYBRID_VER=${RAPIDS_HYBRID_VER:-$(mvn -f $WORKSPACE -B -q help:evaluate -Dexpression=spark-rapids-hybrid.version -DforceStdout)}
RAPIDS_HYBRID_URL=${RAPIDS_HYBRID_URL:-$URM_URL}
GLUTEN_BUNDLE_JAR="gluten-velox-bundle-${GLUTEN_VERSION}-spark${spark_prefix}_${SCALA_BINARY_VER}-${os_version}_${cup_arch}.jar"
HYBRID_JAR="rapids-4-spark-hybrid_${SCALA_BINARY_VER}-${RAPIDS_HYBRID_VER}.jar"
Expand Down

0 comments on commit 2f9fb3c

Please sign in to comment.