mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1052] [MERGED] shader_link_check: share the report collision guard #1088
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#1088
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/1052
Author: @TheGeogeo
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @QemmHD
Base:
main← Head:fix/shader-link-report-path📝 Commits (1)
7323d81shader_link_check: share the report collision guard📊 Changes
2 files changed (+9 additions, -14 deletions)
View changed files
📝
tests/test_shader_link_check.py(+7 -0)📝
tools/shader_link_check.py(+2 -14)📄 Description
Claimed in the coordination issue as: SHADER-LINK-REPORT-PATH — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138533375
What and why
shader_link_check.pycompared the report path with its inputs through a private check. When neither file exists yet, that check only compared the resolved paths, so on a volume that folds letter case a report could take the path of a missing input under another spelling. The synthetic reproduction is in the claim. Usereport_paths.same_report_path, as CONTRIBUTING.md asks of report writers, so this tool gets the same answer as the others. Existing same-file and hard-link refusals are unchanged.Tested
On Windows 11, Python 3.12.4. After a rebase on
main58be9cdf(7323d81f, same patch as564cd928):tests/test_shader_link_check.py51 OK,tests/test_report_paths.py22 OK,tests/test_report_path_case.py4 run, OK (1 skipped);test_tool_stdout_encoding.py,test_docs_cli_flags.pyandtest_text_write_line_endings.pyOK. First run, based onmainat32950551:python -I -B tests/test_shader_link_check.py— 51 passed. With the previoustools/shader_link_check.py, the new case-folding test fails withValueError not raised; it simulates the folding volume by patching the probe.python -I -B tests/test_report_paths.py— 22 passed.tests/test_report_path_case.py— 3 passed, 1 skipped.tests/test_text_write_line_endings.py— 3 passed.940b0ae2) and 52 passed with #807 (0f53b3ee).python -m compileall -q make_game.py tools tests,git diff --checkand the no-game-data check passed.GPUs tested: n/a (CPU-only synthetic tests).
AI-assisted: yes (Codex and Claude Code).
Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.