Repository navigation
The image's downloads retry when a host is briefly unreachable - #569
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The server image's build retries its Go, Node, LLVM key and scip-clang downloads when a host is briefly unreachable, so a moment's network fault no longer fails an image build.
Why
Two image builds failed today on the same step:
curl: (7) Failed to connect to apt.llvm.org port 443atDockerfile:119, once in a dispatcheddocker-smokerun and once in a release candidate's tag run, where it cancelled the other image builds and the whole run had to be re-run. The host answered again seconds later each time. The downloads had no retry.Scope and risk
Dockerfileonly: the fourcurldownloads take--connect-timeout 20 --retry 5 --retry-all-errors --retry-delay 3: a refused or failed connect retries within seconds, and a host that does not answer the connect costs at most about two minutes instead of the default five per attempt. A transfer that stalls after connecting is not covered, as before. The LLVM key now goes to a file beforegpg --import, so a retried download never streams a repeated partial key into gpg. Each download keeps its checksum or fingerprint check, so a retry cannot change what is installed.Compatibility, rollout and rollback
Tests
The Dockerfile unit tests pass (168), and a local
docker buildof the stage with the key and scip-clang downloads succeeds. CI'sdocker-smokebuilds both images on this branch.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code; read both failing logs and checked that every download keeps its checksum or fingerprint check.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
docs/describe the system as it now is, and this description names any operator steps and wire changes.🤖 Generated with Claude Code