Tests: skip sparse reinit when no sparse state exists #2758
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!2758
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2758"
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?
@luckyteagirl on GitHub · 2026-11-26 10:18 UTC · original
luckyteagirl:codex/test-sparse-reinit-guard→main· +3 −3 · 1 files · 1 commits · draftThe sparse reinitialization fixture used a coherent UMA GPU address as proof that sparse windows existed. A coherent buffer can be imported without a sparse state, leaving the fixture to panic on
sparse::allocbefore it checks the #344 reinitialization behavior. This test-only change checks the sparse queue directly.What is in it
crates/xcl/tests/sparse_reinit.rs: skip explicitly when no sparse queue was initialized; otherwise keep the existing sparse allocation and reinitialization assertions.Tested
cargo +stable build --workspace --locked: passed.XCL_ADAPTER=RX 6800MandXCL_REQUIRE_GPU=wave64,cargo +stable test --locked -p xcl --test sparse_reinit -- --exact the_sparse_state_is_replaced_outside_its_lock --test-threads=4 --nocapture: 1 passed, 0 failed, 0 ignored, 0 skipped; three sparse windows were created and re-created.SKIPPED ...: no sparse GPU UMA, 0 exercised, 0 failed, 0 ignored.expect("a sparse block")(0 passed, 1 failed); the new guard explicitly skipped (0 exercised, 1 skip, 0 failed).cargo test --workspace -- --test-threads=4was attempted ascargo +stable test --workspace --locked -- --test-threads=4on the RX 6800M. It exited0xc0000005in the first library binary after 83 logged passes and 1 ignored, with no final library summary or later target results. A separate clean-main serial run reproduced an access violation atraw_loads_in_root_windows_respect_exec_and_bounds; the exact four-thread crashing test is unproven.git diff --checkpassed; only the fixture file changed.Not tested
AI use
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.