Skip to content

The image's downloads retry when a host is briefly unreachable - #569

Merged
zlareb1 merged 2 commits into
mainfrom
fix/dockerfile-curl-retry
Nov 12, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
fix/dockerfile-curl-retry

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

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 443 at Dockerfile:119, once in a dispatched docker-smoke run 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

Dockerfile only: the four curl downloads 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 before gpg --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

  • Wire: none.
  • Operator steps: none.
  • Rollback: revert.

Tests

The Dockerfile unit tests pass (168), and a local docker build of the stage with the key and scip-clang downloads succeeds. CI's docker-smoke builds 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 under docs/ describe the system as it now is, and this description names any operator steps and wire changes.

🤖 Generated with Claude Code

@zlareb1
zlareb1 merged commit 233eb99 into main Nov 12, 2026
43 checks passed
@zlareb1
zlareb1 deleted the fix/dockerfile-curl-retry branch November 12, 2026 17:48
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