[PR #1254] [CLOSED] spirv_asm: refuse an output that aliases the source (OLD-10025) #1285

Closed
opened 2026-11-26 20:20:44 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1254
Author: @wetw0rks-c0ding
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: restore/old-10025-spirv-asm-alias


📄 Description

Claimed in the coordination issue as: OLD-10025

What and why

tools/spirv_asm.py would overwrite its input file if the requested output aliased the source, destroying the assembly input. It now refuses such an output and a regression test pins the behaviour.

Tested

  • python3 -m unittest tests/test_spirv_asm.py -> Ran 38 tests, OK (exit 0)
  • python -I scripts/check_no_game_data.py tools/spirv_asm.py tests/test_spirv_asm.py -> clean (exit 0)
  • Environment: Linux (CachyOS), CPU-only tests, no GPU required

AI-assisted: Yes. This work was done with OpenCode agents.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1254 **Author:** [@wetw0rks-c0ding](https://github.com/wetw0rks-c0ding) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `restore/old-10025-spirv-asm-alias` --- ### 📄 Description Claimed in the coordination issue as: OLD-10025 ### What and why `tools/spirv_asm.py` would overwrite its input file if the requested output aliased the source, destroying the assembly input. It now refuses such an output and a regression test pins the behaviour. ### Tested - `python3 -m unittest tests/test_spirv_asm.py` -> Ran 38 tests, OK (exit 0) - `python -I scripts/check_no_game_data.py tools/spirv_asm.py tests/test_spirv_asm.py` -> clean (exit 0) - Environment: Linux (CachyOS), CPU-only tests, no GPU required AI-assisted: Yes. This work was done with OpenCode agents. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:44 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1285
No description provided.