host tests: the two refresh tests that begin or end the asking hold one_view_test #5027

Open
Tan7rex wants to merge 1 commit from upstream-pr/5027 into main
Tan7rex commented 2026-12-01 17:46:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Tan7rex on 2026-12-01T17:46:32Z.


What it changes

watch::ask_holds::asking_kept_fast_path_guards_ask_ahead_and_done fails now and then in a parallel run of victory-gpu's tests:

panicked at crates\victory-gpu\src\watch.rs:7237:9:
assertion failed: is_kept()

That's the check straight after its own ask_once. The asking that stands is global, and the test holds watch::one_view_test(), the lock the tests that look at it hold. Two tests in host::refresh_tests change it without that lock:

  • unchanged_ranges_are_known calls ask_once and ask_once_end itself
  • refreshed_ranges_hold_title_memory ends it through the submission helper

When either ends the asking between the other test's ask_once and is_kept(), that check fails. Both now take one_view_test() first, before one_submission(), in the same order the refresh tests that already hold both use. No test takes them the other way round. Test-only.

#4619 does the same for the two tests in watch.rs that end the asking unlocked. With both, I found no other test that begins or ends the asking without the lock. I checked every ask_once, ask_ahead and ask_once_end call in a test that isn't #[ignore]d.

How it was tested

Windows 11 Pro (build 26100), RTX 4090. Release test binary of victory-gpu --lib (cargo test --release --locked --no-run -p victory-gpu --lib), default parallel threads. Game not run: test-only change.

  • GPU and profile: not applicable (test-only change)
  • Before (main 5fabb46e):
    • the failing test with the two refresh tests, --exact with the three names: 27 of 1,300 runs failed
    • whole library: 1 of 200, then 2 of 60
  • After (this branch):
    • the three tests together: 0 of 1,300
    • whole library: 0 of 60, and 0 of 30
  • For shader changes, the wave sizes tested: not applicable
  • cargo test passed for the crates it touches: the three tests, yes. The whole library still has unrelated failures in these runs, on main and on this branch: host_list_uav_pool_lifecycle_retire_trim_and_info_queue (#3902), shared_scratch_eliminates_flight_settle_end_to_end (#4980), and rarely a_late_fault_leaves_the_guard_taken_since (#4704), a_pipeline_made_ready_is_the_one_the_title_gets and a_rewritten_texture_descriptor_survives_a_stale_eviction. chunked_nothing_new_with_matches_individual failed once in the 30 runs on this branch, and in none of a further 60 on it or 260 on main.
  • The refresh tests alone (host::refresh_tests::), 300 runs: no failure on main or on this branch.
  • cargo xtask policy (pre-commit hook): ok. Clippy fails on main's 5 known errors (#4679, #4707), none in host.rs.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #4619 (the same lock for the two watch.rs tests). 323 open pull requests touch host.rs; searching them for these three test names found #4491, #4294 and #1556, none of which changes these tests.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5591218948 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5027). Originally posted by [Tan7rex](https://github.com/Tan7rex) on 2026-12-01T17:46:32Z. --- ## What it changes `watch::ask_holds::asking_kept_fast_path_guards_ask_ahead_and_done` fails now and then in a parallel run of `victory-gpu`'s tests: ``` panicked at crates\victory-gpu\src\watch.rs:7237:9: assertion failed: is_kept() ``` That's the check straight after its own `ask_once`. The asking that stands is global, and the test holds `watch::one_view_test()`, the lock the tests that look at it hold. Two tests in `host::refresh_tests` change it without that lock: - `unchanged_ranges_are_known` calls `ask_once` and `ask_once_end` itself - `refreshed_ranges_hold_title_memory` ends it through the `submission` helper When either ends the asking between the other test's `ask_once` and `is_kept()`, that check fails. Both now take `one_view_test()` first, before `one_submission()`, in the same order the refresh tests that already hold both use. No test takes them the other way round. Test-only. #4619 does the same for the two tests in `watch.rs` that end the asking unlocked. With both, I found no other test that begins or ends the asking without the lock. I checked every `ask_once`, `ask_ahead` and `ask_once_end` call in a test that isn't `#[ignore]`d. ## How it was tested Windows 11 Pro (build 26100), RTX 4090. Release test binary of `victory-gpu --lib` (`cargo test --release --locked --no-run -p victory-gpu --lib`), default parallel threads. Game not run: test-only change. - GPU and profile: not applicable (test-only change) - Before (`main` 5fabb46e): - the failing test with the two refresh tests, `--exact` with the three names: **27 of 1,300** runs failed - whole library: 1 of 200, then 2 of 60 - After (this branch): - the three tests together: **0 of 1,300** - whole library: **0 of 60**, and 0 of 30 - For shader changes, the wave sizes tested: not applicable - `cargo test` passed for the crates it touches: the three tests, yes. The whole library still has unrelated failures in these runs, on `main` and on this branch: `host_list_uav_pool_lifecycle_retire_trim_and_info_queue` (#3902), `shared_scratch_eliminates_flight_settle_end_to_end` (#4980), and rarely `a_late_fault_leaves_the_guard_taken_since` (#4704), `a_pipeline_made_ready_is_the_one_the_title_gets` and `a_rewritten_texture_descriptor_survives_a_stale_eviction`. `chunked_nothing_new_with_matches_individual` failed once in the 30 runs on this branch, and in none of a further 60 on it or 260 on `main`. - The refresh tests alone (`host::refresh_tests::`), 300 runs: no failure on `main` or on this branch. - `cargo xtask policy` (pre-commit hook): ok. Clippy fails on `main`'s 5 known errors (#4679, #4707), none in `host.rs`. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #4619 (the same lock for the two `watch.rs` tests). 323 open pull requests touch `host.rs`; searching them for these three test names found #4491, #4294 and #1556, none of which changes these tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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/5027:upstream-pr/5027'
git switch 'upstream-pr/5027'

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/5027'
git switch 'upstream-pr/5027'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/5027'
git switch 'upstream-pr/5027'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/5027'
git switch 'main'
git merge --squash 'upstream-pr/5027'
git switch 'main'
git merge --ff-only 'upstream-pr/5027'
git switch 'main'
git merge 'upstream-pr/5027'
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!5027
No description provided.