Retry the raw-copy watch test when another test remaps (#354) #443
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!443
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-443"
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?
@Kal0s-design on GitHub · 2026-11-29 13:29 UTC · original
Kal0s-design:fix/raw-copy-test-retries-on-remap→review/local-integration-20261129· +23 −12 · 1 files · 1 commits · closed without mergingTargets #439's branch. Refs #354.
Even with #393's stale-VIEWS fix in,
host::refresh_tests::raw_title_copy_keeps_write_watch_and_resends_equal_bytesstill fails under parallel load. Four processes each ranhost::refresh_tests watch:: --test-threads=825 times oncfd5ebd: 9 of 100 runs failed, all atafter.expect("the copy preserves the query").Cause: after a raw copy,
Journal::coverskeeps the query only whileahead_mapping == changes(), andchanges()is global. Other fixtures (title(), the watch tests) remap unrelated title pages at any moment, so a remap anywhere in that window ends the query. That's the runtime being conservative, which is fine. The test just assumed nothing else remaps.Fix (test only): note
changes()before the round. Ifasked()comes backNoneandchanges()moved, run the round again, up to 100 times. If the mapping didn't move, the old assertions apply unchanged, so a real loss of the query still fails.Same stress after the change: 0 of 100 for this test. A temporary counter showed 9 runs needing a second try (5 needed 2 attempts, 2 needed 3, one 4, one 5). That matches the 9 failures before, which supports the cause.
One unrelated flake showed up in those 100 runs:
watch::many_askers_tests::no_mapping_is_lost_between_askers. Correction: I first wrote that it failed at "the bits answered none". It didn't. It fails at the finalassert!(super::published(at, end)), about once in 250 to 300 stressed runs. The cause is in a separate PR (see the comment below).cargo test -p victory-gpu --lib raw_title_copypasses. Clippy on this branch shows only the errors #442 fixes.AI-assisted: yes
🤖 Generated with Claude Code
@TaynanGT on GitHub · 2026-11-29 14:39 UTC · original
I integrated this locally as
349e595d7with your authorship preserved. All three targeted raw_title_copy tests passed on Windows. Thanks for keeping the retry bounded and leaving the unchanged-mapping assertion intact. I have not yet reproduced your 100-run stress matrix on the consolidated tree.@Kal0s-design on GitHub · 2026-11-29 16:45 UTC · original
The askers flake mentioned above has its own PR now: #449. It was the final
publishedassertion, not "the bits answered none". The PR text here is corrected.@TaynanGT on GitHub · 2026-11-29 19:02 UTC · original
Thanks for the correction and the separate #449. Keeping the final published assertion distinct from the raw-copy retry is important. I'll evaluate that fixture fix separately rather than broaden this PR.
@TaynanGT on GitHub · 2026-11-30 17:06 UTC · original
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed