Repository navigation
fix(install): retry transient HTTP errors on the wget path, and cut 0.14.0 - #492
Merged
Merged
Conversation
fetch()'s two branches were not equivalent. Measured against a server returning two 503s and then a 200, `curl -fsSL --retry 3` recovers and `wget -q -O` fails on the first response with exit 8; same for 429. wget's --tries covers network-level failures only, so a response that arrives carrying an error status is not a failed attempt and its default of 20 tries retried a 503 zero times. The asymmetry was invisible because each container in the install-script matrix exercises exactly one branch: RHEL-family images have curl, ubuntu:24.04 is given wget. It surfaced as a one-in-ten flake on a required check, reporting "objectfs-linux-amd64.tar.gz exists for v0.13.0 but its .sha256 does not" against a release whose five .sha256 files were all present at 94 bytes each — correct code reaching a wrong conclusion from a fetch that gave up instantly. Release-asset downloads are unauthenticated and GitHub rate limits them by IP, which a shared runner shares. 403 stays fatal on both paths: it is an authorization answer, not a transient one. The flag is probed rather than assumed, since an unrecognised option makes wget exit 2 without downloading. The probe matches with `case` rather than a pipe into grep so it depends on no command but wget — the first harness for it ran under a PATH holding only wget, grep was absent, and the probe reported the fix as not working.
Two mutations survived the first version: deleting curl's --retry, and stripping the flags from resolve_latest's wget call. Both passed because the assertions matched the file, and the file contains comments naming `curl -fsSL --retry 3` and wget_retry_flags. Asserting over the comment-stripped command lines, with a floor on how many were found, catches both.
Promotes Unreleased to [0.14.0] and bumps the version constant, which is the only authority for the version. The v0.14.0 milestone closed at 14 of 14 with its two remaining items moved to Future Work rather than finished — the fstab helper (#136), which was deferred deliberately, and the Rocky Linux 9 install-to-fstab CI job that depends on it (#149). The release notes say so instead of letting the version number imply otherwise.
The heading said 2026-09-15 while the tag goes up on 2026-09-14, so the entry claimed a release date one day in the future. Keep a Changelog's date is the release date; a future one is not a rounding difference, it is a record that disagrees with the tag it describes.
scttfrdmn
enabled auto-merge (squash)
September 15, 2026 05:57
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.
The defect
install.sh'sfetch()has two branches and they were not equivalent. Measured against a serverreturning two 503s and then a 200:
fetch()branchcurl -fsSL --retry 3(before, unchanged)wget -q -O(before)wget+--retry-on-http-error(after)wget's
--triescovers network-level failures only — a response that arrives carrying an error statusis not a failed attempt as far as wget is concerned, so its default of 20 tries retried a 503 exactly
zero times.
The asymmetry was invisible because each container in the
install-scriptmatrix exercises exactly onebranch: RHEL-family images ship curl,
ubuntu:24.04is given wget. It surfaced as an intermittentfailure on a required check — the post-merge run on
bbc94ecreportedagainst a release whose five
.sha256files were all present at 94 bytes each. Correct code reachinga wrong conclusion from a fetch that gave up instantly. Re-running the identical commit went green,
which is what identified it as the flake rather than a defect in that merge.
Release-asset downloads are unauthenticated, GitHub rate limits them by IP, and a shared runner shares
that IP — so a user behind a busy NAT got the same answer.
What changed
fetchandresolve_latest) pass--tries=4 --waitretry=1 --retry-connrefused --retry-on-http-error=429,500,502,503,504.403stays fatal on both paths. It is an authorization answer, not a transient one, and curl doesnot retry it either.
downloading. The probe matches with
caserather than a pipe intogrep, so it depends on nocommand but wget — the first harness for it ran under a
PATHholding only wget,grepwastherefore absent, the probe reported the capability as missing, and the measurement showed the fix
not working.
Verification
install.sh's ownfetch()run against a localserver, with
PATHrestricted so each branch is the one actually exercised.add 403; strip the flags from
resolve_latest's call site; replacecasewith a grep pipeline;remove curl's own
--retry.Two of those survived the first version of the test, both because the assertion matched the file and
the file contains comments naming
curl -fsSL --retry 3andwget_retry_flags. The assertions nowrun over comment-stripped command lines with a floor on how many were found.
shellcheckclean,gofmtclean,go vetclean,golangci-lint0 issues,go test -race ./...passes.
Also: 0.14.0
Version constant
0.13.0→0.14.0,Unreleasedpromoted to[0.14.0] - 2026-09-15.The v0.14.0 milestone closed at 14 of 14, with its two remaining items moved to
Future Workrather than finished: the
/sbin/mount.objectfsfstab helper (#136), which was deferred deliberately,and the Rocky Linux 9 install-to-fstab CI job that depends on it (#149). The release notes say so
rather than letting the version number imply they shipped. #138 is closed.
Worth noting for the ordering: the
v0.15.0 — Test Harness, Coverage & Build Hygienemilestone wasalready closed while v0.14.0 was still open, so that work is in this release too.
Tagging
v0.14.0after this merges is what produces the.deband.rpmrelease assets — the actualpackaging deliverable, with no repository to add.