mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #906] NAVMESH-TILE-STAGE-CLEANUP: harden staged OBJ output and cleanup #943
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#943
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/906
Author: @fitzypopper
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:navmesh-tile-stage-cleanup📝 Commits (1)
d4019e4navmesh_tile_obj: harden staged output cleanup (NAVMESH-TILE-STAGE-CLEANUP)📊 Changes
2 files changed (+54 additions, -1 deletions)
View changed files
➕
tests/test_navmesh_tile_stage_cleanup.py(+43 -0)📝
tools/navmesh_tile_obj.py(+11 -1)📄 Description
Claimed in the coordination issue as:
NAVMESH-TILE-STAGE-CLEANUP(claim comment).tools/navmesh_tile_obj.pywrote its staged OBJ withNamedTemporaryFile's mode and, on a failedos.replace, deleted the staged file infinallywithout making it writable first. On Windows a staged file carrying a read-only destination's mode cannot be unlinked, so the cleanup error masks the realERROR:line. This publishes the staged file withpublished_mode(out)and, on failure, chmods it to0o600before unlinking, with both cleanup failures suppressed so the original error survives.New
tests/test_navmesh_tile_stage_cleanup.pypatchesos.replaceto fail and asserts the staged file is made writable, removed, and the previous output is left intact. Verified red onorigin/mainand green with this change.No game data: synthetic navmesh archive only.
python3 -I scripts/check_no_game_data.pypasses; line-ending test passes.AI-assisted: yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.