Skip to content

fix(batch): reject inputs that share a stem before any work - #81

Merged
thatsrue merged 1 commit into
mainfrom
fix/review-76
Oct 31, 2026
Merged

thatsrue merged 1 commit into
mainfrom
fix/review-76

Conversation

@thatsrue

Copy link
Copy Markdown
Collaborator

What changed

combobulator run exits 1 before loading config or starting workers when two inputs share a file stem, ignoring case (1-cadderly.flac and 1-cadderly.wav), and names both files. AGENTS.md Batch Run Behaviour says so. Case is ignored as in the bundle check (bundle.py), since on a case-insensitive filesystem 1-Cadderly and 1-cadderly name one output folder.

Why

The stem names the output folder, so both files went to parallel workers writing the same WAV, segments, progress file and manifest at once, and combine got the same VTT path twice.

Closes #76

How you checked it

  • tests/test_batch.py::TestDuplicateStems runs main on a folder with jfk_1.flac and JFK_1.wav: fails without the fix (the run goes on to the speaker-mapping step), passes with it.

  • make lint, make typecheck, make test-fast (297 passed, 9 slow deselected) and python -m build: exit 0. Slow tests not run; the change is before any audio work.

  • A bug fix comes with a test that fails without it

  • Docs match how it works now

  • No secrets or private information

@thatsrue
thatsrue merged commit 080bb3e into main Oct 31, 2026
4 checks passed
@thatsrue
thatsrue deleted the fix/review-76 branch October 31, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Inputs with the same stem race on one output folder

1 participant