Converge GitHub Actions and Develocity caches - #8723
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8723 +/- ##
=========================================
Coverage 91.26% 91.26%
Complexity 10461 10461
=========================================
Files 1006 1006
Lines 28244 28244
Branches 3564 3564
=========================================
Hits 25778 25778
Misses 1674 1674
Partials 792 792 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR reduces GitHub Actions Gradle cache churn and aligns build-cache behavior with Develocity by limiting which CI jobs can write caches and by ensuring default-branch CI builds prioritize populating the authenticated Develocity remote build cache.
Changes:
- Update
settings.gradle.ktsto disable the local Gradle build cache on authenticated CI builds ofmain, and switch remote cache configuration toremote(develocity.buildCache). - Make most auxiliary workflows (CodeQL, benchmarks, release, scheduled audits, etc.) use
setup-gradlein read-only cache mode. - Restrict GitHub Actions cache writes in the main build matrix to a single Java 25 job per OS and exclude
caches/build-cache-1from those writer snapshots.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
settings.gradle.kts |
Disable local build cache on authenticated main CI to better populate Develocity remote cache; switch to develocity.buildCache remote connector. |
.github/workflows/build.yml |
Limit cache writes to Java 25 per OS; exclude caches/build-cache-1 from writer snapshots. |
.github/workflows/codeql.yml |
Set Gradle cache to read-only for CodeQL workflow. |
.github/workflows/build-daily.yml |
Set Gradle cache to read-only for daily build workflow. |
.github/workflows/release.yml |
Set Gradle cache to read-only for release workflows. |
.github/workflows/javadoc-crawler.yml |
Set Gradle cache to read-only for crawler workflow. |
.github/workflows/sonatype-guide-dependency-audit-daily.yml |
Set Gradle cache to read-only for dependency audit workflow. |
.github/workflows/benchmark.yml |
Set Gradle cache to read-only for benchmark workflow. |
.github/workflows/benchmark-tags.yml |
Set Gradle cache to read-only for benchmark-tags workflow. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Pull request dashboard statusWaiting on reviewers · refreshed 2026-08-14 16:27 UTC Review the latest changes. Status above doesn't look right?
|
Applies the cache fixes from opentelemetry-java-instrumentation#19532 and opentelemetry-java-instrumentation#19533 to reduce GitHub Actions cache pressure and improve Develocity remote cache coverage.