Reduce Gradle cache writers and converge on Develocity - #556
Merged
laurit merged 1 commit intoAug 18, 2026
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates Gradle/Develocity configuration and GitHub Actions workflows to reduce Gradle GitHub cache writes by making most jobs cache read-only, while keeping a small set of trusted default-branch jobs as the only cache writers and aligning behavior with Develocity population goals.
Changes:
- Disable Gradle local build cache on authenticated
mainCI builds so executed tasks can populate Develocity, while keeping remote cache push enabled when the Develocity access key is present. - Make multiple workflows and jobs use
gradle/actions/setup-gradleincache-read-onlymode (release, CodeQL, semconv auto-update, and most matrix legs). - In the reusable build workflow, restrict GitHub cache writes to one job per OS on the default branch and exclude
caches/build-cache-1from the Gradle User Home snapshot for those writer jobs.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
settings.gradle.kts |
Adds Develocity/Gradle build cache toggles to disable local cache on authenticated main CI and centralizes remote push enablement logic. |
.github/workflows/release.yml |
Forces release-related Gradle cache usage to be read-only (both reusable build and direct Gradle setup steps). |
.github/workflows/codeql.yml |
Makes CodeQL’s Gradle setup read-only to avoid GitHub cache writes. |
.github/workflows/build-common.yml |
Implements the “three trusted writers” strategy and Gradle home cache excludes for the writer jobs. |
.github/workflows/auto-update-semconv.yml |
Makes the semconv auto-update workflow’s Gradle setup read-only. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
trask
marked this pull request as ready for review
August 17, 2026 17:41
laurit
approved these changes
Aug 18, 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.
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.