mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #249] test: exercise AWC manifest staged cleanup on all hosts #300
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#300
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/249
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9983📝 Commits (1)
6c8151dtest: exercise AWC manifest staged cleanup on all hosts📊 Changes
1 file changed (+11 additions, -8 deletions)
View changed files
📝
tests/test_awc_manifest.py(+11 -8)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116927597
What and why
test_failed_replace_of_read_only_manifest_removes_writable_tempmade the destination read-only before callingwrite_manifest. On macOS the preliminaryos.open(destination, os.O_WRONLY)correctly rejects that destination, so the test failed before it could exercise staged-file cleanup. The test now keeps the destination writable, makes the synthetic staged file read-only inside the failed-replace callback, and verifies the cleanup restores its writable mode, leaves the previous manifest intact, and removes the temporary file. Production code is unchanged.Tested
macOS, Python 3.12, synthetic AWC data only; no GPU or game files:
python3.12 -I tests/test_awc_manifest.py: 1 failure of 22 at the staged cleanup assertion.python3.12 -I tests/test_awc_manifest.py: 22/22 pass.test_file_mode.py5 pass;test_replace_retry.py8 pass/2 expected skips;test_awc_names.py35 pass/1 expected skip;test_awc_shorts.py15 pass/1 expected skip.python3.12 -I scripts/check_no_game_data.py tests/test_awc_manifest.py,python3.12 -m compileall -q tests/test_awc_manifest.py, andgit diff --checkpass.AI-assisted: yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.