ci: reuse parallel runner for LLVM check matrix #2259

Merged
chadhyatt merged 1 commit from upstream-pr/2267 into main 2026-11-25 09:07:13 +00:00
chadhyatt commented 2026-11-25 08:54:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chadhyatt on 2026-11-25T08:54:17Z.


AI-assisted backport patch from x2w-microlift.

The LLVM assembly check job and the portable Python job duplicate the same ordered parallel runner. Reuse tools/run_checks_parallel.py for both, with per-command arguments and environment overrides. Preserve every matrix entry and immediate group output.

Verification at df934b5b8a on macOS:

  • python3 -B tests/run_checks_parallel_check.py: passed, including isolated environment overrides and ordered argument delivery.
  • Compared ASTs of COMMON_LLVM, SPIRV, and CHECKS before and after: identical.
  • Current upstream b9dbbb69 adds two unrelated commits; none touches the four changed files.

The GitHub Actions matrix was not executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6600760325 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2267). Originally posted by [chadhyatt](https://github.com/chadhyatt) on 2026-11-25T08:54:17Z. --- AI-assisted backport patch from x2w-microlift. The LLVM assembly check job and the portable Python job duplicate the same ordered parallel runner. Reuse `tools/run_checks_parallel.py` for both, with per-command arguments and environment overrides. Preserve every matrix entry and immediate group output. Verification at `df934b5b8a` on macOS: - `python3 -B tests/run_checks_parallel_check.py`: passed, including isolated environment overrides and ordered argument delivery. - Compared ASTs of `COMMON_LLVM`, `SPIRV`, and `CHECKS` before and after: identical. - Current upstream `b9dbbb69` adds two unrelated commits; none touches the four changed files. The GitHub Actions matrix was not executed locally.
tedin7 commented 2026-11-25 09:04:10 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T08:59:21Z.

Review: COMMENTED


Review of head df934b5b8a784b7179ae53cff41a64d4598aeb00 (CI refactor: reuse tools/run_checks_parallel.py for the LLVM matrix).

Commands executed locally (Linux worktree at the PR head):

  • git diff --stat origin/main...HEAD: 4 files, +58/-47
  • python3 -B tests/run_checks_parallel_check.py: run_checks_parallel_check: ok
  • python3 tests/docs_links_check.py: self-test passed, 18 files / 433 links ok
  • python3 tests/bidi_controls_check.py: 1560 files, no bidi controls
  • git diff --check origin/main...HEAD: clean
  • gh pr checks: Linux python, gfx1013 fixtures and Windows build all pass; mergeable.

Mutation testing of the new logic (each reverted with git checkout -- .):

  1. Dropping the per-check env merge (env = None): the new test fails (ValueError: substring not found). Killed.
  2. Dropping per-command args ([sys.executable, "-B", command[0]]): the test fails (FAILED: echo.py echo.py). Killed.

Findings: P1=0, P2=0.

Nits (non-blocking):

  • tools/run_checks_parallel.py (run_checks): the old inline runner reported FAILED: script (exit N) and ended with all N pixel-binary checks passed. The shared runner prints only the script name and all N checks passed. The exit code is still in the ::group:: header, so this is only a small loss of log detail.
  • The workflow now loads the runner by relative path (runpy.run_path("tools/run_checks_parallel.py")). That is fine after checkout, but it ties the job to the repo root as working directory.
  • The jobs=None default repeats the os.cpu_count() or 2 fallback from main, whereas the old inline matrix used or 4. This is harmless.

Clean-room and title are neutral. The CI matrix itself was not changed (only the runner), and the PR body states the AST comparison.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6054524703 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2267#pullrequestreview-6054524703). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T08:59:21Z. **Review:** COMMENTED --- Review of head `df934b5b8a784b7179ae53cff41a64d4598aeb00` (CI refactor: reuse `tools/run_checks_parallel.py` for the LLVM matrix). Commands executed locally (Linux worktree at the PR head): - `git diff --stat origin/main...HEAD`: 4 files, +58/-47 - `python3 -B tests/run_checks_parallel_check.py`: `run_checks_parallel_check: ok` - `python3 tests/docs_links_check.py`: self-test passed, 18 files / 433 links ok - `python3 tests/bidi_controls_check.py`: 1560 files, no bidi controls - `git diff --check origin/main...HEAD`: clean - `gh pr checks`: Linux python, gfx1013 fixtures and Windows build all pass; mergeable. Mutation testing of the new logic (each reverted with `git checkout -- .`): 1. Dropping the per-check env merge (`env = None`): the new test fails (`ValueError: substring not found`). Killed. 2. Dropping per-command args (`[sys.executable, "-B", command[0]]`): the test fails (`FAILED: echo.py echo.py`). Killed. Findings: P1=0, P2=0. Nits (non-blocking): - `tools/run_checks_parallel.py` (`run_checks`): the old inline runner reported `FAILED: script (exit N)` and ended with `all N pixel-binary checks passed`. The shared runner prints only the script name and `all N checks passed`. The exit code is still in the `::group::` header, so this is only a small loss of log detail. - The workflow now loads the runner by relative path (`runpy.run_path("tools/run_checks_parallel.py")`). That is fine after checkout, but it ties the job to the repo root as working directory. - The `jobs=None` default repeats the `os.cpu_count() or 2` fallback from `main`, whereas the old inline matrix used `or 4`. This is harmless. Clean-room and title are neutral. The CI matrix itself was not changed (only the runner), and the PR body states the AST comparison. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-25 10:05:22 +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!2259
No description provided.