You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kevinjqliu (via GitHub)" <gi...@apache.org> on 2026/03/27 21:45:15 UTC

[PR] CI: Replace `actions/cache` with `gradle/actions/setup-gradle` for Gradle caching [iceberg]

kevinjqliu opened a new pull request, #15799:
URL: https://github.com/apache/iceberg/pull/15799

   Closes #15789
   
   
   Replaces manual `actions/cache` usage with `gradle/actions/setup-gradle` across all CI workflows.
   
   `setup-gradle` handles Gradle caching automatically (caches/wrapper), only saves on the default branch, 
   and restores on PR branches — matching the previous behavior with less configuration.
   
   Changes:
   - Remove `actions/cache/restore` + `actions/cache/save` pairs
   - Remove standalone `actions/cache` steps
   - Add `gradle/actions/setup-gradle` before Gradle invocations
   - Add caching to `build-checks` and `build-javadoc` jobs in Java CI that previously had none


-- 
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: issues-unsubscribe@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] CI: Replace `actions/cache` with `gradle/actions/setup-gradle` for Gradle caching [iceberg]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #15799:
URL: https://github.com/apache/iceberg/pull/15799#discussion_r3003537401


##########
.github/workflows/api-binary-compatibility.yml:
##########
@@ -59,23 +59,10 @@ jobs:
         with:
           distribution: zulu
           java-version: 17
-      - uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
-        with:
-          path: |
-            ~/.gradle/caches
-            ~/.gradle/wrapper
-          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
-          restore-keys: ${{ runner.os }}-gradle-
+      - uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c

Review Comment:
   done! 



-- 
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: issues-unsubscribe@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] CI: Replace `actions/cache` with `gradle/actions/setup-gradle` for Gradle caching [iceberg]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu merged PR #15799:
URL: https://github.com/apache/iceberg/pull/15799


-- 
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: issues-unsubscribe@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] CI: Replace `actions/cache` with `gradle/actions/setup-gradle` for Gradle caching [iceberg]

Posted by "huaxingao (via GitHub)" <gi...@apache.org>.
huaxingao commented on code in PR #15799:
URL: https://github.com/apache/iceberg/pull/15799#discussion_r3003528827


##########
.github/workflows/api-binary-compatibility.yml:
##########
@@ -59,23 +59,10 @@ jobs:
         with:
           distribution: zulu
           java-version: 17
-      - uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
-        with:
-          path: |
-            ~/.gradle/caches
-            ~/.gradle/wrapper
-          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
-          restore-keys: ${{ runner.os }}-gradle-
+      - uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c

Review Comment:
   nit: Other pinned actions include a version comment tag (e.g., # v5). Do we need one here too?



-- 
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: issues-unsubscribe@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org