opus_tags: tag streams when given a single bank directory #2458
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2458"
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 kirigayakazima on 2026-11-27T11:09:38Z.
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_rootpython -I tests/test_opus_tags_dialogue_conflicts.pygit diff --checkpassed. Shared main baseline: 6,374 semantic tests passed across 500 files.GPUs tested: N/A (CPU-only).
AI-assisted: Yes.
Checklist
Imported from ubiquitarianism/leonida. Originally posted by MSedgeMC on 2026-11-27T14:50:54Z.
Review: COMMENTED
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.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T06:36:10Z.
#2458 | head
2492874a77(merged cleanly with main6dfca6428) |python -I tests/test_opus_tags.py| red on main:-k test_single_bank_root_uses_qualified_labelFAILED (failures=1:0 != 1) | green on PR+main: Ran 29 tests, OK | Windows 11, Python 3.12.10 | AI-assisted: yesDiff reviewed across both touched files (
git merge origin/mainat6dfca6428applies cleanly, and merging#2459+#2458together ontomain6dfca6428also auto-merges bothtools/opus_tags.pyandtests/test_opus_tags.pywith0conflicts and passes 30/30 tests). Also verified on mergedPR+main:test_opus_tags_dialogue_conflicts.py(6/6 OK),test_runner_calls_all_tests.py(3/3 OK),test_text_write_line_endings.py(3/3 OK),compileall,git diff --check, andscripts/check_no_game_data.py(clean).Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T15:15:42Z.
Red/green: classified READY by oreo-lot1 (red on main, green on head merged with main); head
2492874a77unchanged since 2026-11-27, before that run.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)