bink_names: reject duplicate stream locations before assigning names #2452

Open
github-bot wants to merge 1 commit from github-bot/gh-2452 into main AGit
Owner

@⁠kirigayakazima on GitHub · 2026-11-27 10:34 UTC · original
kirigayakazima:codex/bink-names-duplicate-stream-locations → main · +22 −0 · 2 files · 1 commits · open

Claimed in the coordination issue as: BINK-NAMES-DUPLICATE-STREAM-LOCATIONS

What and why

Two index rows for one source and byte offset could assign separate names to the same physical movie. Check adjacent sorted, normalized stream locations and reject duplicates before publishing output. The regression covers a repeated offset across distinct sources (valid), slash variants within one source (duplicate) and preservation of a previous report.

Tested

Windows, Python 3.14.7. The regression reproduced on the parent and passed with the change.

  • python -I tests/test_bink_names.py -k duplicate_stream_locations
  • python -I tests/test_bink_index.py
  • Changed-path no-game-data scan and git diff --check passed.
  • Full Windows Bink naming suite has one pre-existing failure, test_unreadable_mount_directory_preserves_the_report, due to the escaped separators in the rendered PermissionError. Reproduced on the unmodified base.

The integrated checkout passed 6,374 semantic tests across 500 files. CI's macOS job failed in the calibrated-texture replacement test, as it did on the unchanged main baseline.

GPUs tested: N/A (CPU-only synthetic tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-27 10:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2452) `kirigayakazima:codex/bink-names-duplicate-stream-locations` → `main` · +22 −0 · 2 files · 1 commits · open Claimed in the coordination issue as: [BINK-NAMES-DUPLICATE-STREAM-LOCATIONS](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Two index rows for one source and byte offset could assign separate names to the same physical movie. Check adjacent sorted, normalized stream locations and reject duplicates before publishing output. The regression covers a repeated offset across distinct sources (valid), slash variants within one source (duplicate) and preservation of a previous report. ### Tested Windows, Python 3.14.7. The regression reproduced on the parent and passed with the change. - `python -I tests/test_bink_names.py -k duplicate_stream_locations` - `python -I tests/test_bink_index.py` - Changed-path no-game-data scan and `git diff --check` passed. - Full Windows Bink naming suite has one pre-existing failure, `test_unreadable_mount_directory_preserves_the_report`, due to the escaped separators in the rendered PermissionError. Reproduced on the unmodified base. The integrated checkout passed 6,374 semantic tests across 500 files. CI's macOS job failed in the calibrated-texture replacement test, as it did on the [unchanged main baseline](https://github.com/ubiquitarianism/leonida/actions/runs/45977772928/job/140433726198). GPUs tested: N/A (CPU-only synthetic tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:47:22 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2452/head:github-bot/gh-2452'
git switch 'github-bot/gh-2452'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2452'
git switch 'github-bot/gh-2452'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2452'
git switch 'github-bot/gh-2452'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2452'
git switch 'main'
git merge --squash 'github-bot/gh-2452'
git switch 'main'
git merge --ff-only 'github-bot/gh-2452'
git switch 'main'
git merge 'github-bot/gh-2452'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.