tests: run the six integer-format MRT cases in parallel #2580
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2588"
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 tedin7 on 2026-11-25T22:06:23Z.
Part of #448
What this unblocks:
startup_mrt_{fxc,dxc}_{warp,hardware}(about 53 s each in dev on Win2025 WARP) run their six 32-bit integer formats side by side instead of one after another, so the longest MRT tests finish sooner.Changes
tests/startup_mrt_check.pyonly. The per-session helpers (draw,request,queue_request,compile_pair) move into asession(name)factory that owns a private cache, root file, output file and environment.ThreadPoolExecutor. The per-format assertions are unchanged, including the three-channel refusal and base-translation checks that ran under format 42.future.result(), so pass/fail and skip handling are unchanged.Overlap check
tests/startup_mrt_check.pyatfb2f86ac5.Verification
Linux only (Stage 1):
python3 -m py_compile tests/startup_mrt_check.py: OKcd tests && python3 -B -c "import startup_mrt_check": OKgit diff --check: cleanStage 2 to do on the exact head: Win2025 WARP dev + release,
-R startup_mrt_with the default 5-slot pool; compare seconds against main; one mutation (change an expected integer word) must still fail.Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T22:17:41Z.
I found one cross-format check that loses its follow-up on
869d8d45. Format 42 compiles the base and deletes its three original request files, then its worker returns. Subsequent formats use fresh directories. The signedness check copies two manifests into the main directory, which has neither the compiled base nor the compiled UINT shaders. The explicit manifest mismatch is still checked, but a complete legacy base that has lost its original shader inputs is never used again. The serial fixture used exactly that base for the next specialization.I have a small follow-up on your head. All six formats still run in parallel. The existing signedness draw runs in the populated format-42 session, swaps just the manifest, and verifies that the runtime restored the original VS, PS and root blobs byte-for-byte. It adds no compiler or device launches.
I ran the same FXC/WARP CTest six times on Windows Server 2025, once for each fixture/runtime combination. With the normal runtime, serial, PR head and revised fixtures all passed (27.81 s, 21.51 s, 20.28 s, one run each). When the runtime skips republication on a compiled-base hit, the serial fixture fails with the missing original request, the unmodified PR fixture passes (21.03 s), and the revised fixture rejects the missing
req_436abe4fb591694e.aat its byte comparison. The six CTest logs are in the two mrt-logs artifacts. A second run with explicit assertions for the missing shader input passed both matrix jobs. The revised fixture also passed end to end with FXC and DXC on an RTX 4060 (driver 32.0.15.9579, Windows 11 26100.9711, debug layer unavailable).Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:53:46Z.
Thanks @RavenCurseBurg, good catch. I took your follow-up commit
5072dc87unchanged (fast-forward on top of869d8d45) and merged currentorigin/main. New head:223fab5c.What changed: the signedness check now runs in the populated format-42 session, swaps only the manifest, and compares the republished VS/PS/root request blobs byte for byte. The six formats still run in parallel.
Commands executed locally:
git merge --ff-only 5072dc87,git merge origin/maingit diff --check origin/main...HEAD(clean)python3 -m py_compile tests/startup_mrt_check.pyWin2025 WARP dev+release on
223fab5cwill be posted here before this leaves Draft.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:58:47Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
223fab5cc1da6943ce593263a252d919f386b725:--preset dev):cmake --build --preset dev --target startup_stream_consumer -- -j 2):0.00s(configure0.00s)ctest --preset dev -R '^startup_mrt_' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (34.81s:startup_mrt_fxc_warp17.82s,startup_mrt_dxc_warp17.86s,startup_mrt_dxc_hardware16.66s,startup_mrt_fxc_hardware16.75s)/O2(--preset release):cmake --build --preset release --target startup_stream_consumer -- -j 2):0.00s(configure0.00s)ctest --preset release -R '^startup_mrt_' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (34.71s:startup_mrt_dxc_warp17.30s,startup_mrt_fxc_warp17.47s,startup_mrt_dxc_hardware16.31s,startup_mrt_fxc_hardware17.14s)sccache: 0/16 hits; wall80.5sAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T22:59:00Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
223fab5ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.