Tests: the view-guard tests' views are forgotten by the journal too, and holes in title memory are tested #1006
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1008"
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 fxceless/victory-fork. Originally posted by cmt8 on 2026-11-25T15:56:34Z.
Test code only. No production code changes, and no test is weakened, removed or ignored.
What breaks today
watch::tests::written_pages_are_reported_to_every_askerfails now and then withassertion failed: before.is_empty(): fresh write-watched memory reports pages already written. The journal of written pages is kept by page address for the whole process. The view-guard tests (two_views/drop_views) note their pages written and unmap the views, telling the guards (title_memory_remapped) but not the journal. A test that gets one of those addresses next finds them written. #963 and #769 fix a different race in the same tests (the order oftitle_memory_remappedand the unmap). This one remains with #963 applied.The change
drop_viewsalso drops the journal's pages of the views it unmaps, through a test-onlyforget. Ported from our 57b91aeb and afe67caa.mapped_tests.rs, from our f6e8bcd6. Each maps a section's pages into a placeholder with a hole (a placeholder page, a page unmapped again, reserved or no-access pages). They check thathost::read_intofails, thattexture::committeddoes not count the memory as mapped, and thatcopy_mappedreads zeros only in the hole. Wine handles placeholders and kernel copies its own way, and a hole read as zeros would let a streaming texture be taken as whole. No production code changes. They pass under Wine.Evidence
The victory-gpu test binary, cross-built on Linux, run under Wine 11.22. Four groups that fail under Wine for other reasons were skipped (
drvwatch,indirect::,pipeline::library, the depth-plane twin). Runs that failed:0b0074e0written_pages_are_reported_to_every_asker×2,writes_in_partly_committed_view_blocks_are_reported×1)0b0074e0+ #963written_pages_are_reported_to_every_asker×2,before.is_empty())An earlier 100 runs each of
0b0074e0and this branch gave 2 failures each, one of themwritten_pages_...on this branch. The flake is rare and these counts are small, so this change makes the journal failure less likely but does not clearly remove it. #963's reorder and this change together gave the only clean 200 runs of the base.Full
wine-testrun (the xtask from Marvisak/VIctory #1218, not part of this PR) with Proton Experimental's vkd3d-proton on an RX 7900 XTX: victory-gpu 165 passed, 8 failed. The same 8 fail on0b0074e0, and the three new tests pass.Not verified
Related
title_memory_remappedin three watch tests. We carry the same reorder (our afe67caa) and left it out here so as not to duplicate them. This PR combines with either.AI-assisted (Claude Code); no game data.
Pull request closed