Skip to content

Add cache-provider: external to skip Gradle User Home caching - #1059

Merged
bigdaz merged 5 commits into
mainfrom
daz/cache-provider-external
Aug 25, 2026
Merged

bigdaz merged 5 commits into
mainfrom
daz/cache-provider-external

Conversation

@bigdaz

@bigdaz bigdaz commented Aug 25, 2026

Copy link
Copy Markdown
Member

Users relying on an external mechanism to save/restore Gradle User Home (e.g. Develocity Artifact Cache) previously had to set cache-disabled: true, which is confusing since caching isn't actually disabled — it's just not managed by this action — and the Job Summary misleadingly reported caching as "Disabled".

cache-provider: external skips Gradle User Home restore/save (same as cache-disabled) but reports a distinct "External" status in the Job Summary, explaining that caching is handled by another provider.

Users relying on an external mechanism to save/restore Gradle User
Home (e.g. Develocity Artifact Cache) previously had to set
cache-disabled: true, which is confusing since caching isn't actually
disabled — it's just not managed by this action — and the Job Summary
misleadingly reported caching as "Disabled".

cache-provider: external skips Gradle User Home restore/save (same
as cache-disabled) but reports a distinct "External" status in the
Job Summary, explaining that caching is handled by another provider.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@bigdaz bigdaz self-assigned this Aug 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Gradle Builds captured by gradle/actions/setup-gradle

Demo adding Build Scan® comment to PR :: successful-build-with-always-comment
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
kotlin-dsl build 9.6.1 ✅ Build Scan published

bigdaz and others added 4 commits August 25, 2026 09:23
- integ-test-caching-config: mirrors the pre-existing-Gradle-User-Home
  test, but with cache-provider: external, proving that a pre-existing
  Gradle User Home doesn't trigger the usual skip-with-warning behavior
  and that Build Scans are still captured.
- demo-job-summary: adds a job so the "External" caching Job Summary
  variant has a live example alongside the other cache-provider demos.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Mirror caching-config-cache-disabled instead of the pre-existing-GUH
variant: test that Build Scans are captured with cache-provider:
external, without conflating it with the pre-existing Gradle User
Home scenario.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
No need to matrix across OSes for this test.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The previous commit was formatted by a stale local prettier (3.8.4)
rather than the pinned 3.9.6, so CI's prettier-check rejected it:
3.9.6 collapses these unions onto one line, since they fit within
printWidth 120.

Add a trailing comment to each member, which both documents the
statuses and keeps the multi-line layout that prettier preserves —
matching the existing ProjectCacheStatus style in this file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@bigdaz
bigdaz merged commit 910b061 into main Aug 25, 2026
147 checks passed
@bigdaz
bigdaz deleted the daz/cache-provider-external branch August 25, 2026 15:44
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.

1 participant