Tests: pin VFS overlay / whiteout / open-decision contracts #2425
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!2425
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2425"
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?
@amazedturnip on GitHub · 2026-11-25 18:31 UTC · original
amazedturnip:xcl/tests-vfs-overlay-whiteout-and-open-decision-con-004259→main· +247 −0 · 1 files · 1 commits · openAdds 8 integration tests (crates/xcl/tests/vfs_overlay_contract.rs) pinning the VFS overlay/whiteout/open-decision contract through the public API: copy-on-write content, persistent whiteouts across Vfs::new, create_dir/remove_dir error cases, needs_merge/has_whiteouts_under, mangled GAME:-prefix classify, stage_write/commit_write/prepare_write(keep_content=true), and read_path_rel precedence. No production code changed.
What is in it
Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=1— 1266 passed, 2 failed, 26 ignored (SKIPPED GPU tests: 1 (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)); pre-existing upstream/main failures excluded: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier)Not tested
AI use
@fromthemoonx on GitHub · 2026-11-25 19:13 UTC · original
Passes on NVIDIA (wave32); each of three deliberate breaks in
vfs.rsis caught by the new tests, and also by the existingvfs::tests.Tested: the head
d55ed48(its tree is identical to the one I ran:9a4d0e8merged ontomain2898511), and9a4d0e8itself. RTX 3060 12 GB (driver 610.88, wave32), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug.cargo test --workspace --no-fail-fast -- --test-threads=4,d55ed48's treeSKIPPEDlines (no wave64, refused per-lane forms)9a4d0e8(before the rebase)a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier, from the old base, fixed onmainbyc828d8c(#2420); not this PRcargo test -p xcl --test vfs_overlay_contract, 3 runsDeliberate breaks in
crates/xcl/src/vfs.rs(scratch, on9a4d0e8; the file is unchanged ind55ed48):persist_whiteoutswrites nothing:delete_file_records_persistent_whiteoutfails;vfs::testsalso fails 3 (delete_is_a_persistent_whiteout,directories,recreating_removed_directory_does_not_resurrect_original_children).check_original_dir_emptyalwaysOk:remove_dir_with_unwhited_child_errors_dir_not_emptyfails;vfs::testsalso fails 3 (remove_dir_checks_both_layers_before_removing_overlay,directories,remove_dir_rejects_visible_subdirectories).prepare_writeignoreskeep_content:stage_and_commit_write_keep_overlay_contentandopen_decision_never_writes_the_original_folderfail;vfs::tests::reads_never_touch_and_writes_copy_on_writealso fails.So the new tests work, but for these three behaviours the inline tests in
vfs.rsalready catch the same breaks.Not tested: a release build, a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests and the scratch breaks, and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 19:50 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
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.