Commit 50b4a73
authored
Stopped apt-get update being the gate it was never meant to be (#7)
A release build went red because Google's Chrome apt repository served a
Packages.gz that did not match its own Release file -- their CDN caught
mid-publish, the index eight hours older than the manifest describing it.
apt-get update fails if ANY configured repository serves a bad index, so
install.sh failed three attempts running, and nothing was built.
Verified as theirs rather than ours, from a second machine: the Release file
asks for 233e56de and the Packages.gz they serve hashes to bc1428ab, which are
the two hashes in the failing log. Not a runner glitch and not a network blip;
retrying gets the same answer until they republish.
Nothing in this project installs a browser. The runner image happens to carry
that repository and Microsoft's, and one of them being broken is now enough to
stop a build that needs neither.
SO THE UPDATE WARNS AND THE INSTALL IS THE GATE. Nothing is weakened by that.
apt-get install still fails hard on a package it cannot find, so an archive
that is genuinely unreachable still stops the script -- one step later, and
naming the package it could not get, which is a better diagnostic than a hash
mismatch in a repository nobody asked for.
THE OBVIOUS ALTERNATIVE IS WORSE AND IS NOT TAKEN. Disabling third-party
sources before updating would make the update strict again, and this script
also runs on a contributor's own machine, where silently rewriting their apt
configuration to suit our CI would be a considerably worse thing to do than
tolerating a stale index for a repository we do not read.
Verified in both directions: a failing update warns and execution continues
past it, and a genuine command failure still aborts under set -e.
Assisted-by: Claude Code (Opus 5) <noreply@anthropic.com>1 parent 667969d commit 50b4a73
1 file changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
68 | 92 | | |
69 | 93 | | |
70 | 94 | | |
| |||
0 commit comments