ci: reuse parallel runner for LLVM check matrix #2259
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2267"
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 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.pyfor both, with per-command arguments and environment overrides. Preserve every matrix entry and immediate group output.Verification at
df934b5b8aon macOS:python3 -B tests/run_checks_parallel_check.py: passed, including isolated environment overrides and ordered argument delivery.COMMON_LLVM,SPIRV, andCHECKSbefore and after: identical.b9dbbb69adds two unrelated commits; none touches the four changed files.The GitHub Actions matrix was not executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T08:59:21Z.
Review: COMMENTED
Review of head
df934b5b8a784b7179ae53cff41a64d4598aeb00(CI refactor: reusetools/run_checks_parallel.pyfor the LLVM matrix).Commands executed locally (Linux worktree at the PR head):
git diff --stat origin/main...HEAD: 4 files, +58/-47python3 -B tests/run_checks_parallel_check.py:run_checks_parallel_check: okpython3 tests/docs_links_check.py: self-test passed, 18 files / 433 links okpython3 tests/bidi_controls_check.py: 1560 files, no bidi controlsgit diff --check origin/main...HEAD: cleangh pr checks: Linux python, gfx1013 fixtures and Windows build all pass; mergeable.Mutation testing of the new logic (each reverted with
git checkout -- .):env = None): the new test fails (ValueError: substring not found). Killed.[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 reportedFAILED: script (exit N)and ended withall N pixel-binary checks passed. The shared runner prints only the script name andall N checks passed. The exit code is still in the::group::header, so this is only a small loss of log detail.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.jobs=Nonedefault repeats theos.cpu_count() or 2fallback frommain, whereas the old inline matrix usedor 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.