shader_link_check: share the report collision guard #1052
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1052
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1052/head"
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?
@TheGeogeo on GitHub · 2026-11-24 17:21 UTC · original
TheGeogeo:fix/shader-link-report-path→main· +9 −14 · 2 files · 1 commits · merged 2026-11-24 23:21 UTCClaimed in the coordination issue as: SHADER-LINK-REPORT-PATH — #14
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.@KernelSmoker on GitHub · 2026-11-24 17:28 UTC · original · approved these changes
Verified on exact head 564cd9288a210d6d05d3335ff365fe0cd0bf89bb. Linux suites pass: shader-link 51/51, report paths 22/22, report-path case 3 passed / 1 expected APFS/HFS+ normalization skip, and line endings 3/3. No-game-data and diff checks pass; merge-tree onto current main is clean. The new synthetic case proves
shader_link_checknow delegates the report/input collision decision to the shared guard. I did not independently test on a case-folding mount or Windows; the PR-reported Windows run is author-provided. No game data/GPU.@TheGeogeo on GitHub · 2026-11-24 21:22 UTC · original
Rebased on
main58be9cdf:564cd928->7323d81f, same patch (git range-diff). The CI run of564cd928never started (action_required), so this push was made to start it.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.564cd928.No code change in this rebase. CI on the new head is still queued.
AI-assisted: yes (Claude Code).
@QemmHD on GitHub · 2026-11-24 23:21 UTC · original
Merging.
Why merged: SHADER-LINK-REPORT-PATH: shader_link_check uses the shared report_paths.same_report_path guard instead of its own resolve/samestat code, so it covers the cases the shared guard does (hard links, case aliases). KernelSmoker approved it (Linux).
Why it's good: shader_link_check, report_paths and report_path_case: 75 passed, 2 skipped (symlink privilege).
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main
0f98d193c. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests, ctest_registration) gives 578 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.AI-assisted (Claude Code, Claude Opus 5.5).