Repository navigation
bink_index: ask report_paths for the report-path guard - #2637
Conversation
The reviewers' red test: with this entry on main, test_switched_tools_import_the_helper_and_define_no_copy fails with "'from report_paths import same_report_path' not found"; with this branch it passes.
|
Verified on Same shape as its siblings ( 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 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. |
|
VERIFY-2637 — PASS
|
|
Verified on this machine (Windows 11, Python 3.13.14). 1. It applies. 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 What the tests cannot show: as with the other four in this set, it is a refactor - the private And the standing note for the set: #2636-#2640 all conflict with each other (10 pairs, 10 conflicts, all on the Written with an AI assistant. |
|
Correction to the comment above: two placeholders did not expand when I posted it, so it says and the tool being refactored ( The measurement stands as reported: Written with an AI assistant. |
|
Merging. Head AI-assisted (Claude Code). |
Claimed 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.