Windows 11 26200 + RX 9060 XT: two e2e tests fail; the test title's overlay delete returns ERROR_FILE_NOT_FOUND #500

Closed
opened 2026-11-26 04:23:40 +00:00 by github-bot · 4 comments
Owner

@⁠Luislariosss on GitHub · 2026-11-24 01:03 UTC · original

Two e2e tests fail on a clean clone on Windows 11 26200 with an AMD RX 9060 XT, and the first one looks like a real bug in the overlay's delete path rather than an environment problem.

Environment

  • main 2997c9aca, clean git clone --depth 1
  • Windows 11 build 26200, AMD Radeon RX 9060 XT (RDNA4, gfx1200), Adrenalin 26.10.1 / Windows driver 32.0.32015.7029
  • Rust toolchain from rust-toolchain.toml (1.98.1), MSVC
  • cargo build --release --workspace: clean, no warnings (Finished release profile [optimized] target(s) in 38.44s)
  • .\scripts\test.ps1: exit=101

Failure 1: the test title's delete check

xcl_testtitle: done, failures: 1
failed checks in the test title:
[FAIL] files: delete hides the file without touching the original: The system cannot find the file specified. (os error 2)

That is tests/testtitle/src/main.rs:509, std::fs::remove_file("G:\\data\\delete_me.txt"), and the error is ERROR_FILE_NOT_FOUND coming back through the emulated DeleteFileW. The checks just above it pass in the same run — write, read, create_dir_all, rename, "rename source still visible", "rename target" — so the overlay is working; only this delete fails.

vfs.rs:603 reaches ERROR_FILE_NOT_FOUND only when the overlay copy has no metadata and visible_in_original(rel) is false. So either the file the test wrote earlier is not visible to that second lookup, or the overlay path recorded for the write differs from the one the delete computes. I have not narrowed down which.

Failure 2: the debug-layer draw test

thread 'test_title_draws_with_a_root_signature_under_the_debug_layer' panicked at crates\xcl\tests\e2e.rs:267:5:
the test title did not run to the end:
XCL 0.1.0 – starting 'XCL.TestTitle'
  ...
  MicrosoftGame.Config: title memory Advanced, PLS 2048 MB
  console: imports kernelx.dll, xgameruntime.dll

The title starts and stops before finishing. In the same run mfplat logs MFResetDXGIDeviceManagerX bridged ResetDevice failed: 0x80070057 (direct was 0x80070057), which may or may not be related.

Summary

test result: FAILED. 1 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 15.35s
    test_title_draws_with_a_root_signature_under_the_debug_layer
    test_title_runs_and_game_folder_is_untouched

The other suites pass. Logs and the report the test title wrote are at target/e2e-debug-layer/data/XCL.TestTitle/logs/{xcl.log,report.json} from that run.

I have no copy of the game, so this is the test title only. Happy to run a narrowed command or a patched branch here and report — the machine is an AMD RDNA4 on Windows, which is the vendor the retail reports come from.

AI-assisted.

**@⁠Luislariosss** on GitHub · 2026-11-24 01:03 UTC · [original](https://github.com/xcl-dev/xcl/issues/500) Two `e2e` tests fail on a clean clone on Windows 11 26200 with an AMD RX 9060 XT, and the first one looks like a real bug in the overlay's delete path rather than an environment problem. ## Environment - `main` `2997c9aca`, clean `git clone --depth 1` - Windows 11 build 26200, AMD Radeon RX 9060 XT (RDNA4, gfx1200), Adrenalin 26.10.1 / Windows driver `32.0.32015.7029` - Rust toolchain from `rust-toolchain.toml` (1.98.1), MSVC - `cargo build --release --workspace`: clean, no warnings (`Finished release profile [optimized] target(s) in 38.44s`) - `.\scripts\test.ps1`: `exit=101` ## Failure 1: the test title's delete check ``` xcl_testtitle: done, failures: 1 failed checks in the test title: [FAIL] files: delete hides the file without touching the original: The system cannot find the file specified. (os error 2) ``` That is `tests/testtitle/src/main.rs:509`, `std::fs::remove_file("G:\\data\\delete_me.txt")`, and the error is `ERROR_FILE_NOT_FOUND` coming back through the emulated `DeleteFileW`. The checks just above it pass in the same run — write, read, `create_dir_all`, `rename`, "rename source still visible", "rename target" — so the overlay is working; only this delete fails. `vfs.rs:603` reaches `ERROR_FILE_NOT_FOUND` only when the overlay copy has no metadata **and** `visible_in_original(rel)` is false. So either the file the test wrote earlier is not visible to that second lookup, or the overlay path recorded for the write differs from the one the delete computes. I have not narrowed down which. ## Failure 2: the debug-layer draw test ``` thread 'test_title_draws_with_a_root_signature_under_the_debug_layer' panicked at crates\xcl\tests\e2e.rs:267:5: the test title did not run to the end: XCL 0.1.0 – starting 'XCL.TestTitle' ... MicrosoftGame.Config: title memory Advanced, PLS 2048 MB console: imports kernelx.dll, xgameruntime.dll ``` The title starts and stops before finishing. In the same run `mfplat` logs `MFResetDXGIDeviceManagerX bridged ResetDevice failed: 0x80070057 (direct was 0x80070057)`, which may or may not be related. ## Summary ``` test result: FAILED. 1 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 15.35s test_title_draws_with_a_root_signature_under_the_debug_layer test_title_runs_and_game_folder_is_untouched ``` The other suites pass. Logs and the report the test title wrote are at `target/e2e-debug-layer/data/XCL.TestTitle/logs/{xcl.log,report.json}` from that run. I have no copy of the game, so this is the test title only. Happy to run a narrowed command or a patched branch here and report — the machine is an AMD RDNA4 on Windows, which is the vendor the retail reports come from. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:23:40 +00:00
Author
Owner

@⁠Luislariosss on GitHub · 2026-11-24 01:04 UTC · original

Update, and it corrects my first guess: the overlay is fine. The e2e tests race each other.

Evidence

Same machine, same clone, same build; only the thread count changes:

cargo test -p xcl --test e2e                      -> FAILED. 1 passed; 2 failed
  test_title_draws_with_a_root_signature_under_the_debug_layer
  test_title_runs_and_game_folder_is_untouched

cargo test -p xcl --test e2e -- --test-threads=1  -> ok. 3 passed; 0 failed  (14.70s)

I removed target/e2e-debug-layer before the serial run, and all three pass:

test launcher_uses_configured_exe_in_an_ambiguous_folder ... ok
test test_title_draws_with_a_root_signature_under_the_debug_layer ... ok
test test_title_runs_and_game_folder_is_untouched ... ok

What the delete failure really was

[FAIL] files: delete hides the file without touching the original: os error 2 is what you get on the second run against a data folder that already holds the whiteout for data\delete_me.txt: vfs.rs:614 reaches ERROR_FILE_NOT_FOUND because visible_in_original is already false, which is correct behaviour for a file hidden earlier. tests/data/testgame/data/delete_me.txt is present in the fixture, so nothing is missing from the repo.

So the two tests are not independent: they use the same target/e2e-debug-layer/data root (and the same XCL.Data overlay underneath), so under the default parallel runner one test deletes the fixture's file and writes the whiteout while the other is still checking it. Whichever loses the race fails, and the failure looks like a vfs bug.

Why it matters

This is timing-dependent, which is why it can pass elsewhere: a report in the other direction (665 passed) is entirely consistent with this. It also means a contributor on a different machine sees a red suite that has nothing to do with their change.

Possible fixes

  1. give each e2e test its own data root (a per-test directory under target), which is the usual shape; or
  2. mark the e2e tests #[serial] or put them in one #[test] that runs the stages in order; or
  3. at minimum, say in CONTRIBUTING.md that --test-threads=1 is required for this test binary.

I can write (1) as a PR here and confirm it on this machine: it would show up as "parallel run green on a 12-thread box", which is the check that fails today.

AI-assisted.

**@⁠Luislariosss** on GitHub · 2026-11-24 01:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/500#issuecomment-7118732497) Update, and it corrects my first guess: the overlay is fine. The e2e tests race each other. ## Evidence Same machine, same clone, same build; only the thread count changes: ``` cargo test -p xcl --test e2e -> FAILED. 1 passed; 2 failed test_title_draws_with_a_root_signature_under_the_debug_layer test_title_runs_and_game_folder_is_untouched cargo test -p xcl --test e2e -- --test-threads=1 -> ok. 3 passed; 0 failed (14.70s) ``` I removed `target/e2e-debug-layer` before the serial run, and all three pass: ``` test launcher_uses_configured_exe_in_an_ambiguous_folder ... ok test test_title_draws_with_a_root_signature_under_the_debug_layer ... ok test test_title_runs_and_game_folder_is_untouched ... ok ``` ## What the delete failure really was `[FAIL] files: delete hides the file without touching the original: os error 2` is what you get on the **second** run against a data folder that already holds the whiteout for `data\delete_me.txt`: `vfs.rs:614` reaches `ERROR_FILE_NOT_FOUND` because `visible_in_original` is already false, which is correct behaviour for a file hidden earlier. `tests/data/testgame/data/delete_me.txt` is present in the fixture, so nothing is missing from the repo. So the two tests are not independent: they use the same `target/e2e-debug-layer/data` root (and the same `XCL.Data` overlay underneath), so under the default parallel runner one test deletes the fixture's file and writes the whiteout while the other is still checking it. Whichever loses the race fails, and the failure looks like a vfs bug. ## Why it matters This is timing-dependent, which is why it can pass elsewhere: a report in the other direction (665 passed) is entirely consistent with this. It also means a contributor on a different machine sees a red suite that has nothing to do with their change. ## Possible fixes 1. give each e2e test its own data root (a per-test directory under `target`), which is the usual shape; or 2. mark the e2e tests `#[serial]` or put them in one `#[test]` that runs the stages in order; or 3. at minimum, say in `CONTRIBUTING.md` that `--test-threads=1` is required for this test binary. I can write (1) as a PR here and confirm it on this machine: it would show up as "parallel run green on a 12-thread box", which is the check that fails today. AI-assisted.
Author
Owner

@⁠Luislariosss on GitHub · 2026-11-24 01:06 UTC · original

Correction: I could not reproduce it, and my "shared data root" explanation was wrong. Sorry for the noise — here is exactly what I measured, so the issue is accurate.

What I got wrong

The two e2e tests do not share a directory: test_title_runs_and_game_folder_is_untouched uses CARGO_TARGET_TMPDIR/e2e (tests/e2e.rs:100) and test_title_draws_with_a_root_signature_under_the_debug_layer uses target/e2e-debug-layer (tests/e2e.rs:258). So the race I described cannot happen the way I said.

Reproduction attempts, same machine and clone

Run Result
scripts/test.ps1, first run, right after a release build FAILED: 1 passed, 2 failed (the report above)
cargo test -p xcl --test e2e test_title ok: 2 passed, 0 failed
cargo test -p xcl --test e2e -- --test-threads=2 ok: 3 passed, 0 failed
cargo test -p xcl --test e2e -- --test-threads=1, after rm -rf target/e2e-debug-layer ok: 3 passed, 0 failed
scripts/test.ps1, second run ok: 677 passed, 0 failed, 41 ignored, exit=0

So: one failure in one run, then five green runs including the exact command that failed.

What I think happened, and what I cannot prove

The first run was the first one ever on this checkout, immediately after cargo build --release --workspace, with an empty target/e2e-debug-layer but a freshly built tree. Two things in that first run are plausible causes and I cannot separate them without instrumenting:

  • the delete check failed with os error 2 on a data folder that was created moments earlier in the same run — consistent with the title racing its own overlay setup rather than with a stale whiteout;
  • the debug-layer test reported "the test title did not run to the end" while the whole workspace's test binaries were running at once, which on this box includes GPU tests.

Neither is proof. What I would do before changing anything: run scripts/test.ps1 in a loop (say 10×) on a cold target/e2e-debug-layer and record how many fail, and add the exit code plus the last lines of xcl.log to the assertion message in tests/e2e.rs:267 when the title does not finish, since today it only prints the launcher's opening lines.

If it stays green over 10 runs I would close this as a first-run artifact; I will report the counts either way.

AI-assisted.

**@⁠Luislariosss** on GitHub · 2026-11-24 01:06 UTC · [original](https://github.com/xcl-dev/xcl/issues/500#issuecomment-7118763151) Correction: **I could not reproduce it**, and my "shared data root" explanation was wrong. Sorry for the noise — here is exactly what I measured, so the issue is accurate. ## What I got wrong The two e2e tests do **not** share a directory: `test_title_runs_and_game_folder_is_untouched` uses `CARGO_TARGET_TMPDIR/e2e` (`tests/e2e.rs:100`) and `test_title_draws_with_a_root_signature_under_the_debug_layer` uses `target/e2e-debug-layer` (`tests/e2e.rs:258`). So the race I described cannot happen the way I said. ## Reproduction attempts, same machine and clone | Run | Result | |---|---| | `scripts/test.ps1`, first run, right after a release build | **FAILED**: 1 passed, 2 failed (the report above) | | `cargo test -p xcl --test e2e test_title` | ok: 2 passed, 0 failed | | `cargo test -p xcl --test e2e -- --test-threads=2` | ok: 3 passed, 0 failed | | `cargo test -p xcl --test e2e -- --test-threads=1`, after `rm -rf target/e2e-debug-layer` | ok: 3 passed, 0 failed | | `scripts/test.ps1`, second run | **ok: 677 passed, 0 failed, 41 ignored, exit=0** | So: one failure in one run, then five green runs including the exact command that failed. ## What I think happened, and what I cannot prove The first run was the first one ever on this checkout, immediately after `cargo build --release --workspace`, with an empty `target/e2e-debug-layer` but a freshly built tree. Two things in that first run are plausible causes and I cannot separate them without instrumenting: - the delete check failed with `os error 2` on a data folder that was created moments earlier in the same run — consistent with the title racing its own overlay setup rather than with a stale whiteout; - the debug-layer test reported "the test title did not run to the end" while the whole workspace's test binaries were running at once, which on this box includes GPU tests. Neither is proof. What I would do before changing anything: run `scripts/test.ps1` in a loop (say 10×) on a cold `target/e2e-debug-layer` and record how many fail, and add the exit code plus the last lines of `xcl.log` to the assertion message in `tests/e2e.rs:267` when the title does not finish, since today it only prints the launcher's opening lines. If it stays green over 10 runs I would close this as a first-run artifact; I will report the counts either way. AI-assisted.
Author
Owner

@⁠Luislariosss on GitHub · 2026-11-24 01:10 UTC · original

Counts so far, and the loop continues: ten runs of scripts/test.ps1, each from an empty target/e2e-debug-layer.

run exit failed blocks failing tests
1 0 0 -
2 0 0 -
3 0 0 -
4 0 0 -

Four of ten, all green, on the same checkout and the same machine (RX 9060 XT, Windows 11 26200, driver 32.0.32015.7029) that produced the one failure I reported. I will post the remaining six when they finish, including the log lines of any failure, since #512 now makes them print the exit code and the tail of xcl.log.

If it stays 10/10 green I will close this as not reproducible rather than keep guessing at a cause. The one real thing that came out of it is #512: the failure message that hid the reason now does not.

AI-assisted.

**@⁠Luislariosss** on GitHub · 2026-11-24 01:10 UTC · [original](https://github.com/xcl-dev/xcl/issues/500#issuecomment-7118837858) Counts so far, and the loop continues: ten runs of `scripts/test.ps1`, each from an empty `target/e2e-debug-layer`. | run | exit | failed blocks | failing tests | |---|---|---|---| | 1 | 0 | 0 | - | | 2 | 0 | 0 | - | | 3 | 0 | 0 | - | | 4 | 0 | 0 | - | Four of ten, all green, on the same checkout and the same machine (RX 9060 XT, Windows 11 26200, driver `32.0.32015.7029`) that produced the one failure I reported. I will post the remaining six when they finish, including the log lines of any failure, since #512 now makes them print the exit code and the tail of `xcl.log`. If it stays 10/10 green I will close this as not reproducible rather than keep guessing at a cause. The one real thing that came out of it is #512: the failure message that hid the reason now does not. AI-assisted.
Author
Owner

@⁠Luislariosss on GitHub · 2026-11-24 01:17 UTC · original

Final count: 10 of 10 runs green, and I am closing this as not reproducible.

Method: ten runs of scripts/test.ps1 on the same checkout (2997c9aca) and the same machine (RX 9060 XT, Windows 11 26200, driver 32.0.32015.7029), each one starting from an empty target/e2e-debug-layer.

run exit failed test-result blocks failing tests
1-10 0 0 -

Every run: 677 passed, 0 failed, 41 ignored, no test result: FAILED anywhere in the log.

So the one failure I opened this for - test_title_runs_and_game_folder_is_untouched and test_title_draws_with_a_root_signature_under_the_debug_layer red on the very first run after a release build - has not recurred in fifteen runs total, and I have no evidence for a cause. Both explanations I offered along the way (the overlay delete, then a shared data root) were wrong, and I said so at the time rather than leaving them standing.

What is worth keeping:

  • #512 makes the next occurrence diagnosable instead of invisible: the assertion now prints the exit code, the launcher's stdout and stderr, and the last 40 lines of xcl.log. If it fires again, the reason will be in the test output.
  • The three ID3D12Device::CreatePixelShader: Pixel Shader is corrupt lines in the debug-layer run are expected: they are the test title's own 56-byte synthetic console container being refused, followed by graphics PSO rejected by the driver (0x80004005) - fallback shaders used. Not a defect.
  • If someone sees this on a cold tree, the cheapest discriminator is a second run: if it goes green, it is first-run-only, and #512 will say why next time.

AI-assisted.

**@⁠Luislariosss** on GitHub · 2026-11-24 01:17 UTC · [original](https://github.com/xcl-dev/xcl/issues/500#issuecomment-7118945606) Final count: **10 of 10 runs green**, and I am closing this as not reproducible. Method: ten runs of `scripts/test.ps1` on the same checkout (`2997c9aca`) and the same machine (RX 9060 XT, Windows 11 26200, driver `32.0.32015.7029`), each one starting from an empty `target/e2e-debug-layer`. | run | exit | failed test-result blocks | failing tests | |---|---|---|---| | 1-10 | 0 | 0 | - | Every run: `677 passed, 0 failed, 41 ignored`, no `test result: FAILED` anywhere in the log. So the one failure I opened this for - `test_title_runs_and_game_folder_is_untouched` and `test_title_draws_with_a_root_signature_under_the_debug_layer` red on the very first run after a release build - has not recurred in fifteen runs total, and I have no evidence for a cause. Both explanations I offered along the way (the overlay delete, then a shared data root) were wrong, and I said so at the time rather than leaving them standing. What is worth keeping: - **#512** makes the next occurrence diagnosable instead of invisible: the assertion now prints the exit code, the launcher's stdout and stderr, and the last 40 lines of `xcl.log`. If it fires again, the reason will be in the test output. - The three `ID3D12Device::CreatePixelShader: Pixel Shader is corrupt` lines in the debug-layer run are expected: they are the test title's own 56-byte synthetic console container being refused, followed by `graphics PSO rejected by the driver (0x80004005) - fallback shaders used`. Not a defect. - If someone sees this on a cold tree, the cheapest discriminator is a second run: if it goes green, it is first-run-only, and #512 will say why next time. AI-assisted.
This discussion has been locked. Commenting is limited to contributors.
No description provided.