Tests: preserve coverage for legacy directory whiteouts #1076

Open
github-bot wants to merge 1 commit from github-bot/gh-1076 into main AGit
Owner

@⁠anakatt on GitHub · 2026-11-24 11:21 UTC · original
anakatt:tests/legacy-directory-whiteouts → main · +4 −5 · 1 files · 1 commits · open

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.
**@⁠anakatt** on GitHub · 2026-11-24 11:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1076) `anakatt:tests/legacy-directory-whiteouts` → `main` · +4 −5 · 1 files · 1 commits · open 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.
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 #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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:42:38 +00:00
Author
Owner

@⁠mynzjerko on GitHub · 2026-11-24 11:53 UTC · original

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.
**@⁠mynzjerko** on GitHub · 2026-11-24 11:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/1076#issuecomment-7130693194) 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.
Author
Owner

@⁠Toons29 on GitHub · 2026-11-25 03:11 UTC · original

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.

**@⁠Toons29** on GitHub · 2026-11-25 03:11 UTC · [original](https://github.com/xcl-dev/xcl/pull/1076#issuecomment-7151678115) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 08:51 UTC · original

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!

**@⁠DavidM1911** on GitHub · 2026-11-25 08:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/1076#issuecomment-7157556897) 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!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1076/head:github-bot/gh-1076'
git switch 'github-bot/gh-1076'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1076'
git switch 'github-bot/gh-1076'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1076'
git switch 'github-bot/gh-1076'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1076'
git switch 'main'
git merge --squash 'github-bot/gh-1076'
git switch 'main'
git merge --ff-only 'github-bot/gh-1076'
git switch 'main'
git merge 'github-bot/gh-1076'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.