tooling: reject a script given twice on the run_checks_parallel command line #2797
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2805"
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 RenzoWit35 on 2026-11-26T11:00:40Z.
Change
read_check_filesfails a command listed twice acrosstests/checks/*.txt, andtests/checks/README.mdsays a command listed twice fails the job.mainbuilt its checks from the command-line scripts without that test, so the same script given twice ran twice and the job passed.mainnow raisesduplicate command-line script: <path>for a repeated script. It is reported like the other errors frommain: message on stderr, exit status 1, nothing runs. Scripts are compared as the exact strings given, which is the comparisonread_check_files(tuple of the split command) andmerge_checksalready use; no path normalisation is added, sox.pyand./x.pyremain two entries as they do today. A script on the command line that is also listed in--from-dirstill runs once.The only
run_checks_parallel.pycommand line in.github/workflows/*.ymlis thepython-linuxstep (the pixel-binary job callsmerge_checksandrun_checksdirectly). It has 203 scripts and none is repeated, so CI stays valid.tests/run_checks_parallel_check.pyran one script twice and expected two runs; it now uses two different scripts, and a new case asserts that a repeated script gives the one-line error, status 1 and no group output.Verification
python -B <origin/main runner> t.py t.py-> both runs,all 2 checks passed, exit 0.python -B tools/run_checks_parallel.py t.py t.py->duplicate command-line script: .../t.py, exit 1.python -B tests/run_checks_parallel_check.py->run_checks_parallel_check: ok.python -B tests/run_checks_fragments_check.py->run_checks_fragments_check ok.origin/mainrunner fails withAssertionErrorat thetwice.stdout.strip() == "duplicate command-line script: ..."line (the old runner rangood.pyand printed its group).Evidence and follow-up
Not changed: spelling differences such as
x.pyversus./x.pyare not detected, in the same way as for the listed files.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T11:07:33Z.
Review: COMMENTED
Review of head
a1c9cd0a.Checked against origin/main (4 commits behind, no overlap with the two touched files):
tools/run_checks_parallel.py: the repeated-script check inmainis correct. It raises inside the existing try, so it is reported like the othermainerrors (stderr, exit 1, nothing runs). It uses the same exact-string comparison asread_check_filesandmerge_checks.tests/run_checks_parallel_check.py: the old case ran one script twice; it now uses two different scripts. The new case asserts the one-line error, status 1 and no group output.Commands run locally on this head:
python3 -B tests/run_checks_parallel_check.py-> okpython3 tests/docs_links_check.py-> ok (27 files, 541 links)python3 tests/bidi_controls_check.py-> okgit diff --check origin/main...HEAD-> cleanNo blockers.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T11:07:59Z.
Win2025 WARP receipt for head
a1c9cd0a(Python-only PR; real-GPU run not available, RunPod stopped).Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
a1c9cd0a5cc8d8df5962e58a11c32294e4652873:--preset dev):cmake --build --preset dev -- -j 2):0.00s(configure0.00s)ctest --preset dev -R 'run_checks_parallel' --parallel 2 --no-tests=error --output-on-failure): 1/1 passed (1.80s:ci_run_checks_parallel_cli_check1.65s)/O2(--preset release):cmake --build --preset release -- -j 2):0.00s(configure0.00s)ctest --preset release -R 'run_checks_parallel' --parallel 2 --no-tests=error --output-on-failure): 1/1 passed (2.24s:ci_run_checks_parallel_cli_check2.03s)tests/run_checks_parallel_check.pyok (1.2s)11.2sAI-assisted; commands listed were executed locally.