Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

test(e2e): disable audio in Windows OCR lane

Louis Beaumont09167370d0b7
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index 1f1811789..56f9a239e 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -213,7 +213,7 @@ jobs:
working-directory: ./apps/screenpipe-app-tauri
env:
RECORD_VIDEO: "true"
- SCREENPIPE_E2E_SEED: "onboarding"
+ SCREENPIPE_E2E_SEED: "onboarding,no-audio"
run: |
bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/windows-core-recording.spec.ts
diff --git a/apps/screenpipe-app-tauri/e2e/README.md b/apps/screenpipe-app-tauri/e2e/README.md
index 73eb9137c..ac2f73ba6 100644
--- a/apps/screenpipe-app-tauri/e2e/README.md
+++ b/apps/screenpipe-app-tauri/e2e/README.md
@@ -85,8 +85,9 @@ bun run test:e2e
$env:RECORD_VIDEO="1"; bun run test:e2e
# 5. Run the Windows core recording spec (recording-enabled app + API checks,
-# with OCR/Timeline assertions when the runner exposes usable frames)
-$env:SCREENPIPE_E2E_SEED="onboarding"; bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/windows-core-recording.spec.ts
+# with OCR/Timeline assertions when the runner exposes usable frames; no-audio
+# keeps hosted runners out of Whisper startup while vision capture stays on)
+$env:SCREENPIPE_E2E_SEED="onboarding,no-audio"; bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/windows-core-recording.spec.ts
```
### Run a single spec
@@ -159,7 +160,7 @@ Saves to `e2e/videos/`.
|---|---|
| `home-window.spec.ts` | Opens Home window; clicks through Home, Pipes, Timeline, Help, Settings nav items |
| `timeline.spec.ts` | Navigates to Timeline; seeds a capture event; verifies at least one frame renders |
-| `windows-core-recording.spec.ts` | Windows opt-in. Enables real recording and requires API auth, health/load, audio, vision, and search endpoints to stay responsive. When the runner exposes usable desktop frames, it also shows a foreground marker window and verifies OCR indexing/query search plus Timeline frame metadata; hosted runners without frames self-skip those capture-dependent assertions. |
+| `windows-core-recording.spec.ts` | Windows opt-in. Enables real vision recording and requires API auth, health/load, audio/device, vision, and search endpoints to stay responsive. In CI it uses `SCREENPIPE_E2E_SEED=onboarding,no-audio` so hosted runners exercise OCR without booting Whisper. When the runner exposes usable desktop frames, it also shows a foreground marker window and verifies OCR indexing/query search plus Timeline frame metadata; hosted runners without frames self-skip those capture-dependent assertions. |
| `windows-system-integration.spec.ts` | Windows-only. Verifies isolated data dir, native DLL/WebView2 runtime, display/DPI topology, TCP listeners, process health, Defender visibility, audio service/device health, concurrent local API load, focus churn, and rapid Home-window routing |
| `hd-recording-pipeline.spec.ts` | macOS opt-in. Starts an HD timer session via `/capture/hd/start`; asserts the controller goes active, a non-empty `hd_*.mp4` chunk is written, and OCR keeps indexing during HD (high-fps + indexing decouple, #3699/#3707) |
| `settings-sections.spec.ts` | Navigates General → Recording → AI → Speakers settings; verifies content and no crash |
diff --git a/apps/screenpipe-app-tauri/e2e/helpers/app-launcher.ts b/apps/screenpipe-app-tauri/e2e/helpers/app-launcher.ts
index babc9537a..5e7a0eaba 100644
--- a/apps/screenpipe-app-tauri/e2e/helpers/app-launcher.ts
+++ b/apps/screenpipe-app-tauri/e2e/helpers/app-launcher.ts
@@ -62,7 +62,8 @@ const APP_PID_FILE = resolve(E2E_DATA_DIR, 'app.pid');
//
// Override with `SCREENPIPE_E2E_SEED=onboarding` (or any custom value) when
// running on a host that DOES have TCC granted and you want to exercise the
-// real capture pipeline. `cloud-audio-fallback` is an opt-in macOS seed that
+// real capture pipeline. Add `no-audio` when a lane only needs vision/OCR and
+// should not boot Whisper. `cloud-audio-fallback` is an opt-in macOS seed that
// leaves audio UI enabled, disables vision, and saves Screenpipe Cloud while
// logged out so the fallback UX can be asserted. The same env var is read by
// specs (e.g. timeline) to skip when recording is off.
diff --git a/apps/screenpipe-app-tauri/e2e/specs/windows-core-recording.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/windows-core-recording.spec.ts
index 757e72ef6..1257bcb81 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/windows-core-recording.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/windows-core-recording.spec.ts
@@ -7,8 +7,9 @@
*
* The default CI lane uses `onboarding,no-recording` so the app UI can be
* tested without depending on host capture devices. This spec is for the
- * targeted Windows recording lane: it runs with `SCREENPIPE_E2E_SEED=onboarding`
- * and verifies the real core loop when the runner exposes usable capture:
+ * targeted Windows recording lane: it runs with
+ * `SCREENPIPE_E2E_SEED=onboarding,no-audio` in CI and verifies the real core
+ * vision loop when the runner exposes usable capture:
*
* foreground pixels -> OCR/indexing -> search API -> Timeline UI
*
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index 6123b3df8..456ef350d 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -1066,6 +1066,8 @@ async fn main() {
// disable_vision + disable_audio so the e2e harness can drive the
// app without granting Screen Recording / Microphone TCC. The
// server (DB + HTTP) still boots; only SCK + audio capture skip.
+ // "no-audio" keeps vision enabled while disabling only audio, which
+ // lets Windows hosted runners exercise OCR without booting Whisper.
// See get_e2e_seed_flags above for parsing.
let e2e_flags = get_e2e_seed_flags();
if e2e_flags.iter().any(|f| f == "no-recording") {
@@ -1073,6 +1075,10 @@ async fn main() {
store.recording.disable_vision = true;
info!("E2E seed: recording disabled (vision + audio)");
}
+ if e2e_flags.iter().any(|f| f == "no-audio") {
+ store.recording.disable_audio = true;
+ info!("E2E seed: audio disabled");
+ }
if e2e_flags.iter().any(|f| f == "cloud-audio-fallback") {
store.recording.disable_audio = false;
store.recording.disable_vision = true;