mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:25:52 +01:00
[PR #909] SPIRV-TOOL-TREE-CLEANUP: rdna2spirv, make_game: terminate spirv-as/val children on abort and sweep stale .spirv-*.tmp #947
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#947
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/909
Author: @markankamaransheogarat-sys
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:ubiq/spirv-tool-tree-cleanup📝 Commits (2)
f6230a5rdna2spirv, make_game: terminate spirv-as/val children on abort and sweep stale .spirv-*.tmp317b04frdna2spirv: preserve subprocess.run patchability and forward timeout/env in _run_tool📊 Changes
3 files changed (+175 additions, -2 deletions)
View changed files
📝
make_game.py(+17 -0)📝
tests/test_make_game_translate_cleanup.py(+95 -0)📝
tools/rdna2spirv.py(+63 -2)📄 Description
Summary
subprocess.runin_run_spirv_tool()with_run_tool()usingPopen+terminate()/kill()onBaseException(SIGINT/SIGTERM) so orphanedspirv-as/spirv-valchildren are cleaned up.SIGTERMhandler inrdna2spirv.main()and sweep leftover.spirv-*.tmpstaging files onmake_game.translate()abort and afterrdna2spirvmerge/single-run completion.Verification
python3 -I tests/test_make_game_translate_cleanup.py: 7/7 passed.AI-assisted: yes (synthetic tests only, no game files).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.