Fix Windows CI checks and isolate flaky tests #3902

Open
github-bot wants to merge 3 commits from github-bot/gh-3902 into main AGit
Owner

@⁠NSYSLU on GitHub · 2026-11-30 10:59 UTC · original
NSYSLU:fix/windows-ci → main · +123 −16 · 7 files · 3 commits · open

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: #
**@⁠NSYSLU** on GitHub · 2026-11-30 10:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3902) `NSYSLU:fix/windows-ci` → `main` · +123 −16 · 7 files · 3 commits · open <!-- 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: #
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 11:02:39 +00:00
Author
Owner

@⁠upipibi on GitHub · 2026-12-01 02:53 UTC · original

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

**@⁠upipibi** on GitHub · 2026-12-01 02:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3902#issuecomment-7299102283) 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).*
Author
Owner

@⁠NSYSLU on GitHub · 2026-12-01 11:25 UTC · original

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.

**@⁠NSYSLU** on GitHub · 2026-12-01 11:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3902#issuecomment-7309632946) 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.
Author
Owner

@⁠Tan7rex on GitHub · 2026-12-01 15:14 UTC · original

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 (#4705), 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.

**@⁠Tan7rex** on GitHub · 2026-12-01 15:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3902#issuecomment-7315572925) 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` (#4705), `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 can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3902/head:github-bot/gh-3902'
git switch 'github-bot/gh-3902'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3902'
git switch 'github-bot/gh-3902'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3902'
git switch 'github-bot/gh-3902'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3902'
git switch 'main'
git merge --squash 'github-bot/gh-3902'
git switch 'main'
git merge --ff-only 'github-bot/gh-3902'
git switch 'main'
git merge 'github-bot/gh-3902'
git push origin 'main'
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!3902
No description provided.