bink_names: ignore commented-out movie mount entries #2451

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

@⁠kirigayakazima on GitHub · 2026-11-27 10:34 UTC · original
kirigayakazima:codex/bink-names-inactive-mount-entries → main · +12 −1 · 2 files · 1 commits · open

Claimed in the coordination issue as: BINK-NAMES-INACTIVE-MOUNT-ENTRIES

What and why

Movie-looking filenames in XML comments could enter the ordered list and shift subsequent stream assignments. Mask comments, CDATA and processing instructions with the lexical matcher already used by gamedata_xml before looking for filename elements. The regression puts a phantom movie between two active ones and checks each kind of non-element markup.

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 inactive_mount_entries
  • python -I tests/test_gamedata_xml.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/2451) `kirigayakazima:codex/bink-names-inactive-mount-entries` → `main` · +12 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: [BINK-NAMES-INACTIVE-MOUNT-ENTRIES](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Movie-looking filenames in XML comments could enter the ordered list and shift subsequent stream assignments. Mask comments, CDATA and processing instructions with the lexical matcher already used by gamedata_xml before looking for filename elements. The regression puts a phantom movie between two active ones and checks each kind of non-element markup. ### 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 inactive_mount_entries` - `python -I tests/test_gamedata_xml.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:21 +00:00
Author
Owner

@⁠MSedgeMC on GitHub · 2026-11-27 15:02 UTC · original · reviewed

Verified on the PR branch: python3 -m unittest tests.test_bink_names -v -> 37 tests OK, including the new commented-out movie-mount cases. Not approving yet: the branch is 606 commits behind current main and overlaps tests/test_bink_names.py with PR #2452, so both need rebasing onto main before a final diff can be reviewed.

**@⁠MSedgeMC** on GitHub · 2026-11-27 15:02 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2451#pullrequestreview-6090052931) · **reviewed** Verified on the PR branch: python3 -m unittest tests.test_bink_names -v -> 37 tests OK, including the new commented-out movie-mount cases. Not approving yet: the branch is 606 commits behind current main and overlaps tests/test_bink_names.py with PR #2452, so both need rebasing onto main before a final diff can be reviewed.
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/2451/head:github-bot/gh-2451'
git switch 'github-bot/gh-2451'

Merge

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