Repository navigation
ci: retry the Go module download before the gate - #244
Merged
Merged
Conversation
proxy.golang.org failed one download of the verify job with "stream error: stream ID 1; INTERNAL_ERROR" during go mod tidy -diff, and the setup-go cache did not hold the module. The verify and race jobs now download the whole build list first, with up to 3 tries, on a copy of go.mod and go.sum (-modfile), so the repository's go.sum stays as tidy wants it. TestGoJobsRetryTheModuleDownload keeps the step. Fixes #243.
The order check knew only make verify and go test, so a job that moved its gate to make ci or make check could run it before the download and pass. The check now matches the Makefile's gates and the go commands that read modules, and TestModuleDownloadProblemsCatchAGateFirst feeds it each gate before the download, a download on the repository's go.sum, and none. Part of #243.
bketelsen
approved these changes
Nov 16, 2026
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.
Summary
Fixes #243. Part of #242: its failure is fixed on main already (below).
The flaky scan of 2026-11-16 found 2 jobs of frostnotes that failed and then passed on the same SHA.
#243, Verify (make verify): a download error outside the repository
Run 42974699058 (
5434b8c) stopped atgo mod tidy -diff:proxy.golang.org failed 1 download; no file of the repository is involved. The job downloads modules because the setup-go cache does not hold every module that tidy and the tests need (the race job's log shows
go: downloadingtoo).This PR adds 1 step to the
verifyandracejobs, after setup-go and before the gate:go mod download ... all, with up to 3 tries 10 s apart. The gate then reads the modules from the module cache.go mod downloadadds the sums of every module it fetches to thego.sumbeside itsgo.mod(42 lines here), andgo mod tidy -diffthen fails, so the step works on a copy of the two files in$RUNNER_TEMP(-modfile). The repository'sgo.modandgo.sumstay as they are. The checksum database andgo.sumverify the modules as before; the module source does not change.TestGoJobsRetryTheModuleDownload(internal/workflowcheck) keeps the step in both jobs: after setup-go, before every step that reads the modules (a Makefile gate or agocommand), and on a copy (-modfile).TestModuleDownloadProblemsCatchAGateFirstfeeds the check each gate before the download, a download on the repository'sgo.sum, and none.#242, Race detector: fixed by #214
Run 43127310696 (
3d84a45, branchfeat/frostyard-look) timed out inTestSettingsChangeAPreferenceAndAVaultSetting("timed out waiting for the vault's setting"). This is #203, which #214 fixed (the test loop drew a frame after every posted function, and a setting change posts about 19). #214 merged at 2026-11-12 14:41 UTC;3d84a45does not contain it. No change is needed here.Risk tier
Risk tier: 3 — CI.
risk:highpaths in this PR:.github/workflows/ci.yml(.github/workflows/**, L2, governance). Safe: the new step only downloads Go modules into the runner's module cache, with the job's existingcontents: readpermission and no new action, secret or token. It writes no file of the repository (-modfileon a copy in$RUNNER_TEMP). It fails the job only when 3 tries fail, which the gate would have done too. No job is renamed (the required-checks ruleset matches job names).internal/workflowcheck/workflows_test.go(L2, the tests that hold the workflows). Safe: it adds 1 test and changes none.Verification
make cigreen (host and nsl) at6d751a5, before the first push. The review fixf687dfd(the test file only):go test ./internal/workflowcheckok,go vetandgolangci-lintclean.RUNNER_TEMPa temp directory): exit 0;git statusshows no change togo.modorgo.sum;go mod tidy -diffexit 0. Withgo mod download allon the repository's own files instead: 42 lines added togo.sum, and tidy fails.racejob,TestGoJobsRetryTheModuleDownloadfails:ci.yml: the race job has no step that retries .... With-modfiletaken out of theverifyjob's step, it fails:ci.yml:43: the verify job's download writes the repository's go.sum .... The test checks 2 jobs.go test -race -count=30 -run '^TestSettingsChangeAPreferenceAndAVaultSetting$' ./internal/desktop/windowon main: ok (27 s).permissionsunchanged; checkout keepspersist-credentials: false.Cross-review
Reviewer
openai/gpt-6.1-sol; coderdeepseek/deepseek-flash(first draft) andanthropic/claude-opus-5-5(the-modfilestep and the test). Base7f1b8d1bb53fc5fd6e50dde26d5af0c0bb4ab598. Bothrisk:highpaths read first.6d751a5e1c5fd9a6423125577ccd45c614223a5c: Ready, Blocking: none. 1 low, non-blocking finding: the order check knew onlymake verifyandgo test, so a gate moved tomake ciormake checkcould run before the download.f687dfd: the check matches every Makefile gate and thegocommands that read modules, with a negative test.f687dfd40a07479aed3810e2c43a8215b101abea: Ready, Blocking: none; the finding is resolved.