Repository navigation
fix(toolchain): take zlib from its GitHub release first - #31
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mainwent red on the pin merge (#28), and it is not the pin: the cold toolchain build fetches zlib fromzlib.net, and the download failed its pinned checksum.What happened
mainafter the mergemain, re-runEach 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.envfeeds the toolchain cache key, so every run after a pin change is cold until one passes onmain.The change
PS5_Vulkan'ssetup-native-dependencies.shkeeps 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.netwhen none is there.Checks
bash -n. The new lines run against the real script at the pinned rev: the version parses as1.3.2and 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.