Commit 3fa3fdf
committed
build: verify the zlib tarball before it lands, and mirror the fetch
Two release jobs failed on a checksum mismatch and passed on a re-run. The
release matrix fans out twenty-two jobs that each fetch the same tarball at
the same moment, and zlib.net is one host serving them; curl's --retry
covers a transport error, not a request that completes carrying the wrong
body.
That was the trigger, not the defect. curl wrote straight to the cached
path, so a bad body stayed there and the next run's existence test skipped
the download and failed identically — recoverable only by deleting the file
by hand. CI recovered because that job's cache was never saved; had it been,
every later run restoring it would have failed the same way, re-runs
included.
Fetch to a temporary name, verify, and move into place only on a match, so
a bad body never reaches the cached path. An existing tarball is verified
before use and re-fetched when it does not match, which repairs a workspace
or cache entry already holding one. Both checksums are printed on a
mismatch, since the failure this replaces named neither.
The GitHub release becomes the first source, byte-identical to zlib.net and
served by a CDN that twenty-two concurrent fetches do not trouble; zlib.net
stays as the fallback and each source is tried in turn. KASLD_ZLIB_TARBALL
keeps failing rather than re-fetching: naming a file and silently getting a
different one is not what it asks for.1 parent 3c2fbdb commit 3fa3fdf
1 file changed
Lines changed: 27 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | | - | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
1096 | 1100 | | |
1097 | 1101 | | |
1098 | 1102 | | |
| |||
1101 | 1105 | | |
1102 | 1106 | | |
1103 | 1107 | | |
1104 | | - | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
1105 | 1117 | | |
1106 | 1118 | | |
1107 | | - | |
1108 | | - | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1109 | 1130 | | |
1110 | | - | |
1111 | | - | |
| 1131 | + | |
| 1132 | + | |
1112 | 1133 | | |
1113 | 1134 | | |
1114 | 1135 | | |
| |||
0 commit comments