Commit c6b59b0
committed
backend/Dockerfile: retry apt-get on transient mirror 404s
deb.debian.org is a CDN in front of many mirror origins; a -security
point-release rotation can leave one edge's index listing a filename
another edge has already purged, producing a 404 an apt-get install
can't recover from mid-run. Wrapping update+install in a retry loop
lets a fresh apt-get update (which usually lands on a consistent edge)
resolve it within the same build, instead of needing a whole CI job
rerun.
Verified live: this branch's AWS Preview workflow hit this exact
failure 3 times in a row on 3 different packages (libtiff, libc-l10n,
libperl); reproduced locally against the unmodified Dockerfile
(libde265-0, arm64) while testing the fix. Confirmed the retry loop
itself works (recovered from the same live mirror flakiness during a
local arm64 build) and that the full build succeeds end-to-end on
linux/amd64 (the real CI architecture) with the fix applied.
No deploy-api.yml failure has ever been caused by this — checked its
last ~30 runs; its only 2 failures were unrelated migration-task
issues, apt-get succeeded in both. Folding this into #723 rather than
a separate PR so the fix gets verified through this branch's own
preview deploy, which is already hitting the failure live.1 parent cf5ed61 commit c6b59b0
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
0 commit comments