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

fix(ci): unbreak main, stale login CTA assertions and coverage dashboards

Louis Beaumontcbc9f3977d3d
diff --git a/COVERAGE.md b/COVERAGE.md
index 97c225c4c..160438d1c 100644
--- a/COVERAGE.md
+++ b/COVERAGE.md
@@ -32,15 +32,15 @@ results and `cargo llvm-cov` data on top when judging release confidence.
- Mapped suites: 32
- Mapped Rust files: 313
-- Active test blocks: 2939
+- Active test blocks: 2943
- Ignored/manual test blocks: 134
-- Weighted coverage points: 2415.0
+- Weighted coverage points: 2417.8
| Platform | Suites | Active tests | Ignored tests | Weighted points | Layers | Flows | Critical score |
| --- | --- | --- | --- | --- | --- | --- | --- |
-| windows | 29 | 2808 | 129 | 2355.0 | 21 | 11 | 100% |
-| macos | 29 | 2862 | 109 | 2366.1 | 22 | 11 | 100% |
-| linux | 25 | 2497 | 102 | 2073.9 | 20 | 11 | 100% |
+| windows | 29 | 2812 | 129 | 2357.8 | 21 | 11 | 100% |
+| macos | 29 | 2866 | 109 | 2368.9 | 22 | 11 | 100% |
+| linux | 25 | 2501 | 102 | 2076.7 | 20 | 11 | 100% |
## Refresh
diff --git a/apps/screenpipe-app-tauri/components/onboarding/login-gate.test.tsx b/apps/screenpipe-app-tauri/components/onboarding/login-gate.test.tsx
index fc40e60c5..8f7cbfd80 100644
--- a/apps/screenpipe-app-tauri/components/onboarding/login-gate.test.tsx
+++ b/apps/screenpipe-app-tauri/components/onboarding/login-gate.test.tsx
@@ -278,8 +278,10 @@ describe("onboarding login gate", () => {
mocks.settings = { user: null };
render(<OnboardingLogin handleNextSlide={vi.fn()} />);
- // Before the handoff the normal sign-in button is the only affordance.
- expect(screen.getByText(/^sign in$/i)).toBeInTheDocument();
+ // Before the handoff the normal login button is the only affordance.
+ // These handoff tests address it by test id, not by label: the label is
+ // owned by the copy tests above and changes with positioning.
+ expect(screen.getByTestId("login-cta")).toBeInTheDocument();
expect(screen.queryByTestId("login-browser-waiting")).toBeNull();
await waitFor(() =>
@@ -301,7 +303,7 @@ describe("onboarding login gate", () => {
render(<OnboardingLogin handleNextSlide={vi.fn()} />);
expect(screen.queryByTestId("login-browser-waiting")).toBeNull();
- expect(screen.getByText(/^sign in$/i)).toBeInTheDocument();
+ expect(screen.getByTestId("login-cta")).toBeInTheDocument();
});
it("offers the in-app window as an escape hatch while waiting", async () => {
@@ -343,7 +345,7 @@ describe("onboarding login gate", () => {
/cancelled in your browser/i,
);
// Retry must be immediately available.
- expect(screen.getByText(/^sign in$/i)).toBeInTheDocument();
+ expect(screen.getByTestId("login-cta")).toBeInTheDocument();
});
it("explains an expired link and still allows retry", async () => {
@@ -359,7 +361,7 @@ describe("onboarding login gate", () => {
/expired/i,
);
- fireEvent.click(screen.getByText(/^sign in$/i));
+ fireEvent.click(screen.getByTestId("login-cta"));
expect(mocks.openLoginWindow).toHaveBeenCalledWith(null);
// Retrying clears the stale failure message.
expect(screen.queryByTestId("login-browser-failure")).toBeNull();
diff --git a/apps/screenpipe-app-tauri/components/onboarding/login-gate.tsx b/apps/screenpipe-app-tauri/components/onboarding/login-gate.tsx
index b2e2d4625..49a515537 100644
--- a/apps/screenpipe-app-tauri/components/onboarding/login-gate.tsx
+++ b/apps/screenpipe-app-tauri/components/onboarding/login-gate.tsx
@@ -443,6 +443,7 @@ const OnboardingLogin: React.FC<OnboardingLoginProps> = ({
) : null}
{/* Button with internal geometry canvas */}
<motion.button
+ data-testid="login-cta"
onClick={handleLogin}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
diff --git a/docs/coverage/CORE.md b/docs/coverage/CORE.md
index 83e323977..f7e08d299 100644
--- a/docs/coverage/CORE.md
+++ b/docs/coverage/CORE.md
@@ -9,10 +9,10 @@ confidence, and criticality.
- Tracked crates: screenpipe-engine, screenpipe-db, screenpipe-sqlite-coordinator, screenpipe-audio, screenpipe-screen, screenpipe-a11y
- Mapped suites: 32
- Mapped Rust files: 313
-- Active test blocks: 2939
+- Active test blocks: 2943
- Ignored/manual test blocks: 134
-- Declared test blocks: 3073
-- Weighted coverage points: 2415.0
+- Declared test blocks: 3077
+- Weighted coverage points: 2417.8
Confidence weights: strong=1.0, partial=0.7, conditional=0.4, smoke=0.3.
Criticality weights: high=1.0, medium=0.7, low=0.4.
@@ -23,15 +23,15 @@ are explicitly enabled in a runtime lane.
| Platform | Suites | Active tests | Ignored tests | Weighted points | Layers | Flows | Critical score |
| --- | --- | --- | --- | --- | --- | --- | --- |
-| windows | 29 | 2808 | 129 | 2355.0 | 21 | 11 | 100% |
-| macos | 29 | 2862 | 109 | 2366.1 | 22 | 11 | 100% |
-| linux | 25 | 2497 | 102 | 2073.9 | 20 | 11 | 100% |
+| windows | 29 | 2812 | 129 | 2357.8 | 21 | 11 | 100% |
+| macos | 29 | 2866 | 109 | 2368.9 | 22 | 11 | 100% |
+| linux | 25 | 2501 | 102 | 2076.7 | 20 | 11 | 100% |
## Crate Summary
| Crate | Suites | Integration files | Source unit files | Active tests | Ignored tests | Weighted points | Flows |
| --- | --- | --- | --- | --- | --- | --- | --- |
-| screenpipe-engine | 10 | 18 | 101 | 1408 | 42 | 1081.5 | 10 |
+| screenpipe-engine | 10 | 18 | 101 | 1412 | 42 | 1084.3 | 10 |
| screenpipe-db | 5 | 50 | 14 | 417 | 16 | 396.7 | 9 |
| screenpipe-sqlite-coordinator | 1 | 0 | 2 | 11 | 0 | 11.0 | 2 |
| screenpipe-audio | 6 | 23 | 48 | 536 | 40 | 464.8 | 5 |
@@ -68,8 +68,8 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| database | 6 suites / 335 active / 12 ignored / 314.7 pts | 6 suites / 335 active / 12 ignored / 314.7 pts | 6 suites / 335 active / 12 ignored / 314.7 pts |
| db-search | 2 suites / 107 active / 9 ignored / 107.0 pts | 2 suites / 107 active / 9 ignored / 107.0 pts | 2 suites / 107 active / 9 ignored / 107.0 pts |
| engine-lifecycle | 6 suites / 205 active / 1 ignored / 180.0 pts | 6 suites / 205 active / 1 ignored / 180.0 pts | 5 suites / 199 active / 1 ignored / 178.3 pts |
-| local-api | 2 suites / 306 active / 9 ignored / 216.0 pts | 2 suites / 306 active / 9 ignored / 216.0 pts | 2 suites / 306 active / 9 ignored / 216.0 pts |
-| meeting | 6 suites / 1329 active / 16 ignored / 1079.7 pts | 6 suites / 1329 active / 16 ignored / 1079.7 pts | 4 suites / 1053 active / 12 ignored / 825.6 pts |
+| local-api | 2 suites / 310 active / 9 ignored / 218.8 pts | 2 suites / 310 active / 9 ignored / 218.8 pts | 2 suites / 310 active / 9 ignored / 218.8 pts |
+| meeting | 6 suites / 1333 active / 16 ignored / 1082.5 pts | 6 suites / 1333 active / 16 ignored / 1082.5 pts | 4 suites / 1057 active / 12 ignored / 828.4 pts |
| ocr | 4 suites / 120 active / 7 ignored / 114.3 pts | 4 suites / 124 active / 7 ignored / 119.8 pts | 3 suites / 115 active / 6 ignored / 110.8 pts |
| os-integration | 1 suites / 6 active / 0 ignored / 1.7 pts | 1 suites / 6 active / 0 ignored / 1.7 pts | - |
| performance | 13 suites / 1332 active / 67 ignored / 1177.7 pts | 14 suites / 1430 active / 70 ignored / 1216.9 pts | 13 suites / 1332 active / 67 ignored / 1177.7 pts |
@@ -79,8 +79,8 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| speaker | 2 suites / 295 active / 5 ignored / 295.0 pts | 2 suites / 295 active / 5 ignored / 295.0 pts | 2 suites / 295 active / 5 ignored / 295.0 pts |
| storage | 3 suites / 456 active / 29 ignored / 369.9 pts | 3 suites / 456 active / 29 ignored / 369.9 pts | 3 suites / 456 active / 29 ignored / 369.9 pts |
| sync | 1 suites / 458 active / 3 ignored / 320.6 pts | 1 suites / 458 active / 3 ignored / 320.6 pts | 1 suites / 458 active / 3 ignored / 320.6 pts |
-| timeline | 4 suites / 893 active / 33 ignored / 728.9 pts | 4 suites / 893 active / 33 ignored / 728.9 pts | 4 suites / 893 active / 33 ignored / 728.9 pts |
-| transcription | 5 suites / 634 active / 37 ignored / 494.7 pts | 5 suites / 634 active / 37 ignored / 494.7 pts | 5 suites / 634 active / 37 ignored / 494.7 pts |
+| timeline | 4 suites / 897 active / 33 ignored / 731.7 pts | 4 suites / 897 active / 33 ignored / 731.7 pts | 4 suites / 897 active / 33 ignored / 731.7 pts |
+| transcription | 5 suites / 638 active / 37 ignored / 497.5 pts | 5 suites / 638 active / 37 ignored / 497.5 pts | 5 suites / 638 active / 37 ignored / 497.5 pts |
| ui-events | 4 suites / 693 active / 28 ignored / 529.0 pts | 3 suites / 645 active / 5 ignored / 495.4 pts | 3 suites / 645 active / 5 ignored / 495.4 pts |
| vision-capture | 5 suites / 472 active / 32 ignored / 377.4 pts | 5 suites / 476 active / 32 ignored / 382.9 pts | 4 suites / 467 active / 31 ignored / 373.9 pts |
@@ -133,7 +133,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| db-runtime-reliability | screenpipe-db | windows, macos, linux | database, performance | performance-liveness | high | partial | mixed | 12 | 27 | 6 | SQLite hard-fault classification, failpoint VFS injection, fresh-identity recovery verification with integrity/FK/write canaries, query cancellation, close-severs-connections regressions, multi-pool WAL parity, runtime version pinning, and WAL chaos plus memory-pressure probes. |
| db-search-indexing | screenpipe-db | windows, macos, linux | db-search, ocr, accessibility, performance | local-api-search, capture-ocr-pipeline, accessibility-ui-events, performance-liveness | high | strong | mixed | 13 | 101 | 4 | FTS, tokenizer, OCR snapshot search, query planning, ordering, accessibility search, and contention coverage. |
| db-timeline-frames | screenpipe-db | windows, macos, linux | database, timeline, storage, performance | timeline-streaming, performance-liveness | high | strong | mixed | 17 | 169 | 3 | Frame/audio joins, timeline query shape, suggestions frames, write queue, DB primitives (src/db.rs split into src/db/ modules), feedback record upserts, media eviction anti-join regressions, SAF output registry, semantic storage, and timeline performance. |
-| engine-api-routes | screenpipe-engine | windows, macos, linux | local-api, timeline, meeting, transcription | local-api-search, timeline-streaming, meeting-live-notes, audio-record-transcribe | high | partial | mixed | 30 | 300 | 4 | Route/unit coverage for search, health, streaming, meetings, time/timezone, and transcription. Legacy endpoint/websocket tests require local data and remain ignored. |
+| engine-api-routes | screenpipe-engine | windows, macos, linux | local-api, timeline, meeting, transcription | local-api-search, timeline-streaming, meeting-live-notes, audio-record-transcribe | high | partial | mixed | 30 | 304 | 4 | Route/unit coverage for search, health, streaming, meetings, time/timezone, and transcription. Legacy endpoint/websocket tests require local data and remain ignored. |
| engine-capture-timeline | screenpipe-engine | windows, macos, linux | vision-capture, timeline, storage, performance | capture-ocr-pipeline, timeline-streaming, performance-liveness | high | partial | mixed | 23 | 247 | 26 | Covers capture trigger logic, frame/audio linking, hot cache, timeline refresh regressions, fragmented MP4 extraction, and HD-mode control. Several real-data tests are intentionally ignored by default. |
| engine-config-lifecycle | screenpipe-engine | windows, macos, linux | configuration, engine-lifecycle, performance | settings-to-engine-config, engine-health-lifecycle, performance-liveness | high | strong | mixed | 11 | 111 | 1 | Fast logic coverage for the config bridge, tray health debounce, sleep/power policies, and queue backpressure. |
| engine-db-recovery-cli | screenpipe-engine | windows, macos, linux | database, engine-lifecycle | engine-health-lifecycle, performance-liveness | high | strong | unit | 1 | 8 | 0 | Exact DB/WAL/SHM working-copy preservation, rollback on archive failure, and restart repair for crashes during the multi-file generation swap. |
@@ -391,7 +391,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| engine-api-routes | screenpipe-engine | src/routes/data.rs | source | 2 | 0 | 2 |
| engine-api-routes | screenpipe-engine | src/routes/elements.rs | source | 25 | 1 | 26 |
| engine-api-routes | screenpipe-engine | src/routes/frames.rs | source | 7 | 1 | 8 |
-| engine-api-routes | screenpipe-engine | src/routes/health.rs | source | 27 | 0 | 27 |
+| engine-api-routes | screenpipe-engine | src/routes/health.rs | source | 31 | 0 | 31 |
| engine-api-routes | screenpipe-engine | src/routes/live_views.rs | source | 1 | 0 | 1 |
| engine-api-routes | screenpipe-engine | src/routes/meetings.rs | source | 4 | 0 | 4 |
| engine-api-routes | screenpipe-engine | src/routes/memories.rs | source | 5 | 0 | 5 |