Skip to content

fix(release): end stalled archive downloads in the installer - #73

Closed
fargito wants to merge 1 commit into
mainfrom
cod-4520-end-stalled-installer-downloads
Closed

fargito wants to merge 1 commit into
mainfrom
cod-4520-end-stalled-installer-downloads

Conversation

@fargito

@fargito fargito commented Dec 1, 2026

Copy link
Copy Markdown
Member

Follow-up to #72, which was merged before its review fixes landed.

#72 added --retry 5 --retry-all-errors to the installer's archive download. A transfer that sends its headers and then goes silent never fails, so curl never retries it, and the install hangs until the job times out. The release build now also adds --connect-timeout 30 --speed-limit 1 --speed-time 30, so curl ends an attempt after 30 s of silence and retries it. These options predate curl 7.71, which --retry-all-errors already needs.

The step's grep now checks the whole patched download line, so the release build fails if the generated line changes and the sed no longer patches it. The step and allow-dirty carry a TODO(COD-4523): the issue to serve releases from our CDN.

Verification

  • The v1.4.0 installer, patched the same way and run with dash against a local fake of github.com: an expired link, a 502, a reset and a truncated archive in a row recovered after 15 s, and six expired links failed after 32 s.
  • The CodSpeed CLI 5.8.0 installer with the same flags recovered from a stalled archive after 33 s. With fix(release): retry the installer's archive download #72's flags alone, the same stall hung until it was killed after 90 s.
  • dist 0.31.0: dist plan passes with the edited release.yml.

Decisions

  • 30 s connect and idle limits: GitHub's edge returned its own 504 about 10 s into a request in a failed install, so 30 s of silence means the server has gone away.

Refs COD-4520

A transfer that sends its headers and then goes silent never fails, so
--retry never runs and the install hangs until the job times out. curl now
ends an attempt after 30 s of silence. The grep checks the whole patched
line, so a template change fails the release build.

Refs COD-4520
@codspeed

codspeed Bot commented Dec 1, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

2 warnings

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ Unable to measure the execution of 1 benchmark

This benchmark measured no execution time, so its result is not comparable and counts as unchanged. This usually happens when the compiler removes the code under test.

Prevent compiler optimizations

See affected benchmarks

✅ 50 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing cod-4520-end-stalled-installer-downloads (c6ae1e7) with main (b1d1fa9)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@fargito fargito closed this Dec 1, 2026
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.

1 participant