mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:35:52 +01:00
[PR #465] [MERGED] shader_library: reject --save paths that overlap extraction outputs #515
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#515
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/465
Author: @EdenBendheim
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:ubiq/shader-library-save-overlap📝 Commits (1)
0db11deReject shader library save paths that overlap extraction outputs📊 Changes
2 files changed (+187 additions, -24 deletions)
View changed files
📝
tests/test_shader_library.py(+130 -4)📝
tools/shader_library.py(+57 -20)📄 Description
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123317138
What changed
tools/shader_library.py: Validate--savewithsame_report_pathagainst all requested--outoutputs (index.json,library.json, selectedfspx/.code/.json/.stateincluding stale-state cleanup paths, matched.dxbc, eligibledisasm/.s, output directories, and ancestors of--out) before creating directories or writing either output. Overlapping paths exit2leaving existing files untouched; non-overlapping--saveinside a fresh--outtree succeeds because extraction directories are created before opening--save.tests/test_shader_library.py: Synthetic tests covering fresh/existing outputs, path aliases (relative, case-only, symlink, hardlink), ancestor-directory collisions, nested fresh-tree saves, and separate destinations.Testing & Disclosure
gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).ubiquitarianism/leonidamain(8f481cf16): alltest_shader_library*.pyandtest_*report_paths.pysuites (76/76),compileall,check_no_game_data.py, LF check — all passed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.