mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #655] [MERGED] tests: block destination path in rpf9dump write-failure exit-code tests (TEST-RPF9DUMP-WRITE-BLOCKER) #696
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#696
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/655
Author: @kirigayakazima
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:fix/rpf9dump-write-blocker-tests📝 Commits (1)
68fd157tests: block destination path in rpf9dump write-failure exit-code tests (TEST-RPF9DUMP-WRITE-BLOCKER)📊 Changes
1 file changed (+8 additions, -4 deletions)
View changed files
📝
tests/test_rpf9dump_exit_codes.py(+8 -4)📄 Description
Claimed in the coordination issue as: TEST-RPF9DUMP-WRITE-BLOCKER (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129571335)
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)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.