Skip to content
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

Add missed shims for scala2.13 #10465

Merged
merged 14 commits into from
Mar 1, 2024
Merged

Conversation

NvTimLiu
Copy link
Collaborator

@NvTimLiu NvTimLiu commented Feb 22, 2024

Add spark334 and spark342 shims for the private scala2.13 jars

To fix: #10464

Signed-off-by: Tim Liu <timl@nvidia.com>
@NvTimLiu NvTimLiu added the build Related to CI / CD or cleanly building label Feb 22, 2024
@NvTimLiu NvTimLiu self-assigned this Feb 22, 2024
@NvTimLiu
Copy link
Collaborator Author

build

jlowe
jlowe previously approved these changes Feb 22, 2024
@gerashegalov
Copy link
Collaborator

According to the PR checks spark-rapids-private sclala2.13 shims for 334 and 342 are not published either

340,
341,
342,
350
</noSnapshotScala213.buildvers>
<snapshotScala213.buildvers>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add 351 to snapshotScala213.buildvers as well

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add 351 to snapshotScala213.buildvers as well

We do not support 3.5.1 in 24.02, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for 24.02 release build, snapshot shim doesn't matter.

Copy link
Collaborator Author

@NvTimLiu NvTimLiu Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add 351 to snapshotScala213.buildvers as well

Good catch! Let me update it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add 351 to snapshotScala213.buildvers as well

We do not support 3.5.1 in 24.02, right?

Yes, we only build/test against spark-3.5.1-SNAPSHOT

NVnavkumar
NVnavkumar previously approved these changes Feb 26, 2024
Signed-off-by: Tim Liu <timl@nvidia.com>
@NvTimLiu NvTimLiu dismissed stale reviews from NVnavkumar and jlowe via 8a6539b February 26, 2024 08:28
@NvTimLiu
Copy link
Collaborator Author

NvTimLiu commented Feb 26, 2024

Oops,

spark released 3.5.1 days ago : https://archive.apache.org/dist/spark/spark-3.5.1/

image

But apache spark does not announce it in its download page: https://spark.apache.org/docs/latest/

image

For branch-24.02, we'd better remove 351 from list instead?
https://github.com/NVIDIA/spark-rapids/blob/branch-24.02/pom.xml#L837

For branch-24.04, we should move 351 into
https://github.com/NVIDIA/spark-rapids/blob/branch-24.04/pom.xml#L835?

@sameerz , @GaryShen2008

@NvTimLiu
Copy link
Collaborator Author

According to the PR checks spark-rapids-private sclala2.13 shims for 334 and 342 are not published either

Yes, as private v24.02.0 dependency jars have been published to maven central without 334 and 342 shims,

we'll re-publish v24.02.1 private jars to maven central including the 334 and 342 shims,

then change the spark-rapids-private dependency to v24.02.1 here again to PASS the pre-merge.

@sameerz
Copy link
Collaborator

sameerz commented Feb 26, 2024

For branch-24.02, we'd better remove 351 from list instead?
https://github.com/NVIDIA/spark-rapids/blob/branch-24.02/pom.xml#L837

For branch-24.04, we should move 351 into
https://github.com/NVIDIA/spark-rapids/blob/branch-24.04/pom.xml#L835?

Yes we can remove 351 from 24.02 and add to 24.04.

Signed-off-by: Tim Liu <timl@nvidia.com>
350
</noSnapshotScala213.buildvers>
<snapshotScala213.buildvers>
351
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we should remove this too since it is removed from snapshot.buildvers

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I forget it, let me update

Signed-off-by: Tim Liu <timl@nvidia.com>
NVnavkumar
NVnavkumar previously approved these changes Feb 27, 2024
@sameerz
Copy link
Collaborator

sameerz commented Feb 27, 2024

build

@NvTimLiu
Copy link
Collaborator Author

NvTimLiu commented Feb 27, 2024

I'll try to remove 351 shim source code to PASS the mvn build. @razajafri can you help review it? Thanks!

Ran `mvn generate-sources -Dshimplify=true -Dshimplify.move=true -Dshimplify.remove.shim=351`

to remove 351 shim's jason string, and fix some unnecessary empty lines that were introduced

Signed-off-by: Tim Liu <timl@nvidia.com>
@NvTimLiu
Copy link
Collaborator Author

build

The pre-merge CI always failed due to no spark-rapids-private spark334/spark342 v24.02.0 shims until we release the new v24.02.1 private jars (which will definitely including 334/342shims)

Auto copyright by below scripts
```
export SPARK_RAPIDS_AUTO_COPYRIGHTER=ON

./scripts/auto-copyrighter.sh $(git diff --name-only origin/branch-24.04..HEAD)
```

Signed-off-by: Tim Liu <timl@nvidia.com>
NvTimLiu added a commit to NvTimLiu/spark-rapids that referenced this pull request Feb 28, 2024
Move 351 shims into noSnapshot buildvers as spark has release it.

Follow up of NVIDIA#10465 (comment)

Signed-off-by: Tim Liu <timl@nvidia.com>
jlowe pushed a commit that referenced this pull request Feb 29, 2024
* Move 351 shims into noSnapshot buildvers

