Tests: skip sparse reinit when no sparse state exists #2748
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T10:18:58Z.
The 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
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:33:48Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:53:37Z.
Triage (#1607) – head
1d0f954No open or merged PR makes the same change. On main,
sparse::queue()is set only bysparse::init(when the sparse state is installed), so skipping onqueue().is_none()checks for exactly what the test then uses (sparse::alloc), anduma_gpu_va() != 0did not guarantee it. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.