-
Notifications
You must be signed in to change notification settings - Fork 230
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
Update script to audit multiple Spark versions #539
Conversation
I think reviewers were auto added as there was a change in pom file in api_validation repo. |
build |
@@ -69,6 +69,15 @@ object ApiValidation extends Logging { | |||
val gpuKeys = gpuExecs.keys | |||
var printNewline = false | |||
|
|||
val fullClassName = ShimLoader.getSparkShims.getRapidsShuffleManagerClass | |||
var shimVersion = fullClassName.split('.')(4) |
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.
it would be better to just get the version from the shim itself: getSparkShimVersion
api_validation/pom.xml
Outdated
<profile> | ||
<id>spark301</id> | ||
<properties> | ||
<spark.version>3.0.1-SNAPSHOT</spark.version> |
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.
we have these copied now in a couple places, perhaps we can put a <spark301.version> property in the top level pom file and then just reference it, that way when we change from snapshot to release we only need to change in one place. Same for 3.1.0-SNAPSHOT
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.
Thanks! Created PR #549 for above.
Commits need to have signoff. |
Signed-off-by: Niranjan Artal <nartal@nvidia.com>
Signed-off-by: Niranjan Artal <nartal@nvidia.com>
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.
The changes look good to my shim-naive eyes. We can have Tom take a final look but lgtm !
build |
api_validation/README.md
Outdated
@@ -15,7 +17,11 @@ It requires cudf, rapids-4-spark and spark jars. | |||
|
|||
``` | |||
cd api_validation | |||
mvn scala:run | |||
// To run validation script on all version of Spark-3(3.0.0, 3.0.1-SNAPSHOT and 3.1.0-SNAPSHOT) |
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.
did you mean to have the -3 on here?
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 wanted to mean it as different versions of Spark 3. Removed it as it might be confusing.
@@ -69,6 +69,16 @@ object ApiValidation extends Logging { | |||
val gpuKeys = gpuExecs.keys | |||
var printNewline = false | |||
|
|||
val sparkToShimMap = Map("3.0.0"->"spark300", "3.0.1"->"spark301", "3.1.0"->"spark310") |
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.
nit add spaces around the -> on both sides.
api_validation/src/main/scala/com/nvidia/spark/rapids/api/ApiValidation.scala
Show resolved
Hide resolved
Signed-off-by: Niranjan Artal <nartal@nvidia.com>
Signed-off-by: Niranjan Artal <nartal@nvidia.com>
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.
looks good pending Jenkins
build |
* Update audit script to support multiple Spark versions * Update readme and validation script * addressed review comments Signed-off-by: Niranjan Artal <nartal@nvidia.com> * update pom * empty commit Signed-off-by: Niranjan Artal <nartal@nvidia.com> * addressed review comments Signed-off-by: Niranjan Artal <nartal@nvidia.com> * addresed review comments Signed-off-by: Niranjan Artal <nartal@nvidia.com>
* Update audit script to support multiple Spark versions * Update readme and validation script * addressed review comments Signed-off-by: Niranjan Artal <nartal@nvidia.com> * update pom * empty commit Signed-off-by: Niranjan Artal <nartal@nvidia.com> * addressed review comments Signed-off-by: Niranjan Artal <nartal@nvidia.com> * addresed review comments Signed-off-by: Niranjan Artal <nartal@nvidia.com>
Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com> Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>
This fixes #465.
Added profile to run against different versions.