Skip to content

Try a download again when it comes back empty - #255

Merged
tamnd merged 1 commit into
mainfrom
k2-empty-download
Nov 16, 2026
Merged

tamnd merged 1 commit into
mainfrom
k2-empty-download

Conversation

@tamnd

@tamnd tamnd commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Part of #244. The rucc job of a 7.4-rc2 defconfig census (43827743821) failed twice in a row because linux-7.4-rc2.tar.gz came back from git.kernel.org as an empty file. curl saw status 200, so the download passed and the hash check then failed with the SHA-256 of nothing. The gcc-16 job of the same run asked for the same snapshot at the same moment and got the whole file, which fits cgit answering with an empty body while it is still making the snapshot.

download now tries again when the file it got is empty, up to four times, waiting 30, 60 and then 90 seconds between tries. A real HTTP error still fails at once as before. The GitHub mirror does not help here, since its tarball is packed differently and never matches the pinned hash.

Checked with cargo fmt --check, cargo clippy -p rk --all-targets -D warnings and the rk tests.

@tamnd
tamnd merged commit 2832ca1 into main Nov 16, 2026
0 of 2 checks passed
@tamnd
tamnd deleted the k2-empty-download branch November 16, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant