host tests: the two refresh tests that begin or end the asking hold one_view_test #5027
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5027"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_donefails now and then in a parallel run ofvictory-gpu's tests:That's the check straight after its own
ask_once. The asking that stands is global, and the test holdswatch::one_view_test(), the lock the tests that look at it hold. Two tests inhost::refresh_testschange it without that lock:unchanged_ranges_are_knowncallsask_onceandask_once_enditselfrefreshed_ranges_hold_title_memoryends it through thesubmissionhelperWhen either ends the asking between the other test's
ask_onceandis_kept(), that check fails. Both now takeone_view_test()first, beforeone_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.rsthat end the asking unlocked. With both, I found no other test that begins or ends the asking without the lock. I checked everyask_once,ask_aheadandask_once_endcall 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.main5fabb46e):--exactwith the three names: 27 of 1,300 runs failedcargo testpassed for the crates it touches: the three tests, yes. The whole library still has unrelated failures in these runs, onmainand on this branch:host_list_uav_pool_lifecycle_retire_trim_and_info_queue(#3902),shared_scratch_eliminates_flight_settle_end_to_end(#4980), and rarelya_late_fault_leaves_the_guard_taken_since(#4704),a_pipeline_made_ready_is_the_one_the_title_getsanda_rewritten_texture_descriptor_survives_a_stale_eviction.chunked_nothing_new_with_matches_individualfailed once in the 30 runs on this branch, and in none of a further 60 on it or 260 onmain.host::refresh_tests::), 300 runs: no failure onmainor on this branch.cargo xtask policy(pre-commit hook): ok. Clippy fails onmain's 5 known errors (#4679, #4707), none inhost.rs.Checked for overlap
watch.rstests). 323 open pull requests touchhost.rs; searching them for these three test names found #4491, #4294 and #1556, none of which changes these tests.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.