test: Launch-Smoke-Test (App bootet offscreen) + CI-Schritt - #9
Merged
Conversation
Leichter, GUI-gated Test (WHISPER_GUI_TESTS=1), der die echte App in-process hochfaehrt: QApplication + BlitztextApp (Tray + Hauptfenster), kurz idlen via QTimer und sauberer Quit mit Exit 0. Kein echter Hotkey/evdev-Thread (stop_hotkey_worker vor dem Idle), kein echtes Audio, keine Whisper/Piper-Nutzung. Bewusst in-process statt main(), um QApplication-Singleton-Kollisionen und den Display-Guard unter Offscreen zu vermeiden -- analog tests/test_state_machine.py. CI: dedizierter Schritt "Launch smoke test (App bootet offscreen)" vor der Vollsuite als sichtbares Fast-Fail-Boot-Signal bei jedem Push. Verifiziert offscreen: Smoke-Test gruen, RED-Gegenprobe greift, Vollsuite 220 gruen.
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.
Ziel
„Bootet die App noch?" bei jedem Push automatisch beantworten — ein leichter Test fährt die echte App offscreen hoch und beendet sauber mit Exit 0.
Änderungen
tests/test_smoke_launch.py(neu): GUI-gated (WHISPER_GUI_TESTS=1) In-Process-Boot —QApplication-Singleton +BlitztextApp(Tray + Hauptfenster),stop_hotkey_worker(kein echter evdev-Thread), kurz idlen viaQTimer.singleShot(50, quit),assert qapp.exec() == 0. Kein echtes Audio, keine Whisper/Piper-Nutzung. Muster analogtests/test_state_machine.py..github/workflows/blitztext-linux-ci.yml: dedizierter Schritt „Launch smoke test (App bootet offscreen)" vor der Vollsuite als sichtbares Fast-Fail-Boot-Signal (QT_QPA_PLATFORM=offscreenjob-weit).Designentscheidung
Bewusst nicht über
main(): ein zweiterQApplication-Konstruktor kollidiert mit dem Suite-Singleton, und_require_display_environment()bricht offscreen ab. Der In-Process-Boot spiegelt denselben Pfad ohne Produktionscode-Änderung.Scope
Enthält ausschließlich den Smoke-Test (Test + CI). Kein Produktionscode, unabhängig von der offenen Cloud-TTS-Arbeit.
Testplan
QT_QPA_PLATFORM=offscreen WHISPER_GUI_TESTS=1)🤖 Generated with Claude Code