Repository navigation
fix(voice): degrade gracefully when audio backend is unavailable - #1
Merged
Merged
Conversation
added 3 commits
November 10, 2026 17:20
Mock sounddevice in offline voice tests instead of requiring a running audio server on CI runners, and return a friendly unavailable message when importing sounddevice fails with a non-ImportError backend error such as PortAudioError. Align the release-document check with the actual 1.0.0 release date and disable matrix fail-fast so every Python version reports its own result.
The clipboard settle timer can fire while the app is shutting down and Textual has already unmounted widget component classes, so rendering the screen raised KeyError. Stop watching instead of crashing, apply Black's parameter formatting to the new voice tests, and cover the shutdown race with a regression test.
Add a trusted-publishing (OIDC) pypi job to the tag workflow, gated by a manually approved pypi environment, and document the one-time PyPI setup plus the manual twine alternative. Prune the internal bench/ directory from the source distribution alongside md/ and cover both exclusions in the packaging contract test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PortAudioError(PulseAudio_Initialize: Can't connect to server) on runners without an audio server: offline voice tests now mock sounddevice.tts.is_available()/voice.is_available()now return a friendly unavailable message on non-ImportError backend initialization failures instead of crashing.## [Released]assertion.fail-fastfor unit-tests and package-and-security so every Python version reports its own result.Test plan
pytest tests/ut— 3431 passed, 3 skippedgithub/main: targeted voice/docs/packaging tests — 100 passed, 2 skipped