Stop silent STT credential fallback for LLM/diarization (#138) #142

Merged
Mark merged 1 commit from feat/credential-regression-tests-138 into main 2026-09-10 13:05:40 +00:00
Owner

Fixes #138

Stops EnhancementQueueWorker from silently falling back to STT credentials (cloudSettings.apiKey / endpointUrl) when LLM or diarization provider settings are blank. The implementation fix landed on main via the kilo-gsd pipeline (commit 35eeb93); this PR carries the regression tests that lock the behavior in, and the branch history includes the fix commit.

Changes (1 file, +75 lines):

  • app/src/test/java/com/voicetranscriber/service/EnhancementQueueWorkerTest.kt — two new worker-level regression tests
    • doWork_diarizationJob_sttOnlyCredentials_diarizationSkippedAndMessageNamesDiarizationKey: blank diarizationApiKey -> "Diarization API key not configured", provider repos never contacted
    • doWork_topicExtractionJob_sttOnlyCredentials_noLlmCallAndMessageNamesMissingLlmSetting: blank LLM fields -> "No LLM configured for topic extraction", Mockito spies prove no LLM call occurred
  • Existing EnhancementQueueWorkerConfigTest.kt (7 tests) already covers all-populated behavior unchanged.

Test evidence: full suite green — 214 tests, 0 failures, 0 errors (./gradlew :app:test).

Scope: only EnhancementQueueWorkerTest.kt is touched. No STT behavior, config loader, or other providers were changed.

References kanban card t_a946c33c.

Fixes #138 Stops EnhancementQueueWorker from silently falling back to STT credentials (cloudSettings.apiKey / endpointUrl) when LLM or diarization provider settings are blank. The implementation fix landed on main via the kilo-gsd pipeline (commit 35eeb93); this PR carries the regression tests that lock the behavior in, and the branch history includes the fix commit. Changes (1 file, +75 lines): - app/src/test/java/com/voicetranscriber/service/EnhancementQueueWorkerTest.kt — two new worker-level regression tests - doWork_diarizationJob_sttOnlyCredentials_diarizationSkippedAndMessageNamesDiarizationKey: blank diarizationApiKey -> "Diarization API key not configured", provider repos never contacted - doWork_topicExtractionJob_sttOnlyCredentials_noLlmCallAndMessageNamesMissingLlmSetting: blank LLM fields -> "No LLM configured for topic extraction", Mockito spies prove no LLM call occurred - Existing EnhancementQueueWorkerConfigTest.kt (7 tests) already covers all-populated behavior unchanged. Test evidence: full suite green — 214 tests, 0 failures, 0 errors (./gradlew :app:test). Scope: only EnhancementQueueWorkerTest.kt is touched. No STT behavior, config loader, or other providers were changed. References kanban card t_a946c33c.
test: regression tests for #138 credential validation (STT-only repro)
Some checks failed
Build Android / build (push) Failing after 20m5s
Build Android / build (pull_request) Successful in 21m56s
33cd9f66ca
Mark merged commit 93b7fd169e into main 2026-09-10 13:05:40 +00:00
Mark deleted branch feat/credential-regression-tests-138 2026-09-10 13:05:40 +00:00
Sign in to join this conversation.
No description provided.