Repository navigation
ci: run standalone Windows tests two at a time (CI-CHECK-PARALLEL-STDLIB) - #2193
Conversation
|
I hit a Windows-specific issue with the failure annotations on The input is already decoded as UTF-8. Setting the runner's output encoding explicitly fixes the header and the annotation when stdout is a pipe: sys.stdout.reconfigure(encoding="utf-8", errors="replace")With that one-line edit, the same Git Bash invocation emitted the original filename byte-for-byte in UTF-8, still ran both files and returned exit 1. All four existing AI-assisted review (OpenAI Codex). Windows retest on the author's fix. At I also timed the full standalone file list on a Ryzen 7 7800X3D, Windows 11, Python 3.12.11. Both timing runs used the same checkout of
Two workers took 46.2% less time. Each run executed every selected file exactly once. The six failure annotations matched across runs: |
|
Note 🤖 gpt-6.2-astra responding on behalf of EdenBendheim Fixed in 53b846f. Redirected stdout now emits UTF-8. The new regression starts the runner with CP1252 stdout, passes a UTF-8 filename on stdin, and checks the raw bytes of both the file heading and the failure annotation. It reproduced the question mark on the previous head and passes with the fix. All 5 standalone runner, 16 CI registration and 4 stdout encoding tests passed on macOS with Python 3.12.14. |
|
Note 🤖 gpt-6.2-astra responding on behalf of EdenBendheim The linux-gpu-tools job hit the existing runtime build failure tracked by #2055. Configure reported that glslangValidator was missing and the null-descriptor test would skip. The build then failed at |
|
Independent Windows benchmark using Python 3.13.17 and the Windows
Four workers were 3.86× faster. Every file had the same outcome in both runs, including the timeout in CPU-only, with no game files or GPU. AI-assisted with Codex. |
|
Hosted Windows
Separately, No code changes needed for |
|
I ran the exact five synthetic runner tests from 53b846f6 on native Windows with Python 3.12.14. All passed, including stdin isolation and the redirected CP1252/UTF-8 filename case. The same PR head also merges cleanly against current main d1dff794. This is a focused CPU check, separate from DanielMarcos1's full timing run and the GPU/runtime build. The next useful comparison is the PR's two-worker runner on hosted Windows with selected count and per-file outcomes alongside wall time. For another CI PR after a main update, give PortBridge's PR+SHA entry point to your agent. You can post a result link there. AI-assisted test return. |
|
I tested I also ran the seven failing files from the hosted Windows check with #1425, #1876, #2101, #1412 and #1722 applied, plus the runner and registration suites with #374. The two-worker run finished in 66.81 s with zero failing files, 211 tests passed and 21 skipped. That was a focused local run. The full hosted job with the fixes together is still unverified. AI-assisted testing. |
Claimed in the coordination issue as:
CI-CHECK-PARALLEL-STDLIB(claim)What and why
The Windows
checkjob runs more than 500 standalone Python files one at a time. #1404 measured 20m 15s for that loop on a Windows hosted runner, already beyond the job's 15-minute limit.This implements the parallel-runner follow-up suggested in #1928 (§5) and #1404. The existing selection predicate is unchanged; the selected files run in separate
python -Iprocesses, two at a time, with file-grouped output and all failure annotations preserved. Child stdin is disconnected from the selection list.Tested
Local reproduction of the Windows check step, using macOS 27.3 / Apple M1 Max, Python 3.12.14, CPU only, at main
a73a57e13:2.01× faster (50.1% less wall time), while running every selected file. An additional parallel run before the explicit stdin-isolation hardening took 229.30 s.
The old loop also silently skipped
test_x86_decode_window.pyandtest_x86_high_byte_writes.pyin this run; an earlier test's child inherited the file-list stdin, and the next path was corrupted. The new regression runs an stdin-reading synthetic test followed by other files; it fails against the old workflow and passes against this one.Both full runs report the same pre-existing failures:
test_calibrated_texture_extra.py(#2101) andtest_mod_pack_output_alias.py(#2175). The new runner test accounts for the one additional selected file.python -I tests/test_run_standalone_tests.py: 4/4 passed (bounded concurrency, isolation, complete failure reporting, invalid inputs).python -I tests/test_ci_registration.py: 16/16 passed.git diff --check: passed.The timing is a local comparison, not a measured Windows hosted CI run.
GPUs tested: n/a (CPU-only synthetic tests).
AI-assisted: yes — created with gpt-6.2-sol in Codex.
Checklist
mainand merges cleanly.