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

Merged
tedin7 merged 2 commits from upstream-pr/1502 into main 2026-11-24 14:08:26 +00:00
tedin7 commented 2026-11-24 13:10:23 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T13:10:23Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6582534528 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1502). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T13:10:23Z. --- ## 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 commented 2026-11-24 14:03:24 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T13:21:35Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7132716525 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1502#issuecomment-7132716525). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T13:21:35Z. --- 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.
chatgpt-codex-connector[bot commented 2026-11-24 14:03:24 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T13:21:45Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7132720786 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1502#issuecomment-7132720786). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T13:21:45Z. --- <!-- 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>
R0Y00 commented 2026-11-24 14:03:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T13:59:38Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7133660430 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1502#issuecomment-7133660430). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T13:59:38Z. --- 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.
upstream-sync closed this pull request 2026-11-24 15:01:46 +00:00
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
R0Y00/Xbox2Windows!1495
No description provided.