tests: run the six integer-format MRT cases in parallel #2580

Merged
tedin7 merged 3 commits from upstream-pr/2588 into main 2026-11-25 23:15:17 +00:00
tedin7 commented 2026-11-25 22:06:23 +00:00 (Migrated from github.com)

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.py only. The per-session helpers (draw, request, queue_request, compile_pair) move into a session(name) factory that owns a private cache, root file, output file and environment.
  • The main session behaves as before for every later case (RGBA8 controls, narrow formats, FLOAT, folding, narrow FLOAT).
  • Each of the six formats (42, 43, 17, 18, 3, 4) runs in its own session from a ThreadPoolExecutor. The per-format assertions are unchanged, including the three-channel refusal and base-translation checks that ran under format 42.
  • The stale-signedness control still runs in the main cache: the 42 and 43 manifests are copied there before it.
  • A failure or capability skip (77) inside any worker re-raises through future.result(), so pass/fail and skip handling are unchanged.
  • No CMake change, no check removed or weakened.

Overlap check

  • #1726 (slot 38, touched this file) is closed. No open PR touches tests/startup_mrt_check.py at fb2f86ac5.

Verification

Linux only (Stage 1):

  • python3 -m py_compile tests/startup_mrt_check.py : OK
  • cd tests && python3 -B -c "import startup_mrt_check" : OK
  • git diff --check : clean
  • The check itself needs D3D12 and a shader compiler, so it was NOT run here. Before/after seconds, the pass list and a mutation that still fails are pending the Windows run in Stage 2.

Stage 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6614717825 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2588). Originally posted by [tedin7](https://github.com/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.py` only. The per-session helpers (`draw`, `request`, `queue_request`, `compile_pair`) move into a `session(name)` factory that owns a private cache, root file, output file and environment. - The main session behaves as before for every later case (RGBA8 controls, narrow formats, FLOAT, folding, narrow FLOAT). - Each of the six formats (42, 43, 17, 18, 3, 4) runs in its own session from a `ThreadPoolExecutor`. The per-format assertions are unchanged, including the three-channel refusal and base-translation checks that ran under format 42. - The stale-signedness control still runs in the main cache: the 42 and 43 manifests are copied there before it. - A failure or capability skip (77) inside any worker re-raises through `future.result()`, so pass/fail and skip handling are unchanged. - No CMake change, no check removed or weakened. ### Overlap check - #1726 (slot 38, touched this file) is closed. No open PR touches `tests/startup_mrt_check.py` at `fb2f86ac5`. ### Verification Linux only (Stage 1): - `python3 -m py_compile tests/startup_mrt_check.py` : OK - `cd tests && python3 -B -c "import startup_mrt_check"` : OK - `git diff --check` : clean - The check itself needs D3D12 and a shader compiler, so it was NOT run here. Before/after seconds, the pass list and a mutation that still fails are pending the Windows run in Stage 2. Stage 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.
RavenCurseBurg commented 2026-11-25 23:02:07 +00:00 (Migrated from github.com)

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.a at 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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176181930 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2588#issuecomment-7176181930). Originally posted by [RavenCurseBurg](https://github.com/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](https://github.com/RavenCurseBurg/Xbox2Windows/commit/5072dc87677c94acaed5e6e52a2dd809cf951006). 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.a` at its byte comparison. The [six CTest logs](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45712181459) are in the two mrt-logs artifacts. A [second run with explicit assertions for the missing shader input](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45713318345) 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).
tedin7 commented 2026-11-25 23:02:08 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:53:46Z.


Thanks @RavenCurseBurg, good catch. I took your follow-up commit 5072dc87 unchanged (fast-forward on top of 869d8d45) and merged current origin/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/main
  • git diff --check origin/main...HEAD (clean)
  • python3 -m py_compile tests/startup_mrt_check.py
  • independent diff review against the checklist: no blocking finding

Win2025 WARP dev+release on 223fab5c will be posted here before this leaves Draft.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176911391 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2588#issuecomment-7176911391). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T22:53:46Z. --- Thanks @RavenCurseBurg, good catch. I took your follow-up commit `5072dc87` unchanged (fast-forward on top of `869d8d45`) and merged current `origin/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/main` - `git diff --check origin/main...HEAD` (clean) - `python3 -m py_compile tests/startup_mrt_check.py` - independent diff review against the checklist: no blocking finding Win2025 WARP dev+release on `223fab5c` will be posted here before this leaves Draft. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 23:02:09 +00:00 (Migrated from github.com)

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:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target startup_stream_consumer -- -j 2): 0.00s (configure 0.00s)
    • Test (ctest --preset dev -R '^startup_mrt_' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (34.81s: startup_mrt_fxc_warp 17.82s, startup_mrt_dxc_warp 17.86s, startup_mrt_dxc_hardware 16.66s, startup_mrt_fxc_hardware 16.75s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target startup_stream_consumer -- -j 2): 0.00s (configure 0.00s)
    • Test (ctest --preset release -R '^startup_mrt_' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (34.71s: startup_mrt_dxc_warp 17.30s, startup_mrt_fxc_warp 17.47s, startup_mrt_dxc_hardware 16.31s, startup_mrt_fxc_hardware 17.14s)
  • sccache: 0/16 hits; wall 80.5s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177006310 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2588#issuecomment-7177006310). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T22:58:47Z. --- Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `223fab5cc1da6943ce593263a252d919f386b725`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target startup_stream_consumer -- -j 2`): `0.00s` (configure `0.00s`) - Test (`ctest --preset dev -R '^startup_mrt_' --parallel 2 --no-tests=error --output-on-failure`): **4/4 passed** (`34.81s`: `startup_mrt_fxc_warp` `17.82s`, `startup_mrt_dxc_warp` `17.86s`, `startup_mrt_dxc_hardware` `16.66s`, `startup_mrt_fxc_hardware` `16.75s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target startup_stream_consumer -- -j 2`): `0.00s` (configure `0.00s`) - Test (`ctest --preset release -R '^startup_mrt_' --parallel 2 --no-tests=error --output-on-failure`): **4/4 passed** (`34.71s`: `startup_mrt_dxc_warp` `17.30s`, `startup_mrt_fxc_warp` `17.47s`, `startup_mrt_dxc_hardware` `16.31s`, `startup_mrt_fxc_hardware` `17.14s`) - `sccache`: 0/16 hits; wall `80.5s` AI-assisted; commands listed were executed locally.
chatgpt-codex-connector[bot commented 2026-11-25 23:02:09 +00:00 (Migrated from github.com)

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.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T23:01:49.783074Z 223fab5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177010525 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2588#issuecomment-7177010525). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T22:59:00Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"223fab5cc1da6943ce593263a252d919f386b725","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-25T23:01:49.783074Z">2026-11-25T23:01:49.783074Z</relative-time> | `223fab5` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
upstream-sync closed this pull request 2026-11-26 00:00:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2580
No description provided.