Repository navigation
installer: resume interrupted release downloads - #55
Merged
chriskearney merged 7 commits intoOct 11, 2026
Merged
Conversation
…ing it a packaging mistake curl --retry repeats only timeouts and HTTP 408, 429 and 5xx, and it restarts at byte 0. An HTTP/2 stream reset (curl exit 92) was not retried, and any failure printed 'the release is missing a file'. The release download loop now calls fetch_release_file: one curl -C - per try, five tries, so each try continues from the bytes on disk. Only a 4xx answer keeps the missing-file message; a dropped connection says to run the same command again. Signed-off-by: Chris Kearney <[email protected]>
…s, restart on exit 33 After five HTTP 503 answers fetch_release_file returned 22, so install_all printed the packaging-mistake text for a server outage. It now returns 22 only for an immediate 4xx and 100 after five server errors. The failure text covers both. Added --connect-timeout 30 --speed-limit 1024 --speed-time 60 so a stalled transfer ends. On curl exit 33 (server ignored the Range request) the partial file is removed and the next try starts at byte 0. Signed-off-by: Chris Kearney <[email protected]>
This was referenced Oct 11, 2026
|
GREEN at head 9cd944d. No fixes needed. I ran fetch_release_file from this head against a local range server (3 MB file, a known sha256) and also read the call site in install_all.
The released installer (aurora-2026.10.11.13) still has plain |
Signed-off-by: Chris Kearney <[email protected]>
Signed-off-by: Chris Kearney <[email protected]>
Signed-off-by: Chris Kearney <[email protected]>
Signed-off-by: Chris Kearney <[email protected]>
Signed-off-by: Chris Kearney <[email protected]>
chriskearney
marked this pull request as ready for review
October 11, 2026 18:21
This was referenced Oct 11, 2026
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.
Interrupted release downloads previously stopped with a misleading missing-asset error. Resume partial files across bounded retries; restart when a server ignores Range, limit stalled connections, and distinguish missing assets, denied requests and exhausted network/server failures. Every completed download—including HTTP 416—still passes its pinned SHA256 before package installation.
Retains Joshua Warren’s original commits and authorship from personal PR146. Fixes #18.
Validation: 10 focused controls cover real truncated HTTP transfers, Range restart, 416, 404, 401/403, 408/429/5xx, transport-reset/stall retries, corrupt data and production install admission. Independent adversarial review passes. The previous curl invocation fails the same truncated-transfer control with exit18; the resumed candidate completes byte-for-byte. The generated installer assembled with unchanged .13 packages passes its download/EFI/release controls (55 pass, 18 historical/optional skips). Desktop transaction controls pass after keeping the actual downloader in their fixture (21 tests). Shell syntax and diff checks pass.
No kernel/Mesa changes, hardware execution, or release asset changes. Shellcheck is unavailable because its installed binary has a missing shared library.