Release v1.5.1 - Bazarr uploads without media mounts
Summary
Fixes the production failure mode where every Bazarr job returned No audio source provided when media volumes were not mounted and /tmp/whisper was not writable by the service user (Portainer/custom compose with tmpfs size but missing mode=1777).
Media mounts remain an optional zero-copy optimisation. The upload path is the supported default.
Fixes
- Unwritable
TEMP_DIRfallback:resolve_temp_dir/_temp_dirnow check writability before free space and fall back toPERSISTENT_TEMP_DIR(or system temp) instead of silently failing materialization. - Approved roots for persistent temp:
get_approved_roots()includesPERSISTENT_TEMP_DIRso materialized uploads that landed there are accepted. - Trust server-materialized uploads:
MaterializedUploadPathis used without re-applying the caller-facing approved-roots gate (avoids a crash when re-copying a path we just wrote). - Clearer materialization errors: failed upload writes log the real cause instead of collapsing into
No audio source provided.
Tests
- New e2e module
tests/integration/test_bazarr_upload_without_mounts_e2e.py: detect-language and ASR with unresolvablevideo_file, plus unwritableTEMP_DIRfallback. - Unit coverage for writability fallback in
resolve_temp_dir/get_temp_dir. - Compose pin:
tmpfsmust be/tmp/whisper:size=2G,mode=1777.
Ops note
If you deploy outside the repo compose (e.g. Portainer), keep:
tmpfs:
- /tmp/whisper:size=2G,mode=1777size=2G alone is not enough after a compose restart.
Dependency sweep (audit gate)
npm: eslint 10.15.0, markdownlint-cli2 0.24.1, overrides for markdown-it 15.0.3, minimatch 11.0.9, undici 8.12.4, fast-uri 4.2.3, glob 14.0.6.
Python: certifi, filelock, msgpack, opentelemetry-api, pillow, setuptools bumped to clear current pip-audit findings.
Verification
- Focused Docker pytest: mount helpers, SSD/temp selection, Bazarr wire format, upload-without-mounts e2e — passed.
npm audit --audit-level=lowandpip-audit— clean.- Intel NUC: recreated with
tmpfs mode=1777; Bazarr-shaped/detect-languageupload without/tvmounts returnedlanguage_code=en.