Repository navigation
fix(audio): clean scratch files and surface refinement errors - #3687
kovtcharov-amd merged 4 commits into
Conversation
Verdict: Approve with suggestionsThis fixes two quiet failures in the transcription path: a temp directory that was created for every decode and never deleted, and speaker-naming steps that swallowed a dead model connection and wrote a transcript that looked complete but wasn't. Both are real user-facing problems and both are now covered by tests that pin the behaviour rather than just the call. Nothing here blocks the merge. What's left is polish:
Also worth knowing: when Lemonade isn't installed at all, the new "not reachable" message now tells the user to run Real-world evidenceN/A — no evidence bundle was produced for this run, and the Transcription needs real media plus a live Lemonade server, so this is reasonably deferred to the strix-halo lane. What would settle it there: one 🔍 Technical detailsIssues🟢 Refinement errors lose all context (
🟢 Dead WAV cleanup (
🟢 Test in the wrong class (
🟢 Diarized branch has no end-to-end failure test (
🟢 Doubled install advice when Lemonade isn't installed ( In the not-installed case Strengths
|
…aintenance-followup
…nstall advice
A failed speaker-naming pass returned only the bare exception ("server down"),
so the user never learned that the raw transcript was intact and the call
could simply be retried. The error now names the stage, the untouched raw
transcript, and the retry, and returns it as `source_transcript`.
When Lemonade isn't installed, the unreachable-server message printed the
`gaia init` install advice twice: once from the start hint and once from its
own tail. The hint now owns start/install advice and the tail only adds the
LEMONADE_BASE_URL alternative.
Also drops the WAV unlink that the scratch-directory cleanup already covers,
moves the speaker-processing test into the refinement tests, and adds a
failure test for the diarized branch alongside the text-only one.
|
All five suggestions are in (adc6b7d), and the branch now includes current
🔍 Technical details
|
|
Merged 🔍 Technical detailsThe failing step was The merge was clean. The same stale-base failure hit #3687, #3911, #3982 and #3616 identically. |
Failed transcription now cleans up its temporary audio without deleting the source, and speaker refinement reports model failures instead of returning incomplete work as success. This follows the already merged #3597 and also corrects the Lemonade startup guidance.
Compared with the open provider work in #3672: its audio edits change endpoint/auth resolution, while this patch changes cleanup and failure reporting.
Test plan
pytest tests/unit/test_audio_tools.py tests/unit/test_lemonade_asr.py -q: 115 passed on current main; one existing live Lemonade test skipped because no server was available.