ci: add native bash retry for nix flake check#1140
Open
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
Open
ci: add native bash retry for nix flake check#1140bitgo-ai-agent-dev[bot] wants to merge 1 commit into
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
Conversation
cache.nixos.org occasionally drops connections mid-download, causing Nix to exhaust its built-in retries with an HTTP 416 error. A fresh step-level retry (no partial-download state) reliably succeeds on attempt 2. Use a simple bash OR to retry the step once without adding third-party actions. Ticket: AI-679 Session-Id: 52048a79-f64d-4b77-acb6-54b5e396b174 Task-Id: 79e97f6e-3de0-41e0-a072-6cf6bed65b79
6fe90fe to
87a3eff
Compare
starfy84
approved these changes
Jun 29, 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.
What
nix flake check || nix flake check) to thenix-flake-checkjob in.github/workflows/format.yamlCheck Nix flake) for clearer CI outputWhy
cache.nixos.orgoccasionally drops TCP connections mid-download, causing Nix to exhaust its 5 built-in retries with an HTTP 416 error; a fresh step-level retry clears partial-download state and reliably succeeds on attempt 2Test plan
Failing run that surfaced the issue: https://github.com/BitGo/api-ts/actions/runs/28248722067/attempts/1
Ticket: AI-679
Parent issue: AI-677