Repository navigation
Conversation
…tead of hanging Three command-recording paths spun on `GetCompletedValue()` with `yield_now()` and no deadline. A device that neither signals the fence nor reports itself removed wedged the test binary forever, which is the shape of the world hang in JMAN730#71. `wait_for_fence` polls every 2 ms, returns the device-removed reason as before, and fails after 120 s with a named error. `VICTORY_WAIT_SECS` raises the deadline for deliberately long runs. From the test fleet's branch (c5eb934).
Dukestar69
left a comment
There was a problem hiding this comment.
Verified on RTX 5090 against origin/main (63bcca4):
cargo test -p victory-shader --lib emit::host:: -- --test-threads=1: passed (parallel_warp_pipelines_and_draws).cargo clippy -p victory-shader --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.
Cleanly bounds test-host fence waits so a wedged device fails fast with an error instead of hanging CI/test runs.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
|
@Mdemets I tested the new wait helper on native Windows with an RTX 5080 (621.40) and built-in WARP. With a one-second deadline, both adapters accepted an immediate queue signal and a delayed fence signal. A healthy unsignaled fence returned the named timeout after 1,000–1,002 ms. Each case ran twice per adapter in a fresh process. I found one case where the helper returns success before readback should proceed. In a separate process with no GPU work queued I called The attached change checks the removal reason after reading the fence and rejects the sentinel. All four removal runs returned an error with the patch. Healthy signals and timeouts still behaved as expected. I also switched the deadline comparison to elapsed time. With the largest accepted git fetch https://github.com/steven-seagull27/VIctory.git codex/pr3143-fence-completion
git cherry-pick fe4446a418985c18a4f4913f96eddb8ce80c7b39
cargo test --locked -p victory-shader --lib emit::host::tests::fence_wait_rejects_the_removed_value -- --exact --nocaptureI also tested this with the latest shared-queue revision, AI-assisted patch and tests using synthetic D3D12 work on Windows. |
Three command-recording paths in the test host spin on
GetCompletedValue()withyield_now()and no deadline. A device that neither signals the fence nor reports itself removed wedges the test binary forever — the same shape as the world hang in #71 (a submission that never finishes and ends in a TDR), just observed from the suite instead of a title run.What changes
wait_for_fencehelper, poll every 2 ms, returns the device-removed reason exactly as the old loops did;VICTORY_WAIT_SECSraises the deadline for a deliberately long run;Verification
cargo check -p victory-shader --libclean on63bcca4.From the test fleet's branch (
c5eb934), where it stopped a wedged A5000 from hanging the suite for the rest of the night.