Repository navigation
XGameSave: test the copy fallback without an NTFS volume - #2674
SinisterRob wants to merge 1 commit into
Conversation
|
Independent verification of #2674 (XGameSave: copy-fallback test without an NTFS volume) PR head Environment: Windows 11 Pro 10.0.26200, rustc 1.98.1, CPU only, Tests/clippy vs baseline. Diff review. Production behaviour is unchanged: Negative control (scratch, not committed). Changing the production line to Findings: no bugs. Nit: the test no longer runs the real Limits: no non-NTFS volume was available, so a real FAT/exFAT path was not run; the injected error stands in for it. No game files. AI-assisted: independent verification by Claude Code / Claude Sonnet 5.5, run on behalf of oni-swr. Claims for #1633. |
|
Injecting the link operation is the right fix - the test now exercises the fallback deterministically instead of depending on NTFS's 1024-link ceiling, and it works on filesystems without a hard-link limit (ext4/Wine). Dropping the cfg(windows) gate is a bonus. Verified: production still passes std::fs::hard_link, and the test asserts the kept blob's bytes survive via the copy path. |
|
Independent Windows 11 verification and review of Verification (
|
|
Linux / Wine run (no NTFS), head Setup: Linux (Gentoo) / wine-proton 11.0.3 / vkd3d-proton 3.1, RTX 5080, NVIDIA 620.73.04; cross-built with cargo-xwin for
Not run: Windows/NTFS (others above have covered it), clippy. AI-assisted (Claude Code) |
|
Automated triage for the maintainers. This splits This is a recommendation for a maintainer to look, not an approval. Generated by Claude Code |
The kept-blob regression currently makes 1,024 hard links and expects the last one to fail. Under Wine on ext4 the filesystem accepts it, so the test fails before checking the save.
Pass a link function into the version writer. Production supplies the filesystem hard-link call. The regression supplies a link operation that returns
TooManyLinksfor the kept blob, then checks the committed version still contains that blob's original bytes alongside the updated blob.Tested on Wine 11.22 on ext4. The original test failed because the extra link succeeded. The revised test passes, along with the save interruption and recovery tests. Separate Winsock test behavior on Wine is tracked in #2249. No game data. AI-assisted.