ci: run pytest in parallel, start it with lint, cache the C++ runtime #348
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/348"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T10:53:35Z.
Cuts the time of the
testsworkflow on pull requests tomain.Measured before (pytest job, two green runs of today)
lintfirst (needs: lint)Changes
python -m pytest -n autowithpytest-xdist==3.6.1(added torequirements-dev.txt). Measured locally on 1,421 tests: 61 s serial, 21 s with-n 4, and 15 s withANYXBOXX_REQUIRE_RUNTIME=1 ANYXBOXX_GPU=warp -n 4. Same results in all three runs, and the README test-count check still passes (each xdist worker collects the full suite).needs: lint: the three jobs start together.lintis still a required check and still blocks the merge when it fails.runtime/build(about 9 MB, withoutruntime/build/tombox), keyed byhashFiles('runtime/**')and the runner image version (MSVC). It is restored on every run and saved frommainonly, like the Rust cache. The build only readsruntime/(checked inruntime/CMakeLists.txt), so it is skipped wheneverruntime/is unchanged.Expected: about 1.5–2.5 min less per run (more when
runtime/is unchanged). The check names (lint,politique VIctory,pytest) are unchanged, so branch protection needs no edit.Test plan
-n 4locally, serial and CI env: all passedmainsavesruntime-cpp-*, and the PR after that restores it (Runtime C++ skipped)A matching PR for
rust/fullfollows. There, the Rust cache is never saved (no push trigger onrust/full,save-ifmain only), so every PR recompiles the whole workspace.🤖 Generated with Claude Code
https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox
Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T10:53:44Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
9f583fcℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.