Repository navigation
Fetch the dev image's Debian packages over https, with retries (#1546) - #1548
Open
TortoiseWolfe wants to merge 2 commits into
Open
TortoiseWolfe wants to merge 2 commits into
TortoiseWolfe wants to merge 2 commits into
Conversation
On the tower the same .deb fetched five times over plain http came back with the wrong sha256 three times, so apt-get install fails by chance with Hash Sum mismatch. The slim base has no certificates, so ca-certificates comes first over http, then the sources switch to https and Acquire::Retries covers cut-off transfers. A test pins the three pieces and proves it can fail. Closes #1546 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
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 development image now fetches its Debian packages over https, with retries, so
apt-get installstops failing by chance withHash Sum mismatchon a network that alters plain http (measured in #1546).docker/Dockerfile: a new step before the big install writesAcquire::Retries "5", installsca-certificates(the slim base has none, so this one small package still comes over http), then rewrites the Debian sources from http to https.scripts/__tests__/dockerfile-apt-https.test.js: pins those three pieces in the dev stage, before the big install, and proves each one can fail (a comment that mentions them does not count).This helps the apt step only. Other downloads on that network (Playwright's browser, pnpm via Corepack) still fail on some tries; that is the network, tracked in #1546.
CI builds the image, which is the real proof. Held for the Sunday afternoon merge batch (every push to main republishes production).
Closes #1546
🤖 Generated with Claude Code