Fix Windows CI checks and isolate flaky tests #3902

Open
NSYSLU wants to merge 3 commits from upstream-pr/3902 into main
NSYSLU commented 2026-11-30 10:59:04 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by NSYSLU on 2026-11-30T10:59:04Z.


Fixes #

What it changes

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing):
  • Before:
  • After:
  • For shader changes, the wave sizes tested (32 and/or 64 lanes):
  • cargo test passed for the crates it touches: yes / no

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5563901910 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3902). Originally posted by [NSYSLU](https://github.com/NSYSLU) on 2026-11-30T10:59:04Z. --- <!-- Thanks for the pull request. Please label it (pr-fix, pr-feature, pr-performance, pr-diagnostics, pr-refactor, pr-docs or pr-tests, plus the area labels), or put the label in the title, like [pr-fix]. --> Fixes # ## What it changes <!-- What was wrong, and what this does about it. --> ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): - Before: - After: - For shader changes, the wave sizes tested (32 and/or 64 lanes): - `cargo test` passed for the crates it touches: yes / no ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #
upipibi commented 2026-12-01 02:53:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by upipibi on 2026-12-01T02:53:32Z.


Data for the uav_pool part of this PR. I applied only its crates/victory-gpu/src/host/uav_pool.rs hunk (the test running itself in a child process) to main f5c3d243; it applies cleanly. I ran the whole victory-gpu library suite in parallel, cargo test -p victory-gpu --lib --locked, 20 times. Ryzen 9 5950X, RTX 3070, Windows 11.

tree host_list_uav_pool_lifecycle_retire_trim_and_info_queue failed
main 7d93ee07 5 of 20
main f5c3d243 7 of 20
main f5c3d243 + this hunk 0 of 20

On main it failed two ways:

  • UAV_SPARE_STATS[0].load(..) >= hits_before + 3 (uav_pool.rs:479), 7 times.
  • !spare_has(bet4m_raw, 4 << 20) after trim_uav_spare_to(0) (:488), 5 times.

Both are what other tests' lists sharing UAV_SPARE (and RETIRED_UAVS draining on other threads) would do. In the 20 runs with the hunk, the only failure was host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end, once.

I only tested this hunk, not the rest of the PR. The PR conflicts with main, but this file's hunk doesn't.

Tested with the help of Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7299102283 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3902#issuecomment-7299102283). Originally posted by [upipibi](https://github.com/upipibi) on 2026-12-01T02:53:32Z. --- Data for the `uav_pool` part of this PR. I applied only its `crates/victory-gpu/src/host/uav_pool.rs` hunk (the test running itself in a child process) to `main` f5c3d243; it applies cleanly. I ran the whole `victory-gpu` library suite in parallel, `cargo test -p victory-gpu --lib --locked`, 20 times. Ryzen 9 5950X, RTX 3070, Windows 11. | tree | `host_list_uav_pool_lifecycle_retire_trim_and_info_queue` failed | |---|---| | `main` 7d93ee07 | 5 of 20 | | `main` f5c3d243 | 7 of 20 | | `main` f5c3d243 + this hunk | **0 of 20** | On `main` it failed two ways: - `UAV_SPARE_STATS[0].load(..) >= hits_before + 3` (uav_pool.rs:479), 7 times. - `!spare_has(bet4m_raw, 4 << 20)` after `trim_uav_spare_to(0)` (:488), 5 times. Both are what other tests' lists sharing `UAV_SPARE` (and `RETIRED_UAVS` draining on other threads) would do. In the 20 runs with the hunk, the only failure was `host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end`, once. I only tested this hunk, not the rest of the PR. The PR conflicts with `main`, but this file's hunk doesn't. *Tested with the help of Claude Code (Claude Opus 5.5).*
NSYSLU commented 2026-12-01 11:25:52 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by NSYSLU on 2026-12-01T11:25:52Z.


Thanks, @upipibi , for testing the uav_pool change in isolation and sharing the results. I resolved the merge conflicts in 2863c3a9, and GitHub generated a new test merge commit.

Both uav_pool and shared_scratch passed locally. The full victory-gpu suite had one failure in a_queued_wait_or_signal_keeps_its_fence, which passed when rerun on its own.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7309632946 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3902#issuecomment-7309632946). Originally posted by [NSYSLU](https://github.com/NSYSLU) on 2026-12-01T11:25:52Z. --- Thanks, @upipibi , for testing the `uav_pool` change in isolation and sharing the results. I resolved the merge conflicts in `2863c3a9`, and GitHub generated a new test merge commit. Both `uav_pool` and `shared_scratch` passed locally. The full `victory-gpu` suite had one failure in `a_queued_wait_or_signal_keeps_its_fence`, which passed when rerun on its own.
Tan7rex commented 2026-12-01 15:14:12 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Tan7rex on 2026-12-01T15:14:12Z.


Tested this PR's head (2863c3a9, 0 commits behind main 5fabb46e) against main on Windows 11 Pro (build 26100), RTX 4090. Release test binary (cargo test --release --locked --no-run -p victory-gpu --lib), whole library suite run 60 times each, default parallel threads.

Test, runs failed out of 60 main 5fabb46e this PR
host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue 14 0
host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end 14 15

So the uav_pool change works here too, matching upipibi's 20 runs. The card_steps change doesn't affect shared_scratch_eliminates_flight_settle_end_to_end. That test already runs its two modes in child processes of its own, so the learned pages of other tests can't reach it; its failure is the timing one in #2741 (details there). Other failures in these runs, each 1 or 2 times on both trees: a_late_fault_leaves_the_guard_taken_since (#4704), records_copied_as_bytes_are_made_at_the_next_sync, a_rewritten_texture_descriptor_survives_a_stale_eviction, refresh_front_zero_arc_matches_and_runs_due.

Not tested: the game, and the PR's other files.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7315572925 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3902#issuecomment-7315572925). Originally posted by [Tan7rex](https://github.com/Tan7rex) on 2026-12-01T15:14:12Z. --- Tested this PR's head (2863c3a9, 0 commits behind `main` 5fabb46e) against `main` on Windows 11 Pro (build 26100), RTX 4090. Release test binary (`cargo test --release --locked --no-run -p victory-gpu --lib`), whole library suite run 60 times each, default parallel threads. | Test, runs failed out of 60 | `main` 5fabb46e | this PR | |---|---|---| | `host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue` | 14 | **0** | | `host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end` | 14 | 15 | So the `uav_pool` change works here too, matching upipibi's 20 runs. The `card_steps` change doesn't affect `shared_scratch_eliminates_flight_settle_end_to_end`. That test already runs its two modes in child processes of its own, so the learned pages of other tests can't reach it; its failure is the timing one in #2741 (details there). Other failures in these runs, each 1 or 2 times on both trees: `a_late_fault_leaves_the_guard_taken_since` (#4704), `records_copied_as_bytes_are_made_at_the_next_sync`, `a_rewritten_texture_descriptor_survives_a_stale_eviction`, `refresh_front_zero_arc_matches_and_runs_due`. Not tested: the game, and the PR's other files.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3902:upstream-pr/3902'
git switch 'upstream-pr/3902'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3902'
git switch 'upstream-pr/3902'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3902'
git switch 'upstream-pr/3902'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3902'
git switch 'main'
git merge --squash 'upstream-pr/3902'
git switch 'main'
git merge --ff-only 'upstream-pr/3902'
git switch 'main'
git merge 'upstream-pr/3902'
git push origin 'main'
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
trustno1-coder/VIctory-NVIDIA!3902
No description provided.