Skip to content

[SPARK-56141] Cache Gradle Java Toolchain in CI#576

Closed
dongjoon-hyun wants to merge 3 commits intoapache:mainfrom
dongjoon-hyun:SPARK-56141
Closed

[SPARK-56141] Cache Gradle Java Toolchain in CI#576
dongjoon-hyun wants to merge 3 commits intoapache:mainfrom
dongjoon-hyun:SPARK-56141

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Mar 23, 2026

What changes were proposed in this pull request?

This PR adds a cache step for Gradle Java Toolchain JDKs (~/.gradle/jdks/) in the build-test and lint job of the CI workflow.

Why are the changes needed?

Gradle Java Toolchain downloads JDKs to ~/.gradle/jdks/ during the build. Without caching, these JDKs are re-downloaded on every CI run, increasing build time and network usage and causing CI flakiness. Caching this directory avoids redundant downloads across CI runs.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-4-6)

@dongjoon-hyun dongjoon-hyun added this to the 0.9.0 milestone Mar 23, 2026
@dongjoon-hyun
Copy link
Member Author

Could you review this GitHub Action cache PR, @sarutak ?

@sarutak
Copy link
Member

sarutak commented Mar 23, 2026

@dongjoon-hyun
Should we add the cache step to the other jobs that use cache: 'gradle' as well, such as build-image, k8s-integration-tests, helm-tests, and lint?

@dongjoon-hyun
Copy link
Member Author

Thanks you. Yes, lint needs that. I'll add this to lint job.

For other tests like build-image, k8s-integration-tests, helm-tests, we use Gradle inside the Docker. So, there was no flakiness failure.

@dongjoon-hyun
Copy link
Member Author

Thank you so much for spending time to review and approve this, @sarutak !

@dongjoon-hyun
Copy link
Member Author

Merged to main

@dongjoon-hyun dongjoon-hyun deleted the SPARK-56141 branch March 23, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants