Raw title copy tests fail now and then in the parallel victory-gpu suite #354
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#354
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 19:32 UTC · original
Two tests from the raw title copy work fail now and then in the parallel
cargo test -p victory-gpu --lockedonmainat104c3d3, although both holdone_asking_test():main, 40 runswatch::tests::a_raw_copy_in_watched_memory_keeps_the_other_asked_rangeswatch.rs:4559:expect("watched destination")onprepare_raw_copy_note(&reading, p, 1)host::refresh_tests::raw_title_copy_keeps_write_watch_and_resends_equal_byteshost.rs:12535: unwrap onNoneThe same two failed once each in another 40 runs on a branch that changes only
shadow/loose_allocation_tests.rs(#346).What did not help: making the eight other tests that ask about write-watched title memory hold the lock as well (
what_is_taken_again_is_what_was_written,no_write_is_lost_between_askers,reads_in_place_and_remappings_wait_for_each_other,the_parts_of_a_page_written_since_it_was_taken,written_pages_are_reported_to_every_asker,only_what_differs_goes_up,kept_things_come_back_by_size_within_the_limit,bytes_under_overlapping_ranges). With that,a_raw_copy_in_watched_memory_keeps_the_other_asked_rangesfailed 3 of 40 runs, andmany_askers_tests::no_mapping_is_lost_between_askersonce (watch.rs:5968,assert!(super::published(at, end))). So what ends or replaces the test's asking is probably not another test asking directly; a submission path in a test without the lock is my next guess, but I have not found it. Not posting that branch.AI-assisted (Claude Code).
@TaynanGT on GitHub · 2026-11-27 19:51 UTC · original
@hamdanpor-ctrl I found a submission test that can end the shared query:
a_late_texture_readback_blocks_a_following_cpu_copycallsHost::submit, which callsask_once_end(). The readback fixture was outside the lock held by both raw-copy tests.#361 takes the same lock in that fixture. #344 separately gave the host raw-copy test a stable mapping. I’ve kept this issue open for the remaining intermittent cases.
@hamdanpor-ctrl on GitHub · 2026-11-27 20:13 UTC · original
More data from the same laptop,
cargo test -p victory-gpu --locked, parallel:aa917f3b6ea434(#346)1d83085(#351)raw_title_copy_keeps_write_watch_and_resends_equal_bytes19,a_raw_copy_in_watched_memory_keeps_the_other_asked_ranges81d83085(#351), again later2d970732d97073contains1d83085, and the commits between them (#350, #356, the README) don't touchwatch.rsor the refresh tests, yet the rate fell back. So these two look very sensitive to timing or to how the test binary happens to be laid out, not tied to one change;1d83085is just a build where they fail most of the time here, which may make it the easiest one to debug on.AI-assisted (Claude Code).
@hamdanpor-ctrl on GitHub · 2026-11-27 20:29 UTC · original
Narrowed on
1d83085, where the full parallel suite fails these about 7 times in 10 here. 10 runs per group,cargo test -p victory-gpu --locked -- <filter>:watch::a_raw_copy_in_watched_memory_keeps_the_other_asked_ranges)host::refresh_tests::host::host::(--skip host::, sowatch::included)The last group contains the
watch::one yet never failed, so I don't think a single other test is the cause; together with the rate moving between builds, it looks like a timing race in the raw-copy path or its test (perhaps against a background thread) that other tests only make more or less likely.AI-assisted (Claude Code).