mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #2287] tools/shader_stage_manifest.py: case-insensitive suffix and conflicting stage guard #2293
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#2293
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/2287
Author: @kirigayakazima
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix/shader-stage-manifest-safety📝 Commits (1)
6c1a97etools/shader_stage_manifest.py: match suffix case-insensitively and flag conflicting duplicate stages📊 Changes
2 files changed (+49 additions, -7 deletions)
View changed files
📝
tests/test_shader_stage_manifest.py(+31 -1)📝
tools/shader_stage_manifest.py(+18 -6)📄 Description
Claimed in the coordination issue as: SHADER-STAGE-MANIFEST-CASE-SUFFIX-AND-CONFLICT-GUARD (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7192416492)
What and why
suffixcase-insensitively in_stem_rows()(tools/shader_stage_manifest.py) so uppercase/mixed-case extensions such as.DXBCresolve to the same stems instead of failing suffix validation.shader_stages(): when two rows for the same stem specify conflicting non-empty stages (e.g."ps"and"vs"), recordNone(unknown) instead of silently letting the last row overwrite earlier entries, while preserving agreeing duplicates andNone/empty + known pairs.tests/test_shader_stage_manifest.pycovering case-insensitive suffix matching and duplicate stage conflict resolution.Tested
python -I tests/test_shader_stage_manifest.py -v: 19 passed, 0 failed (detachedupstream/mainbaseline with only the updated test file fails with 1 failure and 1 error).python -I tests/test_ci_registration.py: 16 passed.python -I tests/test_text_write_line_endings.py: 3 passed.python -I scripts/check_no_game_data.py,python -I -m compileall -q tools/shader_stage_manifest.py tests/test_shader_stage_manifest.py, andgit diff --cached --check: passed.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.