-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run '--packages' only with default cuda11 jar #10279
Merged
NvTimLiu
merged 2 commits into
NVIDIA:branch-24.02
from
NvTimLiu:followup-packages-test
Jan 30, 2024
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -304,10 +304,17 @@ if [[ $TEST_MODE == "DEFAULT" ]]; then | |
PYSP_TEST_spark_shuffle_manager=com.nvidia.spark.rapids.${SHUFFLE_SPARK_SHIM}.RapidsShuffleManager \ | ||
./run_pyspark_from_build.sh | ||
|
||
SPARK_SHELL_SMOKE_TEST=1 \ | ||
PYSP_TEST_spark_jars_packages=com.nvidia:rapids-4-spark_${SCALA_BINARY_VER}:${PROJECT_VER} \ | ||
PYSP_TEST_spark_jars_repositories=${PROJECT_REPO} \ | ||
./run_pyspark_from_build.sh | ||
# As '--packages' only works on the default cuda11 jar, it does not support classifiers | ||
# refer to issue : https://issues.apache.org/jira/browse/SPARK-20075 | ||
# "$CLASSIFIER" == ''" is usally for the case running by developers, | ||
# while "$CLASSIFIER" == "cuda11" is for the case running on CI. | ||
# We expect to run packages test for both cases | ||
if [[ "$CLASSIFIER" == "" || "$CLASSIFIER" == "cuda11" ]]; then | ||
SPARK_SHELL_SMOKE_TEST=1 \ | ||
PYSP_TEST_spark_jars_packages=com.nvidia:rapids-4-spark_${SCALA_BINARY_VER}:${PROJECT_VER} \ | ||
PYSP_TEST_spark_jars_repositories=${PROJECT_REPO} \ | ||
./run_pyspark_from_build.sh | ||
if | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo 'fi' |
||
|
||
# ParquetCachedBatchSerializer cache_test | ||
PYSP_TEST_spark_sql_cache_serializer=com.nvidia.spark.ParquetCachedBatchSerializer \ | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain in a comment why OR-ing with
"$CLASSIFIER" == "cuda11"
is necessary (if it is)?As you point out, we know that Spark does not support classifiers in Maven coordinates and it does not look used inside this
if
branchThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gerashegalov , good question.
cuda11 jar the the same as main jar, though we do not put
cuda11
as part of the--packages
param, "CLASSIFIER==cuda11" is the most common case(e.g.https://github.com/NVIDIA/spark-rapids/blob/branch-24.02/jenkins/version-def.sh#L30-L31) to to run integration tests. If only filter it with "CLASSIFIER==''", we may skippackages
test in all CI jobs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that the default artifact without a classifier is the same as the cuda11-classified artifact.
IIUC,
"$CLASSIFIER" == ''"
is for the case when the script is run by a developer."$CLASSIFIER" == "cuda11"
is for cases when run on CI. If so, please add a comment about this. It is strange to see a check for the cuda11 classifier next to the comment saying it's not supported.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion, let me add comment for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed