Repository navigation
ci: cache macOS dist dependencies and retry wheel uploads - #1422
Merged
Merged
Conversation
Build Distributions restores compiled dependencies on the two macOS legs, keyed on the lockfile, toolchain, cargo profile and target. Only the Rust Build Cache workflow on main saves them, building the macOS legs when the key is missing, so pull request and release builds only restore. A failed wheel upload retries once, replacing any partial artifact, and the wheel job timeout rises from 120 to 150 minutes.
The macOS writer takes about an hour on a cold key, so it now runs in Dist Dependency Cache with its own concurrency group instead of holding back the Verify caches in Rust Build Cache. Only dist-profile builds restore it, since nothing writes release-profile macOS caches.
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.
Why
Release wheel builds are slow and fragile on macOS. A cold arm64 dist build took 60 minutes in the 0.212.0 release, half of the 120-minute job limit, and a transient DNS error during the arm64 artifact upload cost a whole rebuild.
Changes
Swatinem/rust-cache, keyed on Cargo.lock, the toolchain, the cargo profile and the target.DuckShop edge case: not applicable. This is CI configuration only.
Verification
save-ifwas false off main.