Skip to content

Follow-up: ci.yml still skips persisting the local build-cache on every main run, even when BuildFetch has no token #278

Description

@claude

Follow-up to review feedback on #210 (ci: skip caching the unused local build cache on pushing runs), left unaddressed at merge time.

chatgpt-codex-connector[bot] (P2) noted that .github/workflows/ci.yml gates exclude-local-build-cache purely on github.ref == 'refs/heads/main', not on whether BuildFetch actually obtained a push token. settings.gradle.kts already handles this correctly (local.isEnabled = !remotePushEnabled), but ci.yml never got the matching fix.

Still present on main today — ci.yml:33,61,88:

exclude-local-build-cache: ${{ github.ref == 'refs/heads/main' }}

So a main run with an unprovisioned/blank BuildFetch token disables the local Gradle cache in setup-gradle even though the remote push isn't actually happening — losing caching for that run with no compensating benefit.

No reply or follow-up commit addressed this comment before #210 merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    follow-upDeferred review feedback filed by weekly triage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions