Skip to content

ci: add native bash retry for nix flake check#1140

Open
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
ai-679-nix-flake-check-retry
Open

ci: add native bash retry for nix flake check#1140
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
ai-679-nix-flake-check-retry

Conversation

@bitgo-ai-agent-dev

Copy link
Copy Markdown

What

  • Add a bash OR retry (nix flake check || nix flake check) to the nix-flake-check job in .github/workflows/format.yaml
  • Give the step a name (Check Nix flake) for clearer CI output

Why

  • cache.nixos.org occasionally 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 2
  • No third-party actions are introduced; uses only bash, which is built into GitHub-hosted runners

Test plan

  • Verify CI passes on this PR
  • Confirm no third-party actions were added

Failing run that surfaced the issue: https://github.com/BitGo/api-ts/actions/runs/28248722067/attempts/1

Ticket: AI-679
Parent issue: AI-677

@linear-code

linear-code Bot commented Jun 29, 2026

Copy link
Copy Markdown

AI-679

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
@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the ai-679-nix-flake-check-retry branch from 6fe90fe to 87a3eff Compare June 29, 2026 17:30

@ericcrosson-bitgo ericcrosson-bitgo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericcrosson-bitgo ericcrosson-bitgo marked this pull request as ready for review June 29, 2026 17:31
@ericcrosson-bitgo ericcrosson-bitgo requested a review from a team as a code owner June 29, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants