ci: run the platform-independent Python checks in parallel #1502

Manually merged
github merged 2 commits from gh-pr/1502/head into gh-pr/1502/base 2026-11-26 23:12:16 +00:00
Owner

@⁠tedin7 on GitHub · 2026-11-24 13:10 UTC · original
tedin7:ci/parallel-python-checks → main · +126 −49 · 3 files · 2 commits · merged 2026-11-24 14:08 UTC

What

The Linux Python-checks job ran 48 check scripts one after another. They are independent, so this adds tools/run_checks_parallel.py, which runs them concurrently, prints each script's output in the given order, and exits non-zero if any script fails. The workflow step now calls it with the same script list. No check was removed or changed.

Measured (same 48 scripts, all passing, 16-core Linux host, Python 3.12, requirements-dev.txt installed)

wall-clock
before (serial python -B loop) 107.8 s
after (run_checks_parallel.py, 16 workers) 77.1 s

The floor is now tests/form_coverage_check.py (about 70 s alone), which re-runs the pixel_aot_check control sweeps. Splitting or caching that work is a separate follow-up and is not in this PR.

Tests

  • python -B tests/run_checks_parallel_check.py (new; also added to the job's list): passing and failing scripts, exit status, output order.
  • python -B tools/run_checks_parallel.py <the 48 scripts>: all 48 passed.

No overlap with #1173 or #1434 (different hunk of windows.yml, the python-linux job only).

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-24 13:10 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1502) `tedin7:ci/parallel-python-checks` → `main` · +126 −49 · 3 files · 2 commits · merged 2026-11-24 14:08 UTC ## What The Linux Python-checks job ran 48 check scripts one after another. They are independent, so this adds `tools/run_checks_parallel.py`, which runs them concurrently, prints each script's output in the given order, and exits non-zero if any script fails. The workflow step now calls it with the same script list. No check was removed or changed. ## Measured (same 48 scripts, all passing, 16-core Linux host, Python 3.12, `requirements-dev.txt` installed) | | wall-clock | |---|---| | before (serial `python -B` loop) | 107.8 s | | after (`run_checks_parallel.py`, 16 workers) | 77.1 s | The floor is now `tests/form_coverage_check.py` (about 70 s alone), which re-runs the `pixel_aot_check` control sweeps. Splitting or caching that work is a separate follow-up and is not in this PR. ## Tests - `python -B tests/run_checks_parallel_check.py` (new; also added to the job's list): passing and failing scripts, exit status, output order. - `python -B tools/run_checks_parallel.py <the 48 scripts>`: all 48 passed. No overlap with #1173 or #1434 (different hunk of `windows.yml`, the `python-linux` job only). AI-assisted; commands listed were executed locally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:12:13 +00:00
github manually merged commit b4fd34fff5 into gh-pr/1502/base 2026-11-26 23:12:16 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-24 13:21 UTC · original

Rebased onto origin/main (4bbbbdc1) preserving tests/host_commit_check.py and fixed the YAML literal block (run: |) so bash line continuations do not pass leading spaces to tools/run_checks_parallel.py.

Gate audit:

  • All 48 python-linux checks from main plus tests/run_checks_parallel_check.py (49 total) are executed; zero checks dropped.
  • Non-zero exit code on any check failure with grouped stdout/stderr reporting (::group:: / FAILED: ...) verified locally and in CI.
  • Local parallel runner executed 2x back-to-back with all 49 checks passing and 0 flakiness.
  • git diff --check, docs_links_check.py, bidi_controls_check.py, and x2w_pipe.py preflight clean.

Live GitHub CI (45401941779, all checks green):

  • Run platform-independent Python checks on Linux: 54s total job / 46s Run Python checks step (49 checks) vs main (45400630926): 62s total job / 44s Run Python checks step (48 checks).
  • Build and test on Windows: 2m10s; Assemble and translate gfx1013 fixtures: 3m7s.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-24 13:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1502#issuecomment-7132716525) Rebased onto `origin/main` (`4bbbbdc1`) preserving `tests/host_commit_check.py` and fixed the YAML literal block (`run: |`) so bash line continuations do not pass leading spaces to `tools/run_checks_parallel.py`. Gate audit: - All 48 `python-linux` checks from `main` plus `tests/run_checks_parallel_check.py` (49 total) are executed; zero checks dropped. - Non-zero exit code on any check failure with grouped stdout/stderr reporting (`::group::` / `FAILED: ...`) verified locally and in CI. - Local parallel runner executed 2x back-to-back with all 49 checks passing and 0 flakiness. - `git diff --check`, `docs_links_check.py`, `bidi_controls_check.py`, and `x2w_pipe.py preflight` clean. Live GitHub CI (`45401941779`, all checks green): - `Run platform-independent Python checks on Linux`: **54s** total job / **46s** `Run Python checks` step (49 checks) vs `main` (`45400630926`): **62s** total job / **44s** `Run Python checks` step (48 checks). - `Build and test on Windows`: **2m10s**; `Assemble and translate gfx1013 fixtures`: **3m7s**. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 13:21 UTC · original · edited 2026-11-24 13:24 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-24T13:24:18.795481Z 4bbbbdc Draft marked ready
ℹ️ 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-24 13:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1502#issuecomment-7132720786) · edited 2026-11-24 13:24 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"4bbbbdc16bcaf3ab92e11698de864cea203fa270","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-24T13:24:18.795481Z">2026-11-24T13:24:18.795481Z</relative-time> | `4bbbbdc` | Draft marked ready | <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>
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-24 13:59 UTC · original

Resolved the workflow overlap with #1471 at b4fd34ff. All 49 main-branch scripts, including the startup comparison and host commit checks, remain in the job. Its runner self-test brings the total to 50. All 50 passed in a local eight-worker run.

**@⁠R0Y00** on GitHub · 2026-11-24 13:59 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1502#issuecomment-7133660430) Resolved the workflow overlap with #1471 at b4fd34ff. All 49 main-branch scripts, including the startup comparison and host commit checks, remain in the job. Its runner self-test brings the total to 50. All 50 passed in a local eight-worker run.
This discussion has been locked. Commenting is limited to contributors.
No description provided.