mirror of
https://github.com/gradle/actions.git
synced 2026-08-20 04:42:52 +00:00
## Why Issue #1013 revealed that caching was **never storing content on Windows**. Nothing caught it because the integ-tests lost their multi-OS matrices: these workflows used to default to `'["ubuntu-latest", "windows-latest", "macos-latest"]'`, narrowed to ubuntu-only inbcd07e66/d74ee73e(Aug 2024). The Windows code path has been dark ever since. ## What Extract the two cheapest caching tests — `restore-gradle-home` and `basic-cache-provider` — into a new `suite-smoke-test-caching` workflow, and run that suite on both `ubuntu-latest` and `windows-latest`. Both tests seed a cache in one job and then verify it in a dependent job with an `--offline` build, so a cache that stores nothing fails the verify job rather than passing silently. - Rename `integ-test-{restore-gradle-home,basic-cache-provider}` → `smoke-test-*` and drop them from `suite-integ-test-caching` - Add the new suite to both `CI-integ-test` and `CI-integ-test-full`, each with its own concurrency group matching the sibling suites - Include `smoke-tests` in the `integ-test-success` aggregate gate - Ignore the generated `task-configured.txt` marker in `workflow-samples` - Drop a dead `needs.determine-suite` guard on the `build-distribution` step — `CI-integ-test` has no such job, so it always evaluated to true The suite runs on Windows in PR CI (not just `CI-integ-test-full`) specifically so the failure is visible on this PR and the fix can be verified the same way. ## Expected result This PR is expected to be **red on Windows**. `restore-gradle-home-dependencies-cache` and `basic-cache-verify-build` should fail with dependency-resolution errors under `--offline` — that is the bug from #1013 being caught. The ubuntu legs should stay green. Cross-OS cache keys are safe: both providers include `RUNNER_OS` in the key (`sources/src/cache-service-basic.ts:146`), so the matrix legs don't collide. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: suite-integ-test-caching
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
runner-os:
|
|
type: string
|
|
default: '["ubuntu-latest"]'
|
|
skip-dist:
|
|
type: boolean
|
|
default: false
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
cache-cleanup:
|
|
uses: ./.github/workflows/integ-test-cache-cleanup.yml
|
|
with:
|
|
runner-os: '${{ inputs.runner-os }}'
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
caching-config:
|
|
uses: ./.github/workflows/integ-test-caching-config.yml
|
|
with:
|
|
runner-os: '${{ inputs.runner-os }}'
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
restore-containerized-gradle-home:
|
|
uses: ./.github/workflows/integ-test-restore-containerized-gradle-home.yml
|
|
with:
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
restore-custom-gradle-home:
|
|
uses: ./.github/workflows/integ-test-restore-custom-gradle-home.yml
|
|
with:
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
restore-java-toolchain:
|
|
uses: ./.github/workflows/integ-test-restore-java-toolchain.yml
|
|
with:
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
sample-kotlin-dsl:
|
|
uses: ./.github/workflows/integ-test-sample-kotlin-dsl.yml
|
|
with:
|
|
runner-os: '${{ inputs.runner-os }}'
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
sample-gradle-plugin:
|
|
uses: ./.github/workflows/integ-test-sample-gradle-plugin.yml
|
|
with:
|
|
runner-os: '${{ inputs.runner-os }}'
|
|
skip-dist: ${{ inputs.skip-dist }}
|