Skip to content

perf(prefetch): stop calling our own API over the wire during server render #26493

perf(prefetch): stop calling our own API over the wire during server render

perf(prefetch): stop calling our own API over the wire during server render #26493

Triggered via pull request August 13, 2026 06:48
Status Failure
Total duration 5m 58s
Artifacts

ci.yml

on: pull_request
Detect Version
Detect Version
Migrate Dev DB  /  Apply Database Migrations
Migrate Dev DB / Apply Database Migrations
Detect Desktop Changes
0s
Detect Desktop Changes
Matrix: Build AMD64
Matrix: Build ARM64 (GHCR Only)
Test and Build  /  Lint and Test
5m 43s
Test and Build / Lint and Test
Test and Build  /  Build App
2m 58s
Test and Build / Build App
Check Docs Changes
0s
Check Docs Changes
Matrix: Build Dev ECR
Deploy Trigger.dev (Dev)
0s
Deploy Trigger.dev (Dev)
Check Desktop Signing Secrets
0s
Check Desktop Signing Secrets
Migrate DB  /  Apply Database Migrations
Migrate DB / Apply Database Migrations
Create Desktop Prerelease
0s
Create Desktop Prerelease
Promote Images
0s
Promote Images
Desktop Prerelease Build  /  Build, Sign, Notarize
Desktop Prerelease Build / Build, Sign, Notarize
Matrix: Create GHCR Manifests
Process Docs  /  Process Documentation Embeddings
Process Docs / Process Documentation Embeddings
Publish Desktop Prerelease
0s
Publish Desktop Prerelease
Create GitHub Release
Create GitHub Release
Prune Desktop Prereleases
0s
Prune Desktop Prereleases
Desktop Release  /  Build, Sign, Notarize
Desktop Release / Build, Sign, Notarize
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 6 warnings
lib/table/__tests__/service-filter-threading.test.ts > queryRows byte budget > byte-cuts a BOUNDED page and returns a resume cursor instead of throwing: apps/sim/lib/table/rows/pending-delete-mask.ts#L24
Error: [vitest] No "tableJobs" export is defined on the "@sim/db" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@sim/db"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ pendingDeleteMask lib/table/rows/pending-delete-mask.ts:24:24 ❯ Module.queryRows lib/table/rows/service.ts:1094:28 ❯ lib/table/__tests__/service-filter-threading.test.ts:254:26
lib/table/__tests__/service-filter-threading.test.ts > queryRows byte budget > returns the entire result when an unbounded query fits the budget: apps/sim/lib/table/rows/pending-delete-mask.ts#L24
Error: [vitest] No "tableJobs" export is defined on the "@sim/db" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@sim/db"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ pendingDeleteMask lib/table/rows/pending-delete-mask.ts:24:24 ❯ Module.queryRows lib/table/rows/service.ts:1094:28 ❯ lib/table/__tests__/service-filter-threading.test.ts:243:26
lib/table/__tests__/service-filter-threading.test.ts > queryRows byte budget > fails fast when an UNBOUNDED query exceeds the byte budget (no partial page): apps/sim/lib/table/__tests__/service-filter-threading.test.ts#L236
AssertionError: expected [Function] to throw error matching /exceeds the 5MB limit/ but got '[vitest] No "tableJobs" export is def…' - Expected: /exceeds the 5MB limit/ + Received: "[vitest] No \"tableJobs\" export is defined on the \"@sim/db\" mock. Did you forget to return it from \"vi.mock\"? If you need to partially mock a module, you can use \"importOriginal\" helper inside: " ❯ lib/table/__tests__/service-filter-threading.test.ts:236:5
lib/table/__tests__/service-filter-threading.test.ts > queryRows byte budget > returns an empty page with a null cursor: apps/sim/lib/table/rows/pending-delete-mask.ts#L24
Error: [vitest] No "tableJobs" export is defined on the "@sim/db" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@sim/db"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ pendingDeleteMask lib/table/rows/pending-delete-mask.ts:24:24 ❯ Module.queryRows lib/table/rows/service.ts:1094:28 ❯ lib/table/__tests__/service-filter-threading.test.ts:223:26
lib/table/__tests__/service-filter-threading.test.ts > service filter threading > queryRows forwards columns to buildSortClause as well: apps/sim/lib/table/__tests__/service-filter-threading.test.ts#L106
AssertionError: expected "vi.fn()" to be called with arguments: [ { birthDate: 'asc' }, …(2) ] Number of calls: 0 ❯ lib/table/__tests__/service-filter-threading.test.ts:106:29
lib/table/__tests__/service-filter-threading.test.ts > service filter threading > queryRows forwards table.schema.columns to buildFilterClause: apps/sim/lib/table/__tests__/service-filter-threading.test.ts#L93
AssertionError: expected "vi.fn()" to be called 1 times, but got 0 times ❯ lib/table/__tests__/service-filter-threading.test.ts:93:31
lib/table/__tests__/find-row-matches.test.ts > findRowMatches > threads filter and sort through the SQL builders: apps/sim/lib/table/rows/pending-delete-mask.ts#L24
Error: [vitest] No "tableJobs" export is defined on the "@sim/db" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@sim/db"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ pendingDeleteMask lib/table/rows/pending-delete-mask.ts:24:24 ❯ Module.findRowMatches lib/table/rows/service.ts:970:28 ❯ lib/table/__tests__/find-row-matches.test.ts:105:11
lib/table/__tests__/find-row-matches.test.ts > findRowMatches > flags truncation and caps the result when the DB returns LIMIT+1 rows: apps/sim/lib/table/rows/pending-delete-mask.ts#L24
Error: [vitest] No "tableJobs" export is defined on the "@sim/db" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@sim/db"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ pendingDeleteMask lib/table/rows/pending-delete-mask.ts:24:24 ❯ Module.findRowMatches lib/table/rows/service.ts:970:28 ❯ lib/table/__tests__/find-row-matches.test.ts:98:26
lib/table/__tests__/find-row-matches.test.ts > findRowMatches > maps rows to matches, coercing the bigint ordinal and renaming the column: apps/sim/lib/table/rows/pending-delete-mask.ts#L24
Error: [vitest] No "tableJobs" export is defined on the "@sim/db" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@sim/db"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ pendingDeleteMask lib/table/rows/pending-delete-mask.ts:24:24 ❯ Module.findRowMatches lib/table/rows/service.ts:970:28 ❯ lib/table/__tests__/find-row-matches.test.ts:83:26
Test and Build / Lint and Test
sim#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
Test and Build / Lint and Test
Process completed with exit code 1.
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps