Commit 07a3643
committed
mirror: a 502 for an asset the mirror holds is not a missing asset
The v2026.8.25.1 release failed its completeness gate twice. Both runs
reported all 16 assets "already mirrored, skipping", and the gate then
failed on one of them:
[mirror] FAIL: missing/unverified:
https://gitcode.com/xlings-res/mcpp/.../linux-x86_64.tar.gz
502ERR https://gitcode.com/.../linux-x86_64.tar.gz
Fetched by hand a minute later it was 5,772,395 bytes whose sha256 matched
the published checksum exactly. The file was never missing; GitCode's edge
answered 502 once, and a single unretried GET decided the release.
Both verification GETs now retry with `--retry-all-errors` — not plain
`--retry`, which covers transient HTTP codes but not the transport-layer
failures this path also sees; that distinction has cost this repository a
run of red CI before.
Also fixes the status the log reports. `|| echo ERR` APPENDS: `-f` makes
curl exit non-zero on a 502 while `-w` has already written the code, so the
variable read `502ERR` and no one could grep the log for a status. ERR is
now substituted only when curl printed nothing at all.1 parent d5cda84 commit 07a3643
1 file changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
288 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
289 | 308 | | |
290 | 309 | | |
291 | 310 | | |
| |||
0 commit comments