Move 351 shims into noSnapshot buildvers as spark has release it.

Follow up of #10465 (comment)

Signed-off-by: Tim Liu <timl@nvidia.com>

* 351 shim for scala 2.13

Signed-off-by: Tim Liu <timl@nvidia.com>

---------

Signed-off-by: Tim Liu <timl@nvidia.com>
@@ -36,7 +36,6 @@
{"spark": "341db"}
{"spark": "342"}
{"spark": "350"}
{"spark": "351"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this PR remove 351 when it says it's adding shims?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's actually adding the 334 and 342 shim versions to the pom file for scala 2.13.

351 context is here: #10465 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not be removing 351 in the source code this late. Do we want to not build 351 support in the 24.02 jar? Fine. But this much source churn this late is not good. Modify the pom to not ask for a 351 build rather than fully ripping out the source code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this will cause a merge nightmare for 24.04 if done this way.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this will cause a merge nightmare for 24.04 if done this way.

exactly

@NvTimLiu
Copy link
Collaborator Author

build

@razajafri
Copy link
Collaborator

@jlowe PTAL
@gerashegalov if you have time PTAL

@sameerz
Copy link
Collaborator

sameerz commented Mar 1, 2024

build

Run the script `bash build/make-scala-version-build-files.sh 2.13`

Signed-off-by: Tim Liu <timl@nvidia.com>
@NvTimLiu
Copy link
Collaborator Author

NvTimLiu commented Mar 1, 2024

build

Copy link
Collaborator

@gerashegalov gerashegalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NvTimLiu
Copy link
Collaborator Author

NvTimLiu commented Mar 1, 2024

build

Copy link
Collaborator

@GaryShen2008 GaryShen2008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to be clean now.

Copy link
Collaborator

@razajafri razajafri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NvTimLiu
Copy link
Collaborator Author

NvTimLiu commented Mar 1, 2024

premerge failed: rebuild

 ERROR SparkUI: Failed to bind SparkUI
java.net.BindException: Failed to bind to /0.0.0.0:4056: Service 'SparkUI' failed after 16 retries (starting from 4040)! Consider explicitly setting the appropriate port for the service 'SparkUI' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

@NvTimLiu
Copy link
Collaborator Author

NvTimLiu commented Mar 1, 2024

build

@NvTimLiu NvTimLiu merged commit c4abf14 into NVIDIA:branch-24.02 Mar 1, 2024
40 of 41 checks passed
NvTimLiu added a commit that referenced this pull request Mar 2, 2024
* Update rapids jni and private dependency version to 24.02.1 (#10511)

Signed-off-by: Tim Liu <timl@nvidia.com>

* Add missed shims for scala2.13 (#10465)

* Add missed shims for scala2.13

Signed-off-by: Tim Liu <timl@nvidia.com>

* Add 351 snapshot shim for the scala2.13 version of plugin jar

Signed-off-by: Tim Liu <timl@nvidia.com>

* Remove 351 snapshot shim as spark 3.5.1 has been released

Signed-off-by: Tim Liu <timl@nvidia.com>

* Remove scala2.13 351 snapshot shim

Signed-off-by: Tim Liu <timl@nvidia.com>

* Remove 351 shim's jason string

Ran `mvn generate-sources -Dshimplify=true -Dshimplify.move=true -Dshimplify.remove.shim=351`

to remove 351 shim's jason string, and fix some unnecessary empty lines that were introduced

Signed-off-by: Tim Liu <timl@nvidia.com>

* Update Copyright 2024

Auto copyright by below scripts
```
export SPARK_RAPIDS_AUTO_COPYRIGHTER=ON

./scripts/auto-copyrighter.sh $(git diff --name-only origin/branch-24.04..HEAD)
```

Signed-off-by: Tim Liu <timl@nvidia.com>

* Revert "Update Copyright 2024"

This reverts commit 8482847.

* Revert "Remove 351 shim's jason string"

This reverts commit 78d1f00.

* skip 351 from strict checking

* Alien scala2.13/pom.xml to scala2.12 one

Run the script `bash build/make-scala-version-build-files.sh 2.13`

Signed-off-by: Tim Liu <timl@nvidia.com>

* pretend 351 is a snapshot in 24.02

Signed-off-by: Gera Shegalov <gera@apache.org>

* pretend 351 is a SNAPSHOT version

* Revert change of build/shimplify.py

Signed-off-by: Tim Liu <timl@nvidia.com>

---------

Signed-off-by: Tim Liu <timl@nvidia.com>
Signed-off-by: Gera Shegalov <gera@apache.org>
Co-authored-by: Raza Jafri <rjafri@nvidia.com>
Co-authored-by: Gera Shegalov <gera@apache.org>

* Update changelog for v24.02.0 release (#10525)

Signed-off-by: Tim Liu <timl@nvidia.com>

---------

Signed-off-by: Tim Liu <timl@nvidia.com>
Signed-off-by: Gera Shegalov <gera@apache.org>
Co-authored-by: Raza Jafri <rjafri@nvidia.com>
Co-authored-by: Gera Shegalov <gera@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to CI / CD or cleanly building
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants