mirror of
https://github.com/debpalash/VoiceStudio.git
synced 2026-12-04 17:38:17 +00:00
* fix(batch): check the speech model when restoring, not in every pipeline run #4623 added the missing-model check to the batch transcribe stage. Every batch pipeline test that does not stub it then failed in CI's model-free environment, leaving main red. Restored jobs are the only ones that skip enqueue's check, so restore now checks once and shows such a job as failed with Retry, leaving the pipeline as it was. Also confines queue record paths to the batch folder after resolving them (the CodeQL path alerts on the record writer) and reads test files as UTF-8. * fix(batch): check the speech model inside the transcribe step itself Review found that a job queued before its speech model was removed could still download it, and that checking at restore can run before startup swaps a missing saved model for an installed one. The check now runs in the transcribe function, right before the backend loads, for every job: queued, retried or restored. Pipeline tests that stub the guarded transcribe call never reach it; the one test that runs it with a stubbed model opts out. Queue record paths are checked after resolving but replaced and removed by their own directory entry, so a link can't make a cleanup delete another job's record.