You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2026/03/23 03:58:03 UTC

[PR] [SPARK-56141] Cache Gradle Java Toolchain in CI [spark-kubernetes-operator]

dongjoon-hyun opened a new pull request, #576:
URL: https://github.com/apache/spark-kubernetes-operator/pull/576

   ### 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` 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. 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)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56141] Cache Gradle Java Toolchain in CI [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #576:
URL: https://github.com/apache/spark-kubernetes-operator/pull/576#issuecomment-4108137622

   Merged to main


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56141] Cache Gradle Java Toolchain in CI [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #576:
URL: https://github.com/apache/spark-kubernetes-operator/pull/576#issuecomment-4108060160

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56141] Cache Gradle Java Toolchain in CI [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #576:
URL: https://github.com/apache/spark-kubernetes-operator/pull/576#issuecomment-4108051134

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56141] Cache Gradle Java Toolchain in CI [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #576:
URL: https://github.com/apache/spark-kubernetes-operator/pull/576#issuecomment-4107978096

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56141] Cache Gradle Java Toolchain in CI [spark-kubernetes-operator]

Posted by "sarutak (via GitHub)" <gi...@apache.org>.
sarutak commented on PR #576:
URL: https://github.com/apache/spark-kubernetes-operator/pull/576#issuecomment-4108035185

   @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`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56141] Cache Gradle Java Toolchain in CI [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #576: [SPARK-56141] Cache Gradle Java Toolchain in CI
URL: https://github.com/apache/spark-kubernetes-operator/pull/576


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org