Skip to content

ci: build api-simulator once and share it across test jobs - #5319

Merged
Trecek merged 13 commits into
developfrom
impl-api-simulator-ci-build-cache-20261025
Oct 25, 2026
Merged

Trecek merged 13 commits into
developfrom
impl-api-simulator-ci-build-cache-20261025

Conversation

@Trecek

@Trecek Trecek commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

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-files passed.
  • Configured test_check gate passed: 15,242 passed, 197 skipped, 12 xfailed.
  • CI cache miss/hit behavior, failure injection, and merge-group cache visibility still need validation in GitHub Actions.

Closes #5180

@Trecek
Trecek added this pull request to the merge queue Oct 25, 2026
Merged via the queue into develop with commit 46a3977 Oct 25, 2026
10 checks passed
@Trecek
Trecek deleted the impl-api-simulator-ci-build-cache-20261025 branch October 25, 2026 22:09
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