test: add E2E test suite (transcription + UI) with CI jobs#172
Draft
BW-Projects wants to merge 2 commits into
Draft
test: add E2E test suite (transcription + UI) with CI jobs#172BW-Projects wants to merge 2 commits into
BW-Projects wants to merge 2 commits into
Conversation
added 2 commits
May 29, 2026 09:31
Transcription E2E (tests/core): tiny model on CPU, asserts output files and a non-empty transcript, with speaker detection both off and on (asserts a SPEAKER_ label). UI E2E (tests/ui): a boot-serve smoke plus a NiceGUI User-fixture click-through that transcribes through the app's real wiring. Adds a ~3 s public-domain sample clip, a tests/** ruff ignore, and the pytest asyncio-auto config.
Two parallel jobs: `e2e (core pipeline)` installs aTrain_core with CPU torch (~1.5 GB) and runs the transcription tests; `e2e (app, full stack)` installs the locked cu128 app and runs the transcription + UI tests against the shipped dependency set.
Owner
|
looks good to me and makes sense in the way it is set up. |
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.
Implements the layered test setup proposed in #171. Opened as a draft
for discussion.
Verified green in a fork preview; all jobs run in parallel.
What this adds
Tests (
tests/, split intocore/andui/):tests/core/test_transcription_e2e.py— drives the engine via the CLI(
aTrain_core transcribe … --model tiny --device cpu) on a short clip,asserting the output files exist and the transcript is non-empty.
Two cases: speaker detection off and on (the "on" case asserts a
SPEAKER_label — a smoke check the diarization path ran, not an exactspeaker count).
tests/ui/test_boot_serve.py— startsaTrain start --no-nativeandpolls
:8080for HTTP 200 (app boots + serves, headless).tests/ui/test_click_through.py— NiceGUIUser-fixture: renders thereal page and transcribes through the app's real wiring
(
start_transcription→run.cpu_bound→ finished dialog), in-process,no browser.
tests/fixtures/sample_short.mp3— a ~3 s public-domain LibriVox clip(trimmed from
sample_data/SampleAudio.mp3).CI (
.github/workflows/ci.yml), two parallel jobs:e2e (core pipeline)— installs aTrain_core standalone against thePyTorch CPU index (~1.5 GB), runs the transcription tests. ~55 s.
e2e (app, full stack)—uv sync --lockedof the shipped cu128stack (+ GTK build deps), runs the transcription + UI tests against the
exact dependency set we ship. ~1m57s. (On a GPU-less runner cu128 torch
just runs on CPU — no GPU runner needed.)
Config:
tests/**ruff ignore (pytest asserts + invoking the CLI byname),
asyncio_mode = auto(theUserfixture is async),.pytest_cachegitignored.
Notes / open items (see #171 for the rationale)
e2e (core pipeline)job installsaTrain_core@develop(off-lock;aTrain_core has no lock of its own). Kept simple for now; a SHA pin can
come with the monorepo (Decide long-term pinning strategy for aTrain_core dependency #145).
Test plan
e2e (core pipeline)passes the speaker-off and speaker-on cases.e2e (app, full stack)passes boot-serve + click-through on thecu128 stack.
Maps to BSI IT-Grundschutz
the "Funktionstest" half, complementing the automated code analysis
(ruff / bandit / pip-audit) already in place.
Related
cc @gerardo-navarro