ci: save the Rust cache from rust/full, run pytest in parallel #349

Closed
LooperSalty wants to merge 1 commit from upstream-pr/349 into rust/full
LooperSalty commented 2026-11-26 10:54:03 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T10:54:03Z.


Companion of #348 for rust/full, where CI time is worst.

Problem (measured)

The pytest job of #344 (into rust/full) has spent more than 16 minutes in "Rust (espace racine, crates/)" alone. Swatinem/rust-cache only saves with save-if: github.ref == 'refs/heads/main', and the workflow has no push trigger on rust/full. So no cache ever exists for the rust/full workspace (root Cargo.toml, crates/, VIctory's crates by path), and every pull request rebuilds every dependency from scratch.

Changes

  1. push: branches: [main, rust/full] and save-if true on main or rust/full: the first push to rust/full after this merge writes the cache, and later PRs restore it.
  2. pytest -n auto with pytest-xdist==3.6.1. On main's suite this measured 61 s serial and 15 s with -n 4, same results.
  3. pytest no longer waits for lint (still a required check).

The C++ cache of #348 is left out here on purpose: on this branch, the CMake step also copies the Rust runtime DLLs from target/release, so it must run after cargo every time.

Test plan

  • This PR's CI is green with -n auto (parity tests included)
  • After merge: the push run on rust/full shows "Post Cache Rust" saving, and the next PR's Rust step takes minutes, not 16+

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6625076710 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/349). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T10:54:03Z. --- Companion of #348 for `rust/full`, where CI time is worst. ## Problem (measured) The pytest job of #344 (into `rust/full`) has spent more than 16 minutes in "Rust (espace racine, crates/)" alone. `Swatinem/rust-cache` only saves with `save-if: github.ref == 'refs/heads/main'`, and the workflow has no `push` trigger on `rust/full`. So no cache ever exists for the `rust/full` workspace (root `Cargo.toml`, `crates/`, VIctory's crates by path), and every pull request rebuilds every dependency from scratch. ## Changes 1. `push: branches: [main, rust/full]` and `save-if` true on `main` or `rust/full`: the first push to `rust/full` after this merge writes the cache, and later PRs restore it. 2. `pytest -n auto` with `pytest-xdist==3.6.1`. On `main`'s suite this measured 61 s serial and 15 s with `-n 4`, same results. 3. pytest no longer waits for `lint` (still a required check). The C++ cache of #348 is left out here on purpose: on this branch, the CMake step also copies the Rust runtime DLLs from `target/release`, so it must run after cargo every time. ## Test plan - [ ] This PR's CI is green with `-n auto` (parity tests included) - [ ] After merge: the push run on `rust/full` shows "Post Cache Rust" saving, and the next PR's Rust step takes minutes, not 16+ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox
chatgpt-codex-connector[bot] commented 2026-11-26 10:54:18 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T10:54:18Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T10:55:38.017660Z 2abb43f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7189993908 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/349#issuecomment-7189993908). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T10:54:18Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"2abb43f9ebe5ea1679ef7950c033246b6fd9f1ac","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-26T10:55:38.017660Z">2026-11-26T10:55:38.017660Z</relative-time> | `2abb43f` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
LooperSalty commented 2026-11-26 11:46:39 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T11:46:39Z.


Superseded by #351: its workflow already runs pytest with -n auto without waiting for lint, and saves the Rust cache from pull requests.

🤖 Generated with Claude Code

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7191152175 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/349#issuecomment-7191152175). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T11:46:39Z. --- Superseded by #351: its workflow already runs pytest with -n auto without waiting for lint, and saves the Rust cache from pull requests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LooperSalty/AnyXboxX!349
No description provided.