Tests: preserve coverage for legacy directory whiteouts #1067

Open
anakatt wants to merge 1 commit from upstream-pr/1076 into main
anakatt commented 2026-11-24 11:21:22 +00:00 (Migrated from github.com)

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.
  • No runtime behavior changes. This is a test-only follow-up to #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.
<!-- greyfinch-sync:ivall/xcl:issue:5471169374 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1076). Originally posted by [anakatt](https://github.com/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. - No runtime behavior changes. This is a test-only follow-up to #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.
mynzjerko commented 2026-11-24 12:05:52 +00:00 (Migrated from github.com)

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

  • 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.
<!-- greyfinch-sync:ivall/xcl:comment:7130693194 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1076#issuecomment-7130693194). Originally posted by [mynzjerko](https://github.com/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** - 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 commented 2026-11-25 04:10:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:11:28Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7151678115 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1076#issuecomment-7151678115). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T03:11:28Z. --- 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.
DavidM1911 commented 2026-11-25 09:08:21 +00:00 (Migrated from github.com)

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!

<!-- greyfinch-sync:ivall/xcl:comment:7157556897 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1076#issuecomment-7157556897). Originally posted by [DavidM1911](https://github.com/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!
github-actions[bot] commented 2026-11-29 07:40:50 +00:00 (Migrated from github.com)

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 stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252623129 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1076#issuecomment-7252623129). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:40:50Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:46:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:46:04Z.


Triage (#1607) – head 7720f9e

No 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.

<!-- greyfinch-sync:ivall/xcl:comment:7301078470 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1076#issuecomment-7301078470). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:46:04Z. --- **Triage (#1607)** – head 7720f9e No 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1076:upstream-pr/1076'
git switch 'upstream-pr/1076'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1076'
git switch 'upstream-pr/1076'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1076'
git switch 'upstream-pr/1076'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1076'
git switch 'main'
git merge --squash 'upstream-pr/1076'
git switch 'main'
git merge --ff-only 'upstream-pr/1076'
git switch 'main'
git merge 'upstream-pr/1076'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1067
No description provided.