Skip to content

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

Merged
R0Y00 merged 3 commits into
R0Y00:mainfrom
tedin7:tests/mrt-integer-formats-parallel
Nov 25, 2026
Merged

R0Y00 merged 3 commits into
R0Y00:mainfrom
tedin7:tests/mrt-integer-formats-parallel

Conversation

@tedin7

@tedin7 tedin7 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

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

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

RavenCurseBurg commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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

@tedin7

tedin7 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

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

tedin7 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@tedin7
tedin7 marked this pull request as ready for review November 25, 2026 22:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
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.

@R0Y00
R0Y00 merged commit 8298ec6 into R0Y00:main Nov 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants