Skip to content

test(asr): stub faster_whisper so the service tests run without CUDA wheels - #34

Merged
thestumonkey merged 1 commit into
devfrom
fix/ci-asr-faster-whisper-stub
Nov 7, 2026
Merged

thestumonkey merged 1 commit into
devfrom
fix/ci-asr-faster-whisper-stub

Conversation

@thestumonkey

Copy link
Copy Markdown
Member

Summary

The ASR unit tests job failed at collection:

tests/test_faster_whisper_service.py → providers/faster_whisper/transcriber.py:
    from faster_whisper import WhisperModel
E   ModuleNotFoundError: No module named 'faster_whisper'

CI installs only --group test. Installing the faster-whisper group instead would pull in nvidia-cublas-cu12 and nvidia-cudnn-cu12 (>1 GB) for tests that never use the model, because they replace FasterWhisperTranscriber with a fake.

The test now registers a minimal faster_whisper stub module before importing the service. If the real package is installed, it is used.

Testing

The CI command, run locally after uv sync --locked --group test:

uv run --group test pytest --ignore=tests/test_parakeet_service.py
56 passed, 9 skipped

The 9 skips are existing fixture-dependent tests.

🤖 Generated with Claude Code

…wheels

The Faster-Whisper service tests replace the transcriber with a fake, but
importing the service still imported faster_whisper, which CI does not
install (its dependency group pulls in the NVIDIA CUDA wheels). Collection
failed with ModuleNotFoundError and stopped the whole ASR test job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thestumonkey
thestumonkey merged commit 97568d6 into dev Nov 7, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant