tooling: identify argument variants in parallel check results #3681

Manually merged
github merged 1 commit from github-bot/gh-3679 into main 2026-12-01 01:19:25 +00:00 AGit
Owner

@⁠timbot103 on GitHub · 2026-12-01 01:07 UTC · original
timbot103:tooling-parallel-arg-labels → main · +38 −7 · 3 files · 1 commits · merged 2026-12-01 01:18 UTC

The parallel runner accepts several invocations of one script with different arguments. Its group headers and summaries previously printed the script path alone, so a CI log could give every invocation the same name.

Group headers and the FAILED: and SKIPPED: summaries now include the invocation's arguments with native Windows or POSIX quoting. Labels for scripts without arguments retain their existing spelling. The runner still prints results in submission order and uses the existing exit-code and deduplication rules.

Refs #3002

Verification

Ran these commands from the repository root on Windows. The regression-only column uses the updated tests with tools/run_checks_parallel.py still at base a3bfd019.

Command Base suite Regression tests on base runner Fixed commit
python -B tests/run_checks_parallel_check.py Pass Exit 1. The first result group lacks its argument. Pass
python -B tests/run_checks_parallel_cli_check.py -q Pass, 7 tests Exit 1, 1 of 8 tests failed. The three manifest groups share one script-only label. Pass, 8 tests
python -B tests/run_checks_fragments_check.py Pass Test unchanged Pass

The CLI regression checks the ordered pass, failure and skip groups, the quoted argument with spaces, both summary lines and the runner's exit code of 1.

The same three checks passed on Ubuntu 24.04 under WSL.

wsl -d Ubuntu-24.04 -- python3 -B tests/run_checks_parallel_check.py
wsl -d Ubuntu-24.04 -- python3 -B tests/run_checks_parallel_cli_check.py -q
wsl -d Ubuntu-24.04 -- python3 -B tests/run_checks_fragments_check.py

Reviewed .github/workflows/windows.yml. The python-linux job invokes the CLI with --from-dir, and pixel-binary calls run_checks with merged inline and fragment commands. Both jobs use the runner's exit status and leave log rendering to GitHub Actions group markers.

Mutation

At tools/run_checks_parallel.py:165, changed label += " " + format_args(map(os.fsdecode, command[1:])) to label += " " + " ".join(map(os.fsdecode, command[1:])). On both Windows and Ubuntu, the CLI check failed with exit 1 because the failure group lost its quotes. The direct runner and fragments checks passed. Restored the formatter and reran all three checks successfully on both hosts.

Environment

  • Windows 11 25H2 build 26200.9974, Python 3.14.7.
  • Installed MSVC toolset 14.44.35207, cl.exe file version 14.44.35230.0, Windows SDK 10.0.26100.0 and DXC 1.9.2602.17.
  • Ubuntu 24.04 under WSL, Python 3.12.3.
  • All checks used the Python standard library.

Prepared with AI assistance; all commands above were run locally.

**@⁠timbot103** on GitHub · 2026-12-01 01:07 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3679) `timbot103:tooling-parallel-arg-labels` → `main` · +38 −7 · 3 files · 1 commits · merged 2026-12-01 01:18 UTC The parallel runner accepts several invocations of one script with different arguments. Its group headers and summaries previously printed the script path alone, so a CI log could give every invocation the same name. Group headers and the `FAILED:` and `SKIPPED:` summaries now include the invocation's arguments with native Windows or POSIX quoting. Labels for scripts without arguments retain their existing spelling. The runner still prints results in submission order and uses the existing exit-code and deduplication rules. Refs #3002 ## Verification Ran these commands from the repository root on Windows. The regression-only column uses the updated tests with `tools/run_checks_parallel.py` still at base `a3bfd019`. | Command | Base suite | Regression tests on base runner | Fixed commit | | --- | --- | --- | --- | | `python -B tests/run_checks_parallel_check.py` | Pass | Exit 1. The first result group lacks its argument. | Pass | | `python -B tests/run_checks_parallel_cli_check.py -q` | Pass, 7 tests | Exit 1, 1 of 8 tests failed. The three manifest groups share one script-only label. | Pass, 8 tests | | `python -B tests/run_checks_fragments_check.py` | Pass | Test unchanged | Pass | The CLI regression checks the ordered pass, failure and skip groups, the quoted argument with spaces, both summary lines and the runner's exit code of 1. The same three checks passed on Ubuntu 24.04 under WSL. ```powershell wsl -d Ubuntu-24.04 -- python3 -B tests/run_checks_parallel_check.py wsl -d Ubuntu-24.04 -- python3 -B tests/run_checks_parallel_cli_check.py -q wsl -d Ubuntu-24.04 -- python3 -B tests/run_checks_fragments_check.py ``` Reviewed `.github/workflows/windows.yml`. The `python-linux` job invokes the CLI with `--from-dir`, and `pixel-binary` calls `run_checks` with merged inline and fragment commands. Both jobs use the runner's exit status and leave log rendering to GitHub Actions group markers. ### Mutation At `tools/run_checks_parallel.py:165`, changed `label += " " + format_args(map(os.fsdecode, command[1:]))` to `label += " " + " ".join(map(os.fsdecode, command[1:]))`. On both Windows and Ubuntu, the CLI check failed with exit 1 because the failure group lost its quotes. The direct runner and fragments checks passed. Restored the formatter and reran all three checks successfully on both hosts. ### Environment - Windows 11 25H2 build 26200.9974, Python 3.14.7. - Installed MSVC toolset 14.44.35207, `cl.exe` file version 14.44.35230.0, Windows SDK 10.0.26100.0 and DXC 1.9.2602.17. - Ubuntu 24.04 under WSL, Python 3.12.3. - All checks used the Python standard library. Prepared with AI assistance; all commands above were run locally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 01:13:06 +00:00
github manually merged commit fc1d7dd6bc into main 2026-12-01 01:19:25 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-01 01:17 UTC · original · approved these changes

Reviewed the result labels for parameterized checks, including native quoting and the input-order pairing with worker results. python -B tests/run_checks_parallel_check.py and python -B tests/run_checks_parallel_cli_check.py passed on Windows (8 CLI cases). The same-script argument variants produced separate labels.

**@⁠R0Y00** on GitHub · 2026-12-01 01:17 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3679#pullrequestreview-6123456070) · **approved these changes** Reviewed the result labels for parameterized checks, including native quoting and the input-order pairing with worker results. `python -B tests/run_checks_parallel_check.py` and `python -B tests/run_checks_parallel_cli_check.py` passed on Windows (8 CLI cases). The same-script argument variants produced separate labels.
This discussion has been locked. Commenting is limited to contributors.
No description provided.