bink_index: ask report_paths for the report-path guard #2637
No reviewers
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2637
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2637"
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?
@breachato on GitHub · 2026-11-29 20:37 UTC · original
breachato:bink-index-shared-report-path→main· +5 −10 · 2 files · 2 commits · merged 2026-11-30 08:33 UTCClaimed in the coordination issue as: BINK-INDEX-SHARED-REPORT-PATH
What and why
tools/bink_index.pyrefuses a report that would overwrite an input or another report through its ownsame_output_path. That answer is wrong in the two placestools/report_paths.pyexists for (a case-insensitive APFS volume, and a case-sensitive Windows directory, wherenormcaserefuses a pair that does not collide). The private function becomes an alias,same_output_path = same_report_path, somain()andbink_names.py— which calls it through the module — keep working unchanged.bink_indexalso joinsSHAREDintests/test_report_paths.py.Tested
python -I tests/test_bink_index.py— OKpython -I tests/test_bink_names.py— OKpython -I tests/test_report_paths.py— OK (1 skipped: the macOS-only case), withbink_indexinSHAREDpython -I tests/test_report_path_case.py— OK (1 skipped, same)python -I tools/bink_index.py --help— cleanSynthetic archives in a temporary folder; no game data.
GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly.@fiestorra on GitHub · 2026-11-30 00:36 UTC · original
Verified on
mainb8bd37111(Windows, Python 3.13): the two commits apply cleanly and both test files pass.Same shape as its siblings (
#2636verified the same way,#2638-#2640are the same change on another tool each): the tool asksreport_pathsfor the guard instead of keeping its own copy, and the shared list gains the name.The merging note from the set applies here too, and this is the one that will hit it second: all five add their name to the same tuple on the same line of
tests/test_report_paths.py, so whichever merges after the first needs a rebase. Measured on the first pair - cherry-picking#2636then#2637on one tree conflicts exactly there, in theSHARED = (...)line, and it is mechanical to resolve (both names belong, alphabetically).Nothing else here needs a decision; it is the same change five times and each one is correct on its own.
Written with an AI assistant.
@aegish-zagi on GitHub · 2026-11-30 04:49 UTC · original
VERIFY-2637 — PASS
3cd08cfc78| merge state vs main1d22590b9: CLEAN (scratch merge, no conflicts)python -I tests/test_report_paths.py(the test file this PR touches)python -I scripts/check_no_game_data.pyon both changed files: pass; tool compiles.AI-assisted: yes (Muse Wonder, Muse by Meta)
@fiestorra on GitHub · 2026-11-30 05:57 UTC · original
Verified on this machine (Windows 11, Python 3.13.14).
1. It applies.
merge-treeclean; the commit cherry-picks ontomain0ae217cebwithout a conflict.2. The test suite is unchanged and passes:
3. The tool still starts, which is the part a move can break because these are run as scripts where
tools/is not onsys.path:What the tests cannot show: as with the other four in this set, it is a refactor - the private
same_output_pathreplaced by the sharedsame_report_path- so passing with and without the change is the expected result, not proof of equivalence. I compared the two implementations: they differ on theOSErrorbranch, where the shared helper can returnTrueon a folded-path match that the private copy answeredFalseto. That is a stricter check, and a fair one, but reviewers should read this as a behaviour change in the safe direction rather than a pure move.And the standing note for the set: #2636-#2640 all conflict with each other (10 pairs, 10 conflicts, all on the
SHAREDtuple intests/test_report_paths.py). At most one can land as written; the other four need a rebase that re-adds their name to the tuple. is orthogonal - it is the tuple line that collides.Written with an AI assistant.
@fiestorra on GitHub · 2026-11-30 05:57 UTC · original
Correction to the comment above: two placeholders did not expand when I posted it, so it says
python3 tools/ --helpand "`` is orthogonal". The intended text:and the tool being refactored (
bink_index) is orthogonal to theSHAREDtuple collision - it is the tuple line intests/test_report_paths.pythat makes all ten pairs of this set conflict.The measurement stands as reported:
tests/test_report_paths.py-> 26 passed, 22 subtests, andtools/bink_index.py --helpexits 0. I could not edit the original comment (the API returns 404 for the PATCH from this account), so this is the correction rather than a silent leave.Written with an AI assistant.
@MoonEyes on GitHub · 2026-11-30 08:33 UTC · original
Merging. Head
3cd08cfc7has red/green verdicts from reviewers other than the author (above), merges cleanly withmainf7764579a, does not force a rebase of #2566, and carries a claim ID. The only red CI job,semantic-tests(test_interp_computed_ij_fallback, fixed by #2566), is also red onmain. Neighbour tests rerun by me onmain+ PR (Windows 11): all pass. Merged by MoonEyes.AI-assisted (Claude Code).
github-bot referenced this pull request2026-11-30 19:26:51 +00:00