Repository navigation
ci: build api-simulator once and share it across test jobs - #5319
Merged
Merged
Conversation
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.
Every Linux test job currently builds api-simulator from its pinned Git revision because the cache primer does not run for PR or merge-group events. Replace the primer and metadata jobs with one producer that runs on every event and builds, prunes, and saves only on an exact cache miss.
Key the shared build on runner OS, architecture and image, uv version, Python minor, and the pinned api-simulator revision, without the lockfile hash. Linux test jobs restore that exact key, fail on producer failure or a missing cache, and verify the native submodule imports after installation. Private-dependency Git credentials and Rust installation move out of the test matrix. Update the contributor rules and workflow tests to cover this behavior.
Validation:
pre-commit run --all-filespassed.test_checkgate passed: 15,242 passed, 197 skipped, 12 xfailed.Closes #5180