mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:30:53 +01:00
[PR #924] SPIRV-STUBS-STAGE-CLEANUP: publish staged mode and harden cleanup #962
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#962
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/924
Author: @fitzypopper
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:spirv-stubs-stage-cleanup📝 Commits (1)
04f3574spirv_stubs: publish staged mode and harden cleanup (SPIRV-STUBS-STAGE-CLEANUP)📊 Changes
2 files changed (+54 additions, -8 deletions)
View changed files
➕
tests/test_spirv_stubs_stage_cleanup.py(+45 -0)📝
tools/spirv_stubs.py(+9 -8)📄 Description
Claimed in the coordination issue as:
SPIRV-STUBS-STAGE-CLEANUP(claim comment).tools/spirv_stubs.pycopied the target's mode only on POSIX (shutil.copymode), so staged stubs published on Windows lost the destination's permission bits. Its failure path also removed the staged file without making it writable first, which can mask the original error when the staged file carries a read-only mode. This usespublished_mode(target)on every OS and, on failure, chmods the staged file to0o600before removing it, with cleanup errors suppressed.New
tests/test_spirv_stubs_stage_cleanup.pysimulates a Windows publication to check the mode is applied, and patches_replace_stubto fail to check the staged file is made writable and removed. Both fail onorigin/mainand pass with this change. The existing 15test_spirv_stubs.pytests still pass.No game data: synthetic index only.
check_no_game_data.pyand the line-ending test pass.AI-assisted: yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.