Skip to content

fix(ci): retry the download of a release asset - #4235

Merged
dan-petty merged 3 commits into
mainfrom
fix/4223-retry-release-downloads
Nov 9, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/4223-retry-release-downloads

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A GitHub outage with HTTP 504 answers failed the checks of two pull requests several times in a row, and each rerun cost about 30 minutes. The download of a release archive had no retry. devops install-tools now retries a lost connection, a timeout and a 5xx answer for about two minutes. The Dockerfile fetches the gh tarballs with curl --retry and checks the pinned sha256, because BuildKit ADD has no retry. A 200 answer whose body is not a gzip, tar.gz or zip archive now fails with an error that names the URL and the HTTP status, not a checksum mismatch. A 4xx answer still fails at once.

Closes #4223

Change: openspec/changes/archive/2026-11-09-4223-retry-the-download-of-a-release/

…the archive

The installer client retries 8 times (123 s of waits) and refuses a gzip, tar.gz or zip body
without the magic bytes of its format before the checksum check. The Dockerfile fetches gh with
curl --retry and sha256sum instead of ADD --checksum.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 9, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record for #4223.

  • fail-to-pass (devops ci fail-to-pass --base origin/main): 10 tests fail on the base and pass on this branch (47 pass in all). Log: .data/agent/fail-to-pass-4223.log in the worktree.
    • tests/ci/test_release_download_retries.py: the Dockerfile has no remote ADD, a release URL has a sha256sum step, the installer client has retries=.
    • tests/commands/test_install_tools.py -k retry: 504 twice then the archive, a lost connection, a 60 s outage, an endless 504.
    • tests/commands/test_install_tools.py -k not_archive: an HTML 200 body for gzip, tar.gz and zip.
  • Guards that pass on the base and stay green: a 404 is not retried, a real archive with wrong bytes is still a checksum error.
  • Full devops ci passed on the final code. The test row took 20 min 33 s under host contention (known fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593).
  • After the rebase onto origin/main (release 0.100.2): 98 narrow tests pass, devops docs generate --check is up to date.
  • Not run: a real docker build of the Dockerfile (the Dockerfile contract tests ran).
  • Follow-up: fix(ci): retry the Trivy download of the image scan steps #4229 covers the Trivy image-scan download (setup-trivy has no retry).

@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 14:41
@dan-petty
dan-petty merged commit cf0567e into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/4223-retry-release-downloads branch November 9, 2026 15:13
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.101.0](v0.100.2...v0.101.0)
(2026-11-09)


### Features

* **config:** add task variables for the context window
([#4234](#4234))
([c034509](c034509))


### Bug Fixes

* **ai:** price a hosted group call by the asked model
([#4231](#4231))
([7b85c91](7b85c91))
* **ai:** Refuse uv audit when project is outside workspace
([#4239](#4239))
([1700648](1700648))
* **ci:** retry the download of a release asset
([#4235](#4235))
([cf0567e](cf0567e))
* **service:** use load_settings() in GET /config
([#4233](#4233))
([230d77c](230d77c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): retry the GitHub release downloads

1 participant