Repository navigation
ci(nightly): 👷 stop go-module cache double-restore (CI-1) - #100
Merged
Merged
Conversation
setup-go@v6 defaults cache:true, restoring ~/go/pkg/mod + ~/.cache/go-build, then the explicit actions/cache step restores the same paths again. The second tar extraction fails with 'Cannot open: File exists', which broke the weekly Nightly integration job before any test ran (5 consecutive failures). Set cache:false on setup-go so the explicit actions/cache (keyed on go.sum) owns the module/build cache. Shared go-cache composite: same fix applies to all workflows that use it (CI, integration, e2e, preflight, codeql, ...).
konih
added a commit
that referenced
this pull request
Jul 10, 2026
…ks (#101) The ci:integration task (nightly's integration lane) inherited the global CGO_ENABLED=0 and exported it into run-ci-integration.sh and the nested task test:integration, so go test -race failed 'requires cgo'. The direct Integration workflow uses task test:integration (CGO=1) and stayed green, which masked this until #100 (go-cache fix) unblocked the cache-restore step and the weekly Nightly integration job reached the test phase. Mirror the existing ci:e2e task, which already overrides CGO_ENABLED=1.
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.
What
Add
cache: falseto thesetup-gostep in the shared.github/actions/go-cachecomposite action.Why
The weekly Nightly workflow's
integrationjob has failed 5 consecutive scheduled runs (#2877403339107-06,#2835563810306-29,#2794101361306-22, and prior), each at ~1m20s before any test runs.Root cause is infra, not code:
actions/setup-go@v6defaultscache: true, which restores~/go/pkg/mod+~/.cache/go-build.actions/cache@v5over the same two paths (keyed ongo.sum).Push/PR CI, Integration, and E2E are all green on real commits —
mainis not broken — but the nightly safety-net was non-functional.Fix
Disable setup-go's built-in cache so the explicit
actions/cachestep (with itsgo.sumkey +restore-keys) is the single source of truth. Minimal, one input on one shared composite.Blast radius
go-cacheis used by 9 workflows (ci, integration, e2e, preflight, codeql, release-gate, sonarcloud, vulncheck, nightly). The change only removes a redundant duplicate restore; the explicit cache continues to serve all of them.Verification
actionlintruns in thepreflightjob (not installed locally); YAML validated locally.Nightlyrun (workflow_dispatch) and confirm theintegrationjob restores the cache without the tar error and proceeds to tests.Closes CI-1 (audit 2026-07-10).