Skip to content

Converge GitHub Actions and Develocity caches - #8723

Open
trask wants to merge 1 commit into
open-telemetry:mainfrom
trask:trask-fix-java-cache-writers
Open

Converge GitHub Actions and Develocity caches#8723
trask wants to merge 1 commit into
open-telemetry:mainfrom
trask:trask-fix-java-cache-writers

Conversation

@trask

@trask trask commented Aug 14, 2026

Copy link
Copy Markdown
Member

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.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.26%. Comparing base (f4bb945) to head (11447dd).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.kts to disable the local Gradle build cache on authenticated CI builds of main, and switch remote cache configuration to remote(develocity.buildCache).
  • Make most auxiliary workflows (CodeQL, benchmarks, release, scheduled audits, etc.) use setup-gradle in 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-1 from 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.

Comment thread .github/workflows/build.yml
@trask
trask marked this pull request as ready for review August 14, 2026 16:02
@trask
trask requested a review from a team as a code owner August 14, 2026 16:02
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Aug 14, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-08-14 16:27 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants