Skip to content

fix(toolchain): take zlib from its GitHub release first - #31

Merged
enricobuehler merged 1 commit into
mainfrom
fix/toolchain-zlib-mirror
Nov 26, 2026
Merged

enricobuehler merged 1 commit into
mainfrom
fix/toolchain-zlib-mirror

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

main went red on the pin merge (#28), and it is not the pin: the cold toolchain build fetches zlib from zlib.net, and the download failed its pinned checksum.

What happened

Run When (UTC) zlib fetch
#28's own run 11:34 fine
main after the merge 11:56 checksum mismatch
main, re-run 12:06 checksum mismatch
#30 12:0x checksum mismatch

Each failure comes 0.3 s after Building pinned zlib 1.3.2 from source. From outside CI the same URL serves the pinned bytes at the same time. scripts/pins.env feeds the toolchain cache key, so every run after a pin change is cold until one passes on main.

The change

PS5_Vulkan's setup-native-dependencies.sh keeps an archive that is already there when it matches its pinned hash. So the wrapper places zlib's GitHub release first. It is the same file: same size, same SHA-256 (bb329a0a…19d16). The version is read from that script, so nothing is pinned twice.

Integrity is unchanged: the script still checks the archive against its own hash, drops one that does not match, and fetches from zlib.net when none is there.

Checks

bash -n. The new lines run against the real script at the pinned rev: the version parses as 1.3.2 and GitHub's archive passes the script's pinned hash. This PR's console lane is the real test, since the failure only shows on CI.

A cold toolchain build fetches zlib from zlib.net, and three CI runs in
a row got something that failed the pinned checksum, while the same URL
served the right file elsewhere. Main went red on the pin merge for it.

The wrapper now places the release from GitHub, the same file, before
PS5_Vulkan's script runs. That script still checks the archive against
its own pinned hash, and fetches from zlib.net when none is there.
@enricobuehler
enricobuehler merged commit 9bfad80 into main Nov 26, 2026
2 checks passed
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