Skip to content

Tests: preserve coverage for legacy directory whiteouts - #1076

Open
anakatt wants to merge 1 commit into
xcl-dev:mainfrom
anakatt:tests/legacy-directory-whiteouts
Open

anakatt wants to merge 1 commit into
xcl-dev:mainfrom
anakatt:tests/legacy-directory-whiteouts

Conversation

@anakatt

@anakatt anakatt commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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.
  • No runtime behavior changes. This is a test-only follow-up to VFS: reject removal of non-empty virtual directories #1016.

Tested

  • Windows 11 Pro ARM64 10.0.26100.1742 in UTM (4 GiB VM RAM, Red Hat VirtIO GPU DOD), running x64 binaries through Windows emulation; rustc 1.100.0 x86_64-pc-windows-msvc, Windows SDK 26100. Debug build with CARGO_PROFILE_DEV_DEBUG=0, CARGO_PROFILE_TEST_DEBUG=0, CARGO_BUILD_JOBS=1. No GPU tests selected.
  • Exact source archive 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

  • Not run. This diff changes only a test fixture in #[cfg(test)]; please apply the test-only label after reviewing it.

Not tested

  • Full Windows/GPU suite, native x64 hardware and retail titles. The focused run used Windows x64 emulation in an ARM64 VM.

AI use

  • I used omp (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.

Older runs could persist a parent whiteout without hiding each child
individually. Restore that fixture so directory recreation still covers
pushing the parent's whiteout down to its original children.

Follow-up to the review of xcl-dev#1016. No runtime behavior change.
Windows tests not run: the available VM has no configured build tools.

Assisted-by: omp (openai-codex/gpt-6-astra)
@anakatt anakatt closed this Nov 24, 2026
@anakatt anakatt reopened this Nov 24, 2026
@anakatt
anakatt marked this pull request as ready for review November 24, 2026 11:25
@mynzjerko

Copy link
Copy Markdown

Tested on native Windows (MSVC): the updated VFS directory whiteout test and the full workspace suite passed.

Tested

  • Commit: 7720f9eb003c46d6932a47bab50b4b44f019d889
  • Hardware / OS: AMD Radeon RX 9070 (RDNA4, native wave64, driver 32.0.32029.2010), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300, rustc 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17, debug build
  • cargo build --workspace: ok
  • cargo test -p xcl --lib -- vfs::tests vfs_hooks::tests --nocapture --test-threads=1: 22 passed, 0 failed, 0 ignored (including vfs::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; SKIPPED GPU tests: 0)

Not tested

  • Linux / Wine, release build, retail titles (scripts/smoke.ps1)

AI use

  • Google Antigravity (Gemini 4 Neon) checked out the PR, ran the builds and tests locally, and drafted this report; I verified the results before posting.

@Toons29

Toons29 commented Nov 25, 2026

Copy link
Copy Markdown

Regression run of 7720f9eb on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 4178e888, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: 7720f9eb003c46d6932a47bab50b4b44f019d889
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1617 (PresentX 1617)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14810 MB

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants