Skip to content

tests: retry a missing compute translation on the same live slot 67 pipeline - #2716

Merged
tedin7 merged 2 commits into
R0Y00:mainfrom
RavenCurseBurg:tests/live-compute-retry-main
Nov 26, 2026
Merged

tedin7 merged 2 commits into
R0Y00:mainfrom
RavenCurseBurg:tests/live-compute-retry-main

Conversation

@RavenCurseBurg

@RavenCurseBurg RavenCurseBurg commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Refs #2274 (part B).

#2532 brought the direct Dispatch path and its manifest retry to main. This ports the previously measured live-pipeline fixture onto 546d881b. It holds one device and one slot 67 pipeline across two fenced Dispatch calls in the same process.

The first readback must retain all 320 sentinel words. While the consumer waits, Python runs the real offline translator on its single request, waits for the retry interval and releases the same process. The second readback must match all 288 written words and 32 untouched words. A separate run leaves that request unpublished and requires two refusals and two entirely untouched readbacks.

Reproduce

cmake --build --preset release --target startup_stream_consumer
ctest --preset release --no-tests=error -j 1 -R '^startup_compute_(live_retry|dispatch|dispatch_texture|dispatch_heap)_(hardware|warp)$' -V

Results at 5bc3211c

I built the consumer, d3d12_xs.dll and xg_xs.dll from this head on Windows 11 build 26100.9711 with Zig/Clang 0.13.0, MinGW headers and Windows SDK 26100 definitions for flag operators, the missing HRESULT and the debug-name GUID. The machine's Direct3D debug layer was unavailable. Running each Python entry point directly on Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579) and WARP (10.0.26100.9711) gave these results.

Check Intel RTX WARP
Live retry, late and never published pass pass pass
Existing direct Dispatch fixture pass pass pass
Existing heap-record Dispatch fixture pass pass pass
Existing texture Dispatch fixture same refusal mismatch as #2710 same same

For a separate negative control, I removed just the timed reload condition from dispatch_translated and rebuilt the runtime. All three adapters still passed the unpublished control. After publication all three failed the new fixture with two missing-translation refusals, and the second readback still held 320 sentinels. The unmodified runtime passed the same inputs on each adapter.

The adjacent texture check reached texture-store-denied and observed the missing-UAV-token reason instead of the expected uncreated-view reason. #2710 tracks that existing main failure. The upstream Windows, Linux and LLVM checks passed.

AI-assisted with Codex (GPT-6.2 Astra, xhigh).

RavenCurseBurg and others added 2 commits November 26, 2026 11:11
…ation

Fence the untranslated first call, run the real offline compiler while the original device and pipeline stay alive, and check all output words on the second call. Repeat without publishing as a negative control.

AI-assisted with Codex (GPT-6.2 Astra, xhigh).

(cherry picked from commit 3d596a2)

@tedin7 tedin7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of head ffbc2f76 (the PR's own diff is unchanged from 5bc3211c; head only merged main).

What I checked:

  • The new startup_compute_live_retry_check.py holds one device and one slot 67 pipeline across two fenced Dispatch calls. The first readback must keep all sentinel words, then the offline translation is published, and the second readback must match the expected words. The unpublished case requires two refusals and two untouched readbacks. That guards the retry behavior.
  • prepare_case is a plain extraction from startup_compute_dispatch_check.py with the same setup; the dispatch-retry branch in startup_stream_consumer.cpp only adds the first fenced dispatch and a stdin wait before the normal path.
  • CMake registers startup_compute_live_retry_{warp,hardware} next to the sibling dispatch tests with the same timeout and skip code.
  • git diff --check origin/main...HEAD clean. CI green on this head.

Windows Server 2025 WARP, dev and release, 3/3 each: startup_compute_(live_retry|dispatch|dispatch_heap)_warp.

Note: startup_compute_dispatch_texture_warp fails on this runner (refusal text an output texture entry is not the token of an unordered access view instead of the expected an output texture view was not created on the desktop, at tests/startup_compute_dispatch_texture_check.py:101). It fails identically with this PR's changes removed, so it is not caused by this PR. Someone should look at it separately.

AI-assisted; commands listed were executed locally.

@tedin7

tedin7 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Win2025 WARP receipt for head ffbc2f7 after updating with main.

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit ffbc2f76d040236986d58da46118e8eb8f05adc6:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target startup_stream_consumer -- -j 2): 29.45s (configure 4.37s)
    • Test (ctest --preset dev -R '^startup_compute_(live_retry|dispatch|dispatch_heap)_warp$' --parallel 4 --no-tests=error --output-on-failure): 3/3 passed (2.61s: startup_compute_dispatch_heap_warp 0.64s, startup_compute_dispatch_warp 1.43s, startup_compute_live_retry_warp 2.48s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target startup_stream_consumer -- -j 2): 35.85s (configure 4.28s)
    • Test (ctest --preset release -R '^startup_compute_(live_retry|dispatch|dispatch_heap)_warp$' --parallel 4 --no-tests=error --output-on-failure): 3/3 passed (2.62s: startup_compute_dispatch_heap_warp 0.59s, startup_compute_dispatch_warp 0.77s, startup_compute_live_retry_warp 2.49s)
  • sccache: 0/278 hits; wall 81.7s

AI-assisted; commands listed were executed locally.

@tedin7
tedin7 merged commit 08814b4 into R0Y00:main Nov 26, 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.

2 participants