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

Merged
RavenCurseBurg merged 2 commits from upstream-pr/2716 into main 2026-11-26 03:34:00 +00:00
RavenCurseBurg commented 2026-11-26 03:19:22 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T03:19:22Z.


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

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6618762716 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2716). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-26T03:19:22Z. --- Refs #2274 (part B). #2532 brought the direct Dispatch path and its manifest retry to main. This ports the previously measured [live-pipeline fixture](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7172056574) 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 ```powershell 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](https://github.com/R0Y00/Xbox2Windows/actions/runs/45748169224) passed. AI-assisted with Codex (GPT-6.2 Astra, xhigh).
upstream-sync closed this pull request 2026-11-26 04:04:30 +00:00
tedin7 commented 2026-11-26 04:04:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:33:47Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6068197104 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2716#pullrequestreview-6068197104). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T03:33:47Z. **Review:** COMMENTED --- 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 commented 2026-11-26 04:04:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:33:48Z.


Win2025 WARP receipt for head ffbc2f76 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181827816 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2716#issuecomment-7181827816). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T03:33:48Z. --- Win2025 WARP receipt for head ffbc2f76 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.
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!2708
No description provided.