Commit d601d76
ci(workflows): make apt fetches fail fast and retry instead of hanging (#507)
The Ubuntu mirror intermittently accepts a connection and then stops
sending data. apt has no read timeout by default, so it blocks forever:
run 29012965487 stalled 8.5 min on the 25 MB libwebkit2gtk-4.1-0 fetch
and the Desktop backend job was killed by its 20 min timeout-minutes
without compiling a single line of Rust.
Set a 30s read timeout so a stalled transfer aborts, and 3 retries so
apt re-fetches (picking another mirror) instead of failing the job.
Applied to both apt-using jobs via a shared env var.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 95dd4dd commit d601d76
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
46 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
230 | | - | |
231 | | - | |
| 237 | + | |
| 238 | + | |
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
| |||
0 commit comments