Hold the test lock in the other view-mapping tests #324
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!324
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-324"
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?
@hamdanpor-ctrl on GitHub · 2026-11-27 16:42 UTC · original
hamdanpor-ctrl:test/lock-remaining-view-tests→main· +6 −0 · 1 files · 1 commits · merged 2026-11-27 17:31 UTCFollow-up to #246, as suggested there: six more tests in
watch.rsmap views of their own and now holdone_asking_test()as well (what_is_put_in_beside_the_guards_is_told_at_every_view,bits_go_at_every_view,holes_are_known_until_the_runtime_tells,no_mapping_is_lost_between_askers,no_write_through_another_view_is_lost_between_askers,nothing_is_guarded_between_our_forgetting_it_and_its_unmapping). Tests only.On
mainatf948c70with this change:cargo test -p victory-gpu --lockedfailed 0 of 10 runs (496 passed each); clippy onvictory-gpuis clean. Earlier, on6b3a266with #246 and these six: 0 of 30 runs. RTX 3050 Laptop GPU 4 GB, i7-12700H, 16 GB, Windows 11 Pro.AI-assisted (Claude Code).
🤖 Generated with Claude Code
@hamdanpor-ctrl on GitHub · 2026-11-27 17:17 UTC · original
The two failing checks come from one test this PR does not touch:
host::retire_batch_tests::batched_retirement_preserves_resource_lifetime_until_bury_on_gpu(from #295),drop-flushed resource leaked after bury, left 2, right 1, in the diagnostics job (--all-features --test-threads=1). This PR only addsone_asking_test()to six tests inwatch.rs.On my laptop (RTX 3050 Laptop 4 GB, i7-12700H, Windows 11) that test with
--all-features --exact --test-threads=1:5160663(this PR's head)f948c70(its base)51606635160663retire_batch_testson151b7db, and on151b7db+ this PRSo it looks timing-dependent rather than caused by this change. Could you re-run the failed jobs?
One possible cause, not proven: the test reads the references right after
std::thread::scopereturns, and the drop path depends on the second thread'sBATCHthread-local being dropped; the scope's own wait may end before a thread's thread-locals are dropped. The mixed retirement test joins its worker explicitly and has not failed here. A branch that joins the threads explicitly is at https://github.com/hamdanpor-ctrl/Vice-Tay/tree/fix/retire-tests-join-threads (0 of 20 failures, clippy clean, the fullvictory-gpudiagnostics suite passes), but since I can no longer reproduce the failure I can't show it fixes it, so I'm not opening it as a PR.AI-assisted (Claude Code).
@TaynanGT on GitHub · 2026-11-27 17:26 UTC · original
@hamdanpor-ctrl I reproduced the ordering on Windows by holding a thread-local destructor open. The scope returned while the batch was still alive, and an explicit join waited for it. I requested the failed-job rerun on
5160663and opened #336 with your two test changes and attribution.