[PR #1635] bink_names: recognize aliases of unlistable folders (BINK-NAMES-UNLISTABLE-CASE) #1649

Open
opened 2026-11-26 20:21:58 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1635
Author: @KoLolX3
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: fix/bink-unlistable-case


📝 Commits (1)

  • ec9b096 Recognize folder aliases in Bink report guard

📊 Changes

2 files changed (+40 additions, -7 deletions)

View changed files

📝 tests/test_bink_names.py (+26 -0)
📝 tools/bink_names.py (+14 -7)

📄 Description

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) and python -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, and git diff --check
  • Linux; the case-insensitive alias was simulated. Native APFS was not available.

GPUs tested: n/a

AI-assisted: yes (OpenAI Codex)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1635 **Author:** [@KoLolX3](https://github.com/KoLolX3) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/bink-unlistable-case` --- ### 📝 Commits (1) - [`ec9b096`](https://github.com/ubiquitarianism/leonida/commit/ec9b0967f55380097b744e1f0ea018b1f61711bf) Recognize folder aliases in Bink report guard ### 📊 Changes **2 files changed** (+40 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_bink_names.py` (+26 -0) 📝 `tools/bink_names.py` (+14 -7) </details> ### 📄 Description 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) and `python -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`, and `git diff --check` - Linux; the case-insensitive alias was simulated. Native APFS was not available. GPUs tested: n/a AI-assisted: yes (OpenAI Codex) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1649
No description provided.