bink_names: recognize aliases of unlistable folders (BINK-NAMES-UNLISTABLE-CASE) #1635
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1635"
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?
Imported from ubiquitarianism/leonida. Originally posted by KoLolX3 on 2026-11-25T06:37:39Z.
Claimed in the coordination issue as: BINK-NAMES-UNLISTABLE-CASE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154940396)
What and why
When a source folder cannot be listed, the report overwrite check must reject an existing output inside it. Different case or Unicode spelling can hide that containment on folding filesystems. Check output ancestors with the shared report-path comparison, and add a synthetic case-alias regression that verifies the report is preserved. Existing scan behavior for outputs outside the folder remains covered.
Tested
python -I tests/test_bink_names.py(37 tests)python -I tests/test_bink_index.py(34 tests) andpython -I tests/test_report_paths.py(22 tests)python -I scripts/run_semantic_tests.py tests/semantic(487 files, 6,279 tests, 0 files failed)python -m compileall -q make_game.py tools tests,python -I make_game.py --help,python -I scripts/check_no_game_data.py tools/bink_names.py tests/test_bink_names.py, andgit diff --checkGPUs tested: n/a
AI-assisted: yes (OpenAI Codex)
Checklist
mainand merges cleanly.docs/design.md, with how it was confirmed. (Not applicable.)Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T10:17:47Z.
Independent verification (Windows, Python 3.11.9):
_inside_foldernow walks ancestors via sharedreport_paths.same_report_path(case/Unicode/8.3-aware); newtest_unlistable_folder_case_alias_is_refusedpasses; neighbors test_bink_index 34/34, test_report_paths 22 OK. One PRE-EXISTING failure on merge-base too:test_unreadable_mount_directory_preserves_the_report(Windows path-escaping assertion quirk, fails identically at base — unrelated to this PR). Merges cleanly into main; compileall + diff-check + check_no_game_data clean. AI-assisted verification.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T14:46:00Z.
Red/green:
pytest tests/test_bink_names.pyfails on main (1 failed, 28 passed, 14 subtests passed) and passes on headec9b0967f5merged with main (37 passed, 40 subtests passed).Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
d48a957bbin GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)