VFS: a copy or move with a bad source fails before staging the overlay #1779
No reviewers
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!1779
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1779"
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 20:36 UTC · original
Luislariosss:vfs-dest-casefold→main· +67 −0 · 1 files · 1 commits · openA copy or a move whose source is missing or is a directory, and a copy of a game file onto itself, staged overlay data before the source was ever looked at:
prepare_copyandmove_file_vfsrandest_offirst, creating the destination's overlay directories, and only then noticed the source was bad.What is in it
missing_source_error: a copy/move source that does not exist fails withERROR_FILE_NOT_FOUNDbeforedest_ofruns (move_file_vfs,prepare_copy).ERROR_ACCESS_DENIED.to_lowercase, so accented case pairs are caught too; a self-copy is handed to Win32 as the same path instead of staging the overlay.copy_and_move_reject_bad_sources_before_staging_the_overlay: self-copy (same path, case-differing, accented), directory source, missing external source for both copy and move — asserting the overlay is untouched in every case.Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2609.5 throughXCL_DXC_DIR;CARGO_PROFILE_TEST_DEBUG=0.cargo test -p xcl --lib vfs_hooksat the head: 11 passed, 0 failed. The new test fails without the fix.cargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4): 876 passed, 0 failed, 38 ignored (20 test binaries;SKIPPED:pso_measurement_compiles_an_exact_synthetic_record— cannot disable the driver cache;heap_window_out_of_memory_falls_back_to_the_switch_form— no heap windows).title:line readsretail-title, the folder name is withheld):main (
85e3826, clean tree):head (
35bd1e6, clean tree):Not tested
xcl.log).AI use
@futurepro62 on GitHub · 2026-11-24 21:26 UTC · original · edited 2026-11-24 21:47 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
35bd1e6(on its base85e3826).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 874 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.copy_and_move_reject_bad_sources_before_staging_the_overlay.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 876 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 23:24 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 03:27 UTC · original
PR #1779 — VFS bad-source copy and move verification
Tested clean detached head
35bd1e6ec29a52ca9e7179d684b3321e510bfa9b. The change invfs_hooks.rschecks for missing external sources and directory copy sources before staging the overlay. Game-file self-copies use the same underlying path for Win32 to reject.Tested
DoublePrecisionFloatShaderOps=0. The D3D12 SDK layers DLL was absent. DXC/DXIL 1.9.2609.5, Rust 1.100.0 (0ef1bc386, 2026-11-09).cargo build --workspaceandcargo test --workspace --no-runsucceeded with debug info and incremental compilation disabled.cargo test -p xcl vfs -- --nocaptureyielded 23 passed, 0 failed, 0 ignored, 0 explicit skips. The newcopy_and_move_reject_bad_sources_before_staging_the_overlaytest passed in both runs. It verified that missing external copies and moves returnERROR_FILE_NOT_FOUND, directory copies returnERROR_ACCESS_DENIED, and identical and case-varied game-file self-copies fail. It checked that the overlay stayed untouched and the original self-copy source files retained their contents.cargo test --workspace --no-fail-fast -- --test-threads=4run under the Arc lock withXCL_ADAPTER=A770exited 101. The 20 result summaries inpr1779-suite.logsum to 858 passed, 18 failed, 42 ignored. Four explicitSKIPPEDlines are included in the harness's pass total and excluded from coverage.Failures and skips
0x80070057), including FP64 cases. Four reported mismatches in fused multiply-add, implicit-LOD sampling, FP16 high-half preservation, and wave64 pixel reductions. The end-to-end title had one failure in its dynamic depth-bias check (RSSetDepthBiasX, #94).0x887A002D), and one for lack of heap windows.Not tested
Retail-title smoke runs on main and PR head, other GPUs or drivers, and the release profile were outside this run.
AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1779-suite.logand published this report.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.