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

Run spark-rapids-jni CI #17781

Open
wants to merge 20 commits into
base: branch-25.04
Choose a base branch
from

Conversation

KyleFromNVIDIA
Copy link
Contributor

@KyleFromNVIDIA KyleFromNVIDIA commented Jan 22, 2025

Description

Run the CI for spark-rapids-jni to ensure that we don't break their build.

Resolves #17337

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@KyleFromNVIDIA KyleFromNVIDIA added the DO NOT MERGE Hold off on merging; see PR for details label Jan 22, 2025
@KyleFromNVIDIA KyleFromNVIDIA requested a review from a team as a code owner January 22, 2025 22:58
@KyleFromNVIDIA KyleFromNVIDIA marked this pull request as draft January 23, 2025 14:31
Copy link

copy-pr-bot bot commented Jan 23, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@KyleFromNVIDIA
Copy link
Contributor Author

/ok to test

@KyleFromNVIDIA
Copy link
Contributor Author

/ok to test

@KyleFromNVIDIA
Copy link
Contributor Author

/ok to test

@KyleFromNVIDIA
Copy link
Contributor Author

/ok to test

@KyleFromNVIDIA
Copy link
Contributor Author

/ok to test

@KyleFromNVIDIA
Copy link
Contributor Author

/ok to test

@KyleFromNVIDIA
Copy link
Contributor Author

/ok to test

@KyleFromNVIDIA KyleFromNVIDIA marked this pull request as ready for review January 23, 2025 15:30
@KyleFromNVIDIA KyleFromNVIDIA added 3 - Ready for Review Ready for review by team feature request New feature or request and removed DO NOT MERGE Hold off on merging; see PR for details labels Jan 23, 2025
@KyleFromNVIDIA KyleFromNVIDIA added the non-breaking Non-breaking change label Jan 23, 2025
@KyleFromNVIDIA KyleFromNVIDIA requested a review from a team as a code owner January 23, 2025 16:43
@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Jan 23, 2025
@github-actions github-actions bot removed the libcudf Affects libcudf (C++/CUDA) code. label Jan 23, 2025
@KyleFromNVIDIA KyleFromNVIDIA added the DO NOT MERGE Hold off on merging; see PR for details label Jan 23, 2025
@vyasr vyasr removed request for a team, vyasr and pmattione-nvidia January 24, 2025 04:30
@vyasr
Copy link
Contributor

vyasr commented Jan 24, 2025

I've removed the cpp codeowner review requests since those were just the result of a test commit. I'm happy to provide the ci codeowner review if needed when things are ready though.

@KyleFromNVIDIA KyleFromNVIDIA removed the DO NOT MERGE Hold off on merging; see PR for details label Jan 30, 2025
@vyasr
Copy link
Contributor

vyasr commented Jan 31, 2025

@KyleFromNVIDIA let's move this to 25.04. 25.02 is freezing today so there won't be any major changes going in that would break Spark anyway. We can make this one of the first PRs that we merge in 25.04.

@KyleFromNVIDIA KyleFromNVIDIA changed the base branch from branch-25.02 to branch-25.04 January 31, 2025 17:13
- name: "Build spark-rapids-jni"
run: |
mkdir target
GPU_ARCHS=90 LIBCUDF_DEPENDENCY_MODE=latest USE_GDS=on scl enable gcc-toolset-11 build/buildcpp.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

This already looks great.

We can improve it by actually executing the exact command with Maven build a regular spark-rapids-jni build would

./build/build-in-docker verify -DskipTests -DGPU_ARCHS=90 -Dlibcudf.dependency.mode=latest

It can be a follow-up change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will that work when it's already inside a Docker container though?

Copy link
Contributor

@gerashegalov gerashegalov Jan 31, 2025

Choose a reason for hiding this comment

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

It may work but good point that it is not desired to recurse into a nested container. What I mean is the Maven command following run-in-docker https://github.com/NVIDIA/spark-rapids-jni/blob/6883364a87dec972ce9e51027e716eba860af568/build/build-in-docker#L45C1-L50

We can change the script such that the run-in-docker part is skip-able.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I'll do that in a follow-up PR.

Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Approving with a couple comments/questions.

spark-rapids-jni:
needs: changed-files
uses: ./.github/workflows/spark-rapids-jni.yaml
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_spark
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we will always want to test JNI and Spark-RAPIDS with the same changed-files criteria. I'm a bit confused why this conversation ended up with two copies of the same criteria. #17781 (comment)

Suggested change
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_spark
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_java

spark-rapids-jni-build:
runs-on: linux-amd64-cpu8
container:
image: rapidsai/ci-spark-rapids-jni:rockylinux8-cuda12.2.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to use a newer CUDA version?

@vyasr
Copy link
Contributor

vyasr commented Feb 4, 2025

FYI @KyleFromNVIDIA Github has specific keywords that it recognizes as indicating a PR should close an issue. I've updated your PR description accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team feature request New feature or request non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] Add spark-rapids-jni builds to cudf CI
5 participants