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

Closed
github-bot wants to merge 1 commit from github-bot/gh-349 into rust/full AGit
Owner

@⁠LooperSalty on GitHub · 2026-11-26 10:54 UTC · original
LooperSalty:ci/faster-tests-rust-full → rust/full · +8 −4 · 2 files · 1 commits · closed without merging

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

**@⁠LooperSalty** on GitHub · 2026-11-26 10:54 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/349) `LooperSalty:ci/faster-tests-rust-full` → `rust/full` · +8 −4 · 2 files · 1 commits · closed without merging 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
- push on rust/full now runs the workflow and rust-cache may save from it:
  until now the cache was only written from main, whose workspace differs,
  so every pull request into rust/full recompiled the whole Cargo
  workspace (VIctory included), over 16 minutes.
- pytest -n auto (pytest-xdist), and pytest no longer waits for lint.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:03:27 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 10:54 UTC · original · edited 2026-11-26 10:55 UTC

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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 10:54 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/349#issuecomment-7189993908) · edited 2026-11-26 10:55 UTC <!-- 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>
github-bot closed this pull request 2026-11-26 11:48:25 +00:00
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-26 11:46 UTC · original

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

**@⁠LooperSalty** on GitHub · 2026-11-26 11:46 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/349#issuecomment-7191152175) 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.