Windows 11 26200 + RX 9060 XT: two e2e tests fail; the test title's overlay delete returns ERROR_FILE_NOT_FOUND #500
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#500
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Luislariosss on GitHub · 2026-11-24 01:03 UTC · original
Two
e2etests 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
main2997c9aca, cleangit clone --depth 132.0.32015.7029rust-toolchain.toml(1.98.1), MSVCcargo build --release --workspace: clean, no warnings (Finished release profile [optimized] target(s) in 38.44s).\scripts\test.ps1:exit=101Failure 1: the test title's delete check
That is
tests/testtitle/src/main.rs:509,std::fs::remove_file("G:\\data\\delete_me.txt"), and the error isERROR_FILE_NOT_FOUNDcoming back through the emulatedDeleteFileW. 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:603reachesERROR_FILE_NOT_FOUNDonly when the overlay copy has no metadata andvisible_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
The title starts and stops before finishing. In the same run
mfplatlogsMFResetDXGIDeviceManagerX bridged ResetDevice failed: 0x80070057 (direct was 0x80070057), which may or may not be related.Summary
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: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:
I removed
target/e2e-debug-layerbefore the serial run, and all three pass:What the delete failure really was
[FAIL] files: delete hides the file without touching the original: os error 2is what you get on the second run against a data folder that already holds the whiteout fordata\delete_me.txt:vfs.rs:614reachesERROR_FILE_NOT_FOUNDbecausevisible_in_originalis already false, which is correct behaviour for a file hidden earlier.tests/data/testgame/data/delete_me.txtis 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/dataroot (and the sameXCL.Dataoverlay 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
target), which is the usual shape; or#[serial]or put them in one#[test]that runs the stages in order; orCONTRIBUTING.mdthat--test-threads=1is 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: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_untouchedusesCARGO_TARGET_TMPDIR/e2e(tests/e2e.rs:100) andtest_title_draws_with_a_root_signature_under_the_debug_layerusestarget/e2e-debug-layer(tests/e2e.rs:258). So the race I described cannot happen the way I said.Reproduction attempts, same machine and clone
scripts/test.ps1, first run, right after a release buildcargo test -p xcl --test e2e test_titlecargo test -p xcl --test e2e -- --test-threads=2cargo test -p xcl --test e2e -- --test-threads=1, afterrm -rf target/e2e-debug-layerscripts/test.ps1, second runSo: 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 emptytarget/e2e-debug-layerbut a freshly built tree. Two things in that first run are plausible causes and I cannot separate them without instrumenting:os error 2on 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;Neither is proof. What I would do before changing anything: run
scripts/test.ps1in a loop (say 10×) on a coldtarget/e2e-debug-layerand record how many fail, and add the exit code plus the last lines ofxcl.logto the assertion message intests/e2e.rs:267when 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:10 UTC · original
Counts so far, and the loop continues: ten runs of
scripts/test.ps1, each from an emptytarget/e2e-debug-layer.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 ofxcl.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:17 UTC · original
Final count: 10 of 10 runs green, and I am closing this as not reproducible.
Method: ten runs of
scripts/test.ps1on the same checkout (2997c9aca) and the same machine (RX 9060 XT, Windows 11 26200, driver32.0.32015.7029), each one starting from an emptytarget/e2e-debug-layer.Every run:
677 passed, 0 failed, 41 ignored, notest result: FAILEDanywhere in the log.So the one failure I opened this for -
test_title_runs_and_game_folder_is_untouchedandtest_title_draws_with_a_root_signature_under_the_debug_layerred 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:
xcl.log. If it fires again, the reason will be in the test output.ID3D12Device::CreatePixelShader: Pixel Shader is corruptlines in the debug-layer run are expected: they are the test title's own 56-byte synthetic console container being refused, followed bygraphics PSO rejected by the driver (0x80004005) - fallback shaders used. Not a defect.AI-assisted.