opus_tags: tag streams when given a single bank directory #2458

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

@⁠kirigayakazima on GitHub · 2026-11-27 11:09 UTC · original
kirigayakazima:codex/opus-tags-single-bank-root → main · +11 −1 · 2 files · 1 commits · open

Claimed in the coordination issue as: OPUS-TAGS-SINGLE-BANK-ROOT

What and why

When the requested folder was itself an exported bank, root-level Opus files were counted but never looked up. Resolve that folder against the existing bank-label suffix rules, giving the qualified archive path precedence over a shorter matching label. The regression also confirms that the sibling bank stays untouched.

Tested

Windows, Python 3.14.7. The added regression failed on the parent and passed with this change.

  • python -I tests/test_opus_tags.py -k single_bank_root
  • python -I tests/test_opus_tags_dialogue_conflicts.py
  • Changed-path game-data scan and git diff --check passed. Shared main baseline: 6,374 semantic tests passed across 500 files.
  • Full Windows opus_tags suite has one pre-existing path-format assertion failure in test_cli_reports_incomplete_directory_discovery. Confirmed before applying this patch.

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

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 11:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2458) `kirigayakazima:codex/opus-tags-single-bank-root` → `main` · +11 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: [OPUS-TAGS-SINGLE-BANK-ROOT](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why When the requested folder was itself an exported bank, root-level Opus files were counted but never looked up. Resolve that folder against the existing bank-label suffix rules, giving the qualified archive path precedence over a shorter matching label. The regression also confirms that the sibling bank stays untouched. ### Tested Windows, Python 3.14.7. The added regression failed on the parent and passed with this change. - `python -I tests/test_opus_tags.py -k single_bank_root` - `python -I tests/test_opus_tags_dialogue_conflicts.py` - Changed-path game-data scan and `git diff --check` passed. Shared main baseline: 6,374 semantic tests passed across 500 files. - Full Windows opus_tags suite has one pre-existing path-format assertion failure in test_cli_reports_incomplete_directory_discovery. Confirmed before applying this patch. GPUs tested: N/A (CPU-only). 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 11:10:57 +00:00
Author
Owner

@⁠MSedgeMC on GitHub · 2026-11-27 14:50 UTC · original · reviewed

Verified on the PR branch: python3 -m unittest tests.test_opus_tags -v -> 29 tests OK, including the new single-bank-root qualified-label case. Not approving yet: the branch is 613 commits behind current main and also overlaps tests/test_opus_tags.py with PR #2459, so a rebase is needed before reviewing the final diff. Please rebase onto main and re-run the suite.

**@⁠MSedgeMC** on GitHub · 2026-11-27 14:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2458#pullrequestreview-6089910995) · **reviewed** Verified on the PR branch: python3 -m unittest tests.test_opus_tags -v -> 29 tests OK, including the new single-bank-root qualified-label case. Not approving yet: the branch is 613 commits behind current main and also overlaps tests/test_opus_tags.py with PR #2459, so a rebase is needed before reviewing the final diff. Please rebase onto main and re-run the suite.
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/2458/head:github-bot/gh-2458'
git switch 'github-bot/gh-2458'

Merge

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