tests: block destination path in rpf9dump write-failure exit-code tests (TEST-RPF9DUMP-WRITE-BLOCKER) #655
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!655
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/655/head"
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?
@kirigayakazima on GitHub · 2026-11-24 11:03 UTC · original
kirigayakazima:fix/rpf9dump-write-blocker-tests→main· +8 −4 · 1 files · 1 commits · merged 2026-11-24 13:09 UTCClaimed in the coordination issue as: TEST-RPF9DUMP-WRITE-BLOCKER (#14)
What and why
Fixes 2 tests in
tests/test_rpf9dump_exit_codes.pythat currently fail onmain(21625bca):test_failed_xma_write_exits_nonzero_and_rerun_completestest_failed_texture_write_exits_nonzero_and_withholds_manifestCommit
b05999eb(origin PR 8969) changedUtil.WriteAtomicintools/rpf9dump/Util.csto stage writes toUtil.PartialName(path)(<path>.<pid>.<tid>.<guid>.partial) instead of<path>.partial. Because the destination is no longer blocked by a<target>.partialdirectory, both tests exited0on unmodifiedmain.Following
tests/test_ttpf_export_resume.py:69, block the destination path itself with a directory (whereFile.ExistsisfalseandUtil.MoveReplacefails), verify no leaked*.partialtemp files remain, and confirm retry succeeds once the directory blocker is removed.Tested
On Windows 11 x64 (
.NET 8.0.401,Python 3.14.7) at68fd157f54892629049f205093383cf27df1e077, synthetic archives only (no game data):upstream/main(21625bca):python -I tests/test_rpf9dump_exit_codes.pyfailed 2/8 (the two write-blocker tests above exited 0)dotnet build tools/rpf9dump/rpf9dump.csproj -c Release— 0 warnings, 0 errorsRPF9DUMP_DLL=... python -I tests/test_rpf9dump_exit_codes.py— 8 ran, OKpython -I tests/test_ci_registration.py— 15 ran, OKpython -I tests/test_text_write_line_endings.py— 3 ran, OKpython -I tests/test_check_no_game_data.py&python -I scripts/check_no_game_data.py— OK / exit 0python -m compileall -q tests/test_rpf9dump_exit_codes.py— exit 0GPUs tested: n/a
AI-assisted: yes
Checklist
main(21625bca) and merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — tests only)