Add Gradle cache to setup-java steps in CI workflows#1372
Merged
dbwiddis merged 2 commits intoopensearch-project:mainfrom May 6, 2026
Merged
Add Gradle cache to setup-java steps in CI workflows#1372dbwiddis merged 2 commits intoopensearch-project:mainfrom
dbwiddis merged 2 commits intoopensearch-project:mainfrom
Conversation
dd00c0c to
6268879
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1372 +/- ##
============================================
- Coverage 78.38% 78.38% -0.01%
- Complexity 1306 1308 +2
============================================
Files 106 106
Lines 6015 6019 +4
Branches 640 641 +1
============================================
+ Hits 4715 4718 +3
+ Misses 1013 1012 -1
- Partials 287 289 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b307bb9 to
5e3d01e
Compare
Adds cache: gradle to all actions/setup-java steps across workflow files to cache Gradle dependencies between runs, reducing build times. Also bumps setup-java from v3 to v4 in test-api-consistency.yml for consistency with other workflows. Signed-off-by: Daniel Widdis <widdis@gmail.com> Signed-off-by: Dan Widdis <widdisd@amazon.com>
5e3d01e to
2233dc5
Compare
owaiskazi19
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
cache: gradleto allactions/setup-javasteps across GitHub Actions workflow files. This enables the built-in dependency caching provided by the setup-java action, which caches Gradle dependencies between workflow runs to reduce build times.Changes
cache: gradleto all 9setup-javasteps across 5 workflow files:CI.yml(6 steps: spotless, javadoc, build, integTest, integMultiNodeTest, integTenantAwareTest)publish-snapshots.yml(1 step)test-api-consistency.yml(1 step)test_bwc.yml(1 step)test_security.yml(1 step)setup-javafrom v3 to v4 intest-api-consistency.ymlfor consistency with other workflowsReference
Issues Resolved
N/A
Check List
--signoff