victory-gpu's library tests build and pass on main again #4025

Closed
github-bot wants to merge 2 commits from github-bot/gh-4025 into main AGit
Owner

@⁠mstrmoos on GitHub · 2026-11-30 14:52 UTC · original
mstrmoos:pr/card-pass-test-args → main · +12 −8 · 3 files · 2 commits · closed without merging

[pr-tests]

What it changes

cargo test -p victory-gpu --lib doesn't build on main (c71899d9, 2026-11-30). Once it builds, two more tests fail. This makes all three pass again. It changes only test code.

  • card_pass takes a sixth argument, the compare's capture (7addcfc7, VICTORY_LAND_CAPTURE). The two calls in host.rs's tests still passed five (E0061 at host.rs:20302 and :20328). They now pass [0; 3], meaning no capture, as the other callers outside the capture's mode do.
  • list::thin::tests::bindings_record_no_work names every call the thin recorder takes by what it records, and checks that none is left out (left: 47, right: 49). begin_query and end_query (471d05c4, #3715) record into the query heap but were in no list. They join the calls that record work, which is where binds_only and waits already put them.
  • shader_cache::tests::every_switch_of_the_translator_is_in_the_key lists four VICTORY_ORACLE_* names that the translator no longer reads, since the differential fuzzer was taken out (a1fe8350). The test failed on the first of them (VICTORY_ORACLE_RUNS is not read by the translator any more). The four names are removed.

How it was tested

  • GPU and profile: test code only, no run.
  • Before, on main: the library's tests don't build (E0061 twice). With only the card_pass calls fixed, 1114 passed and 2 failed (the two tests above).
  • After: cargo test --locked -p victory-gpu --lib gives 1116 passed, 0 failed, 66 ignored.
  • cargo test passed for the crates it touches: yes

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #3061 also removes the VICTORY_ORACLE_* names. It and #3385 and #3530 are larger test-and-Clippy sweeps that now conflict with main, and none covers the card_pass calls or the query calls. This is the small part that gets the library's tests building again today.
**@⁠mstrmoos** on GitHub · 2026-11-30 14:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4025) `mstrmoos:pr/card-pass-test-args` → `main` · +12 −8 · 3 files · 2 commits · closed without merging [pr-tests] ## What it changes `cargo test -p victory-gpu --lib` doesn't build on main (`c71899d9`, 2026-11-30). Once it builds, two more tests fail. This makes all three pass again. It changes only test code. - **`card_pass` takes a sixth argument**, the compare's capture (7addcfc7, `VICTORY_LAND_CAPTURE`). The two calls in `host.rs`'s tests still passed five (E0061 at `host.rs:20302` and `:20328`). They now pass `[0; 3]`, meaning no capture, as the other callers outside the capture's mode do. - **`list::thin::tests::bindings_record_no_work`** names every call the thin recorder takes by what it records, and checks that none is left out (`left: 47, right: 49`). `begin_query` and `end_query` (471d05c4, #3715) record into the query heap but were in no list. They join the calls that record work, which is where `binds_only` and `waits` already put them. - **`shader_cache::tests::every_switch_of_the_translator_is_in_the_key`** lists four `VICTORY_ORACLE_*` names that the translator no longer reads, since the differential fuzzer was taken out (a1fe8350). The test failed on the first of them (`VICTORY_ORACLE_RUNS is not read by the translator any more`). The four names are removed. ## How it was tested - GPU and profile: test code only, no run. - Before, on main: the library's tests don't build (E0061 twice). With only the `card_pass` calls fixed, 1114 passed and 2 failed (the two tests above). - After: `cargo test --locked -p victory-gpu --lib` gives 1116 passed, 0 failed, 66 ignored. - `cargo test` passed for the crates it touches: yes ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #3061 also removes the `VICTORY_ORACLE_*` names. It and #3385 and #3530 are larger test-and-Clippy sweeps that now conflict with main, and none covers the `card_pass` calls or the query calls. This is the small part that gets the library's tests building again today.
card_pass took the compare's capture (7addcfc7, VICTORY_LAND_CAPTURE) and
its two test callers still passed five arguments, so the library's tests
did not build. They pass [0; 3], no capture, as the other callers outside
the capture's mode do.

The thin recorder's bindings_record_no_work names every call by what it
records; begin_query and end_query (471d05c4, #3715) record into the query
heap and were in no list. They join the calls that record work.

The shader key's test lists four VICTORY_ORACLE_* names the translator no
longer reads since the differential fuzzer left (a1fe8350); it failed on
the first of them.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 14:53:49 +00:00
Author
Owner

@⁠babuakhil on GitHub · 2026-11-30 16:21 UTC · original

Three open PRs fix the same card_pass E0061 in host.rs's tests: this one, #4053 and #4018. I ran all three on native Windows 11 with an RTX 3060 (Rust 1.98.1, pinned), each on main (c71899d9), which they're all based on.

cargo test -p victory-gpu --lib --locked (2 runs each) scoped_uav_barriers_dedup_and_sync_card_compare on the RTX 3060 parameters 4 and 5 in that test
#4053 2 failed (thin::bindings_record_no_work, every_switch_of_the_translator_is_in_the_key), plus one watch flake in one run passes not set
#4018 the same 2 failed, both runs passes set
this PR 1116 passed, 0 failed, both runs passes not set
this PR + #4018's two SetComputeRootUnorderedAccessView lines 1116 passed, 0 failed, both runs passes set

So this is the only one of the three that gets the library's tests green, since the other two leave thin and the VICTORY_ORACLE_* names failing.

One suggestion: take #4018's two binds of parameters 4 and 5 as well. The test passes without them on this card, because modes 0 and 1 never read the capture. But CardShared::bind_capture documents those parameters as "bound for every pass, read only by those told to capture", and every non-test caller of card_pass (host.rs around :8379, :8627 and :8657) calls bind_capture before passing [0; 3]. Leaving them unset makes the test the only place that dispatches the compare with root parameters unset, which the D3D12 debug layer may flag. I couldn't confirm that last part here, because this machine lacks the Graphics Tools debug layer (d3d12SDKLayers.dll). With both changes together, the full suite still passes (last row).

**@⁠babuakhil** on GitHub · 2026-11-30 16:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4025#issuecomment-7284538967) Three open PRs fix the same `card_pass` E0061 in `host.rs`'s tests: this one, #4053 and #4018. I ran all three on native Windows 11 with an RTX 3060 (Rust 1.98.1, pinned), each on `main` (`c71899d9`), which they're all based on. | | `cargo test -p victory-gpu --lib --locked` (2 runs each) | `scoped_uav_barriers_dedup_and_sync_card_compare` on the RTX 3060 | parameters 4 and 5 in that test | |---|---|---|---| | #4053 | 2 failed (`thin::bindings_record_no_work`, `every_switch_of_the_translator_is_in_the_key`), plus one `watch` flake in one run | passes | not set | | #4018 | the same 2 failed, both runs | passes | set | | **this PR** | **1116 passed, 0 failed**, both runs | passes | not set | | this PR + #4018's two `SetComputeRootUnorderedAccessView` lines | 1116 passed, 0 failed, both runs | passes | set | So this is the only one of the three that gets the library's tests green, since the other two leave `thin` and the `VICTORY_ORACLE_*` names failing. One suggestion: take #4018's two binds of parameters 4 and 5 as well. The test passes without them on this card, because modes 0 and 1 never read the capture. But `CardShared::bind_capture` documents those parameters as "bound for every pass, read only by those told to capture", and every non-test caller of `card_pass` (`host.rs` around :8379, :8627 and :8657) calls `bind_capture` before passing `[0; 3]`. Leaving them unset makes the test the only place that dispatches the compare with root parameters unset, which the D3D12 debug layer may flag. I couldn't confirm that last part here, because this machine lacks the Graphics Tools debug layer (`d3d12SDKLayers.dll`). With both changes together, the full suite still passes (last row).
CardShared::bind_capture binds parameters 4 and 5 for every pass, read only
by passes told to capture, and every caller of card_pass outside the tests
binds them before passing [0; 3]. The test now does the same, so no dispatch
of the compare runs with root parameters unset. The two binds are #4018's;
babuakhil suggested taking them here.
Author
Owner

@⁠mstrmoos on GitHub · 2026-11-30 16:30 UTC · original

Thanks for running all three. Taken: c01e3ad2 binds parameters 4 and 5 before both card_pass calls, as bind_capture does for the other callers. The two binds are #4018's.

cargo test --locked -p victory-gpu --lib with it, RTX 5080: 1116 passed, 0 failed, 66 ignored.

**@⁠mstrmoos** on GitHub · 2026-11-30 16:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4025#issuecomment-7284776194) Thanks for running all three. Taken: c01e3ad2 binds parameters 4 and 5 before both `card_pass` calls, as `bind_capture` does for the other callers. The two binds are #4018's. `cargo test --locked -p victory-gpu --lib` with it, RTX 5080: 1116 passed, 0 failed, 66 ignored.
github-bot closed this pull request 2026-12-01 18:50:48 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:47 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4025#issuecomment-7321538573) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4025
No description provided.