Tests: wait for every quarantine mark before draining sparse tiles #2775
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2775
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2775"
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?
@sage-sage on GitHub · 2026-11-26 11:48 UTC · original
sage-sage:tests/sparse-quarantine-wait→main· +16 −0 · 1 files · 1 commits · openTwo sparse tests fail now and then in parallel runs of the lib tests:
a_tile_decommitted_and_committed_again_keeps_its_video_memoryfails atassert!(s.drain_quarantined()).flush_parked_does_not_free_or_reuse_tiles_while_unmap_is_in_flightfails with "completed unmap batch should drain after fence completion".The tests wait for the sparse queue's fence and then expect the quarantined tiles to drain. But
quarantine_tilesalso puts a mark on every queue inpresent::known_queues, and that list keeps every queue that ever went throughnote_execute, including queues of other tests that can still have work in flight. So a batch can rightly stay quarantined after the sparse queue is done. The runtime is right to wait. Now the tests wait too, for every mark of the quarantined batches (at most 30 s), before they check. Test-only change.What is in it
crates/xcl/src/hle/d3d12x/sparse.rs(tests only): await_for_quarantinehelper, called afters.wait_for(s.value)in the three places that then expect the batches to drain.Tested
b49be18.cargo test --workspace -- --test-threads=4: 1435 passed, 0 failed, 47 ignored, 29 SKIPPED lines, the same asmainon this machine (wave64, debug layer, Developer Mode, heap windows).--test-threads=12,main's sparse code (main, ormainplus an unrelated test-only fix in another file):a_dispatch_with_a_pipeline_still_building_waits_at_the_submit,placed_title_textures_share_vram_and_preserve_pixelsandwrites_land_after_the_queueflakes.Regression run
#[cfg(test)] mod testsinsparse.rschanges).Not tested
quarantine_tiles_for). It still marks every queue fromknown_queues, so this helper should still apply there, but I have not tested the two together.AI use
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.