opus_tags: validate the CSV columns required by the requested operation #2459
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2459"
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:42Z.
Claimed in the coordination issue as: OPUS-TAGS-REQUIRED-CSV-SCHEMA
What and why
Require a source column when filtering names by --source, and require a wave column whenever a dialogue table is supplied. Previously a header-only malformed table could produce success, skip every name, or allow files to be retagged without dialogue. Both regressions exercise the CLI and verify that the original audio file stays intact.
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 operation_specific_csvpython -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:47:39Z.
Review: COMMENTED
Verified on the PR branch: python3 -m unittest tests.test_opus_tags -v -> 29 tests OK, including the new checks that --names requires a 'source' column and --dialogue requires a 'wave' column before any OGG is touched. Not approving yet: this branch is 613 commits behind current main, so a merge would carry unrelated history. Please rebase and re-run the suite.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T06:36:08Z.
#2459 | head
6ed6438c68(merged cleanly with main6dfca6428) |python -I tests/test_opus_tags.py| red on main:-k test_cli_checks_operation_specific_csv_headers_before_taggingFAILED (failures=2:sourceandwavesubtests returned 0 instead of 2) | 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, including#1792's Windows error-path fix so the full 29-test file passes on Windows). Also verified combining#2459+#2458together ontomain6dfca6428(0merge conflicts,test_opus_tags.py30/30 OK), plustest_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:59Z.
Red/green: classified READY by oreo-lot3 (red on main
b1619e0a3, green on head merged with main); head6ed6438c68unchanged 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)