Run the view-guard tests one at a time #246
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!246
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/246/head"
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 12:00 UTC · original
hamdanpor-ctrl:fix/flaky-block-just-written-rests→main· +26 −3 · 1 files · 1 commits · merged 2026-11-27 12:10 UTCcargo test -p victory-gpufails now and then on my laptop. The view-guard tests inwatch.rsshare the global guards and ran beside each other: a view one test maps can land beside another test's guarded block, and that block is then told as written again, so a range the test expects clean comes back with its page (left: Some([page]),right: Some([])).This makes the 21 tests that guard views of their own hold
one_asking_test(), as theask_oncetests already do, and says so in its comment. Tests only; nothing outside#[cfg(test)]changes.cargo test -p victory-gpu --lockedmainat573eff0a_block_just_written_rests)a_block_just_written_restsalone, onmaina_block_just_written_restsholding the locka_range_that_begins_in_an_unmapped_block_is_guarded,a_write_through_another_view_is_reported_at_the_guarded_one)Clippy with and without
--all-featuresis clean.cargo test --workspace --all-features -- --test-threads=1passed onmainas well, which runs the tests one at a time.AI-assisted (Claude Code).
🤖 Generated with Claude Code
@TaynanGT on GitHub · 2026-11-27 12:03 UTC · original
@hamdanpor-ctrl The repeated run where serialising just one test moved the failure to other view tests makes the shared guard state the useful clue. I’ll check that the 21 tests take the same lock as the existing
ask_oncecases and run the parallel Windows suite at this head.@hamdanpor-ctrl on GitHub · 2026-11-27 16:23 UTC · original
Rebased onto
mainat6b3a266and added the lock to six more tests that map views of their own (what_is_put_in_beside_the_guards_is_told_at_every_view, which came tomainafter this branch,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).While testing #245, #238 and #247 on top of
6b3a266here, view-guard tests failed now and then as before (a_write_is_reported_at_every_checked_view,what_is_put_in_beside_the_guards_is_told_at_every_view,what_the_kernel_writes_through_is_not_guarded_for_another_view,a_block_just_written_rests,a_view_being_split_leaves_its_pages_unguarded_elsewhere).With this branch:
cargo test -p victory-gpu --lockedfailed 0 of 30 runs (473 passed each); clippy onvictory-gpuis clean. Same laptop: RTX 3050 Laptop 4 GB, i7-12700H, 16 GB, Windows 11 Pro.@TaynanGT on GitHub · 2026-11-27 16:25 UTC · original
@hamdanpor-ctrl Zero failures in 30 runs makes the six view tests a good follow-up. #246 is already in main, so a small PR from the current tip with just the extra lock coverage will let the CI result isolate that change.