Skip to content

fix: the headset's build rides out a short outage of GitHub's downloads - #88

Merged
Xenolphthalein merged 1 commit into
mainfrom
fix/download-retries
Nov 19, 2026
Merged

Xenolphthalein merged 1 commit into
mainfrom
fix/download-retries

Conversation

@Xenolphthalein

Copy link
Copy Markdown
Contributor

For #87

An upgrade stopped three times on HTTP 500 from GitHub's release downloads: the build retried each file for only about 7 s (curl --retry 3).

  • scripts/fetch.sh: one download helper (POSIX sh, stage 1 has no bash). Server errors (408, 429, 5xx) and failed or dropped connections are tried again for three minutes, 5 s apart at first and up to 30 s; any other answer fails at once. Every retry and the final failure name the URL and the error. It downloads through FILE.part, so a file is whole or absent.
  • Every download of build-on-headset.sh (packages.sh, the Holo rootfs, the fan tool) and build-userspace.sh (the packages archive, the release's SHA256SUMS, packages and databases) goes through it.
  • tests/test_fetch.sh against a fake server: two 500s then the file, an answer cut short, a 404, a server that stays down, a refused connection. CI runs it under dash; make test picks it up.
  • docs/install.md and docs/development.md say so.

Checked: the new test under dash and bash, the host tests, shellcheck, the docs and private-data checks, and a real release download (with its redirect) and a missing file through the helper. Not run on the headset yet.

…ds: every download goes through scripts/fetch.sh, which tries server errors and dropped connections again for three minutes and names the URL and the error when it gives up
@Xenolphthalein
Xenolphthalein requested a review from a team as a code owner November 19, 2026 14:42
@Xenolphthalein
Xenolphthalein merged commit 212ddc6 into main Nov 19, 2026
8 checks passed
@Xenolphthalein
Xenolphthalein deleted the fix/download-retries branch November 19, 2026 14:44
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