Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnerssource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem
A GitHub outage with HTTP 504 answers failed the checks of pull requests #4215 and #4216 three or four times in a row. The reruns passed on the fourth try. Each rerun costs about 30 minutes, and a build that averages more than 5 minutes is a P0 bug.
What failed:
- The
promtoolandtrivydownloads returned 504. - The
ghtarball download in the image builds returned a 504 page. The Dockerfilesha256check then failed. The pinned checksum was right: the agent of fix(roadmap): send tool choice auto to Claude and count answers #4216 downloaded the tarball and thesha256matched. The error text names a checksum failure, but the cause is a download that failed. - The failed jobs were
Tests & Coverageshards 1 and 2,Static Analysis,Runner Image,MCP Server ImageandDevContainer Image.
Where the downloads are, in this checkout:
Dockerfilelines 23 to 26: twoADD --checksum=sha256:... https://github.com/cli/cli/releases/download/...steps. BuildKitADDhas no retry option.src/devops_cli/commands/install_tools.py:_downloadcalls_download_client()andc.get(url)once, thenraise_for_status(). It never passesretries=tohttp_client, which can wrap the transport in the tenacity retry transport (src/devops_cli/http/entry.py).devops install-toolsfetchespromtool,trivyandhelmfromsrc/devops_cli/tools_lock/tools.lock. The Dockerfile (--tool openspec,--tool promtool) and.github/workflows/ci.yml(lines 68, 156, 978) call it.aquasecurity/trivy-actionfetches Trivy in the image scan steps ofci.ymlandrelease.yml. Whether it retries is not known yet.
Only the health checks in ci.yml and release.yml use curl --retry. No release download retries.
Related and not the same: #3612 covers the build-time fetch of the devcontainer features (keyserver and checksum file). It does not cover these downloads.
Expected
- Every download of a release archive retries on a 5xx answer and on a connect failure, with a delay between tries.
- A body that is not the archive (for example an HTML 504 page) never reaches the checksum step as the cause. The message names the URL and the HTTP status.
- The pinned checksums stay. No check gets weaker.
Acceptance criteria
- A test reads
Dockerfile,.github/workflows/*.ymlandsrc/devops_cli/commands/install_tools.py, and fails for each download of a release archive that has no retry option. Command:uv run pytest tests/ci/test_release_download_retries.py. It fails today: the file does not exist, andDockerfilelines 23 to 26 have no retry. - A test serves two 504 answers and then the archive, and
devops install-toolsinstalls the tool. Command:uv run pytest tests/commands/test_install_tools.py -k retry. It fails today:_downloadraises at the first 504. - A test serves an HTML 504 body with a 200 status and the error names the URL and says that the body is not the archive. Command:
uv run pytest tests/commands/test_install_tools.py -k not_archive. It fails today: the error is a checksum mismatch. -
git grep -nE "ADD --checksum" -- Dockerfilefinds noADDof a release archive. Command:! git grep -nE "ADD --checksum" -- Dockerfile. It fails today. - The next outage of GitHub needs no rerun for a 5xx answer that ends within the retry time.
Existing tool considered
curl --retry 5 --retry-all-errors --retry-delay 2 --fail, thensha256sum -c, in aRUNstep of the Dockerfile.curlis in the runner stage already. The builder stage may need it from the Debian package, or the step can usedevops install-toolsthere instead.http_client(..., retries=N)of the project, which wraps tenacity (tenacity==9.1.4, a dependency already). It coversinstall_tools.pywith a one-line change and no new code. Check that it does not hide a 4xx answer as a retry.- The retry inputs of the actions that fetch Trivy, if the pinned
trivy-actionhas them.
No new library and no new downloader.
Cost
- Tokens to build: low. About 3 small edits and 3 tests.
- Tokens to keep: low. No new module.
- Tokens to fix: low.
- Elapsed time: about 1 hour. Without it, each GitHub outage costs about 30 minutes for each rerun, as in fix(roadmap): accept a null reason on a stage reference #4215 and fix(roadmap): send tool choice auto to Claude and count answers #4216.
Related
- fix(ci): devcontainer image build fails on a feature download #3612 (devcontainer feature downloads fail in the image build).
- fix(roadmap): accept a null reason on a stage reference #4215 and fix(roadmap): send tool choice auto to Claude and count answers #4216 (the pull requests that hit the outage).
- Rule 5 of AGENTS.md: a build or check that averages more than 5 minutes is a P0 bug.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnerssource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 9, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(ci)scope of the title gives the scope.Each GitHub outage blocks multiple PRs and costs 30 minutes per rerun, and the project states a build over 5 minutes is a P0-level defect.It removes a recurring CI failure that blocks merges during GitHub outages, but only triggers during outages.The retry transport and curl are already available; the change is a one-line edit plus a Dockerfile swap plus tests.Both fix CI download failures, but #3612 covers devcontainer feature fetches (keyserver, checksum file) while the candidate covers release archives (promtool, trivy, gh).devops-cli-service commentedon Nov 9, 2026
Released in v0.101.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.101.0
devops-cli-service commentedon Nov 9, 2026
Live since 2026-11-09 15:38 UTC