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

Open
github-bot wants to merge 1 commit from github-bot/gh-5027 into main AGit
Owner

@⁠Tan7rex on GitHub · 2026-12-01 17:46 UTC · original
Tan7rex:tests/asking-lock-host → main · +6 −0 · 1 files · 1 commits · open

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.

#4620 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 (#4981), and rarely a_late_fault_leaves_the_guard_taken_since (#4705), 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 (#4680, #4708), none in host.rs.

Checked for overlap

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

🤖 Generated with Claude Code

**@⁠Tan7rex** on GitHub · 2026-12-01 17:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5027) `Tan7rex:tests/asking-lock-host` → `main` · +6 −0 · 1 files · 1 commits · open ## 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. #4620 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` (#4981), and rarely `a_late_fault_leaves_the_guard_taken_since` (#4705), `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 (#4680, #4708), 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: #4620 (the same lock for the two `watch.rs` tests). 323 open pull requests touch `host.rs`; searching them for these three test names found #4492, #4295 and #1556, none of which changes these tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
`unchanged_ranges_are_known` begins and ends the asking that stands, and
`refreshed_ranges_hold_title_memory` ends it through `submission`. The
asking is global, and neither held `watch::one_view_test()`, the lock
the tests that look at it hold. One of them ending it between
`ask_once` and `is_kept()` failed
`watch::ask_holds::asking_kept_fast_path_guards_ask_ahead_and_done`
(watch.rs:7237): 27 of 1,300 runs of those three tests together on an
RTX 4090, and 1 of 200 whole runs of victory-gpu's tests. With the lock
held: 0 of 1,300, and 0 of 60 whole runs (2 of 60 on main).

The lock is taken first, before `one_submission`, as the refresh tests
that already hold both do. Test-only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 17:51:50 +00:00
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/5028/head:github-bot/gh-5027'
git switch 'github-bot/gh-5027'

Merge

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