ci: reuse parallel runner for LLVM check matrix #2267

Manually merged
github merged 1 commit from gh-pr/2267/head into gh-pr/2267/base 2026-11-27 00:11:15 +00:00
Owner

@⁠chadhyatt on GitHub · 2026-11-25 08:54 UTC · original
chadhyatt:backport/shared-parallel-check-runner → main · +58 −47 · 4 files · 1 commits · merged 2026-11-25 09:07 UTC

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.

**@⁠chadhyatt** on GitHub · 2026-11-25 08:54 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2267) `chadhyatt:backport/shared-parallel-check-runner` → `main` · +58 −47 · 4 files · 1 commits · merged 2026-11-25 09:07 UTC 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.
- Preserve the current check matrix and per-command environment while sharing ordered execution with the portable suite.
- Verify child argument and environment isolation through the same runner entry point.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:11:13 +00:00
github manually merged commit df934b5b8a into gh-pr/2267/base 2026-11-27 00:11:15 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 08:59 UTC · original · reviewed

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.

**@⁠tedin7** on GitHub · 2026-11-25 08:59 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2267#pullrequestreview-6054524703) · **reviewed** 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.