Tests: preserve coverage for legacy directory whiteouts #1067
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1076"
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 anakatt on 2026-11-24T11:21:22Z.
I restored the legacy-whiteout case identified in the review of #1016.
Older XCL versions could hide a non-empty directory with one parent whiteout. The updated test deleted each child first, so it no longer exercised that saved state.
What is in it
crates/xcl/src/vfs.rs: create a legacy parent-only whiteout in the existing recreation test and keep the checks that original children stay hidden, including after reload.Tested
x86_64-pc-windows-msvc, Windows SDK 26100. Debug build withCARGO_PROFILE_DEV_DEBUG=0,CARGO_PROFILE_TEST_DEBUG=0,CARGO_BUILD_JOBS=1. No GPU tests selected.7720f9eb003c46d6932a47bab50b4b44f019d889:cargo test --locked -p xcl --lib vfs -- --test-threads=4: 22 passed, 0 failed, 0 ignored, 697 filtered out; no SKIPPED lines. This includes the legacy directory-recreation regression.Regression run
#[cfg(test)]; please apply thetest-onlylabel after reviewing it.Not tested
AI use
openai-codex/gpt-6-astra) to investigate the review feedback, update the test, configure the VM build tools, run the focused Windows tests, and prepare this description.Imported from ivall/xcl. Originally posted by mynzjerko on 2026-11-24T11:53:56Z.
Tested on native Windows (MSVC): the updated VFS directory whiteout test and the full workspace suite passed.
Tested
7720f9eb003c46d6932a47bab50b4b44f019d88932.0.32029.2010), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300,rustc 1.100.0(stable-x86_64-pc-windows-msvc), DXC1.9.2602.17, debug buildcargo build --workspace: okcargo test -p xcl --lib -- vfs::tests vfs_hooks::tests --nocapture --test-threads=1: 22 passed, 0 failed, 0 ignored (includingvfs::tests::recreating_removed_directory_does_not_resurrect_original_children)cargo test --workspace -- --test-threads=4: 741 passed, 0 failed, 41 ignored (xcl --lib: 698 passed, 0 failed, 21 ignored;SKIPPEDGPU tests: 0)Not tested
scripts/smoke.ps1)AI use
Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:11:28Z.
Regression run of
7720f9ebon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 100 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:51:23Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:40:50Z.
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-01T04:46:04Z.
Triage (#1607) – head
7720f9eNo open or merged PR makes the same change. On main, recreating_removed_directory_does_not_resurrect_original_children still deletes each child before remove_dir("data"), so it does not cover a legacy parent-only whiteout; this PR restores that case.
Minor: in vfs.rs tests,
v.record_write("data")only logs and adds to the redirected-writes list. The test does not need it.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.