Skip to content

perf(files): resolve name references through an index instead of listing the workspace #35681

perf(files): resolve name references through an index instead of listing the workspace

perf(files): resolve name references through an index instead of listing the workspace #35681

Triggered via pull request October 10, 2026 22:53
Status Failure
Total duration 15m 39s
Artifacts 9

ci.yml

on: pull_request
version
0s
version
checks  /  desktop-changes
11s
checks / desktop-changes
desktop-changes
0s
desktop-changes
trigger-upload
0s
trigger-upload
Matrix: checks / e2e
Matrix: checks / integration
Matrix: checks / test
Matrix: image-amd64
Matrix: image-arm64
Matrix: image-dev
docs-changes
0s
docs-changes
migrate-dev  /  migrate
migrate-dev / migrate
desktop-signing
0s
desktop-signing
prerelease-create
prerelease-create
migrate  /  migrate
migrate / migrate
prerelease-build  /  build
prerelease-build / build
promote
0s
promote
prerelease-publish
prerelease-publish
Matrix: ghcr
docs  /  embeddings
docs / embeddings
trigger-promote
0s
trigger-promote
prerelease-prune
0s
prerelease-prune
attest-subjects
0s
attest-subjects
Matrix: attest
release
0s
release
desktop-release  /  build
desktop-release / build
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 32 warnings, and 1 notice
checks / lint
Process completed with exit code 1.
checks / e2e (stop-after)
Process completed with exit code 1.
checks / test (1/2)
Process completed with exit code 1.
lib/uploads/contexts/workspace/workspace-file-reference.test.ts > resolveWorkspaceFileReference > excludes chat uploads from UUID lookup without opt-in: apps/sim/lib/uploads/contexts/workspace/workspace-file-reference.test.ts#L216
AssertionError: promise rejected "Error: [vitest] No "displaySegmentKey" ex… { codeFrame: '…' }" instead of resolving ❯ lib/uploads/contexts/workspace/workspace-file-reference.test.ts:216:55 Caused by: Caused by: Error: [vitest] No "displaySegmentKey" export is defined on the "@sim/db/schema" 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/schema"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ listWorkspaceFileReferenceCandidates lib/uploads/contexts/workspace/workspace-file-manager.ts:1843:18 ❯ Module.resolveWorkspaceFileReference lib/uploads/contexts/workspace/workspace-file-manager.ts:1814:28 ❯ lib/uploads/contexts/workspace/workspace-file-reference.test.ts:216:5
lib/uploads/contexts/workspace/workspace-file-reference.test.ts > resolveWorkspaceFileReference > never consults chat uploads without the opt-in: apps/sim/lib/uploads/contexts/workspace/workspace-file-reference.test.ts#L143
AssertionError: promise rejected "Error: [vitest] No "displaySegmentKey" ex… { codeFrame: '…' }" instead of resolving ❯ lib/uploads/contexts/workspace/workspace-file-reference.test.ts:143:71 Caused by: Caused by: Error: [vitest] No "displaySegmentKey" export is defined on the "@sim/db/schema" 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/schema"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ listWorkspaceFileReferenceCandidates lib/uploads/contexts/workspace/workspace-file-manager.ts:1843:18 ❯ Module.resolveWorkspaceFileReference lib/uploads/contexts/workspace/workspace-file-manager.ts:1814:28 ❯ lib/uploads/contexts/workspace/workspace-file-reference.test.ts:143:5
lib/mothership/request/go/file-preview-adapter.test.ts > processFilePreviewStreamEvent — preview target resolution > keeps the path target and does not throw when resolution fails: apps/sim/lib/mothership/request/go/file-preview-adapter.test.ts#L354
AssertionError: promise rejected "Error: [vitest] No "displaySegmentKey" ex… { codeFrame: '…' }" instead of resolving ❯ lib/mothership/request/go/file-preview-adapter.test.ts:354:5 Caused by: Caused by: Error: [vitest] No "displaySegmentKey" export is defined on the "@sim/db/schema" 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/schema"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ listWorkspaceFileReferenceCandidates lib/uploads/contexts/workspace/workspace-file-manager.ts:1843:18 ❯ resolveWorkspaceFileReference lib/uploads/contexts/workspace/workspace-file-manager.ts:1814:28 ❯ isFileTabTarget lib/mothership/request/go/file-preview-adapter.ts:153:7 ❯ Module.processFilePreviewStreamEvent lib/mothership/request/go/file-preview-adapter.ts:470:13 ❯ lib/mothership/request/go/file-preview-adapter.test.ts:345:5
checks / test (1/2)
@sim/app#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test --shard=1/2 exited (1)
checks / integration (migrate, 3/4)
Process completed with exit code 1.
checks / integration (push, 3/4)
Process completed with exit code 1.
checks / ci
Process completed with exit code 1.
checks / ci
Checks did not pass:
checks / e2e (stop-after)
[git-mirror] Skipping cache commit: Found 2 failed/cancelled steps
checks / e2e (stop-after)
[git-mirror] - Step: unknown (failed)
checks / e2e (stop-after)
Skipping sticky disk commit due to previous step failures
checks / e2e (stop-after)
- Step: unknown (failed)
checks / e2e (stop-after)
Found 2 failed/cancelled steps in previous workflow steps
checks / e2e (stop-after)
Skipping sticky disk commit due to previous step failures
checks / e2e (stop-after)
- Step: unknown (failed)
checks / e2e (stop-after)
Found 2 failed/cancelled steps in previous workflow steps
checks / test (1/2)
[git-mirror] Skipping cache commit: Found 2 failed/cancelled steps
checks / test (1/2)
Skipping sticky disk commit due to previous step failures
checks / test (1/2)
Found 2 failed/cancelled steps in previous workflow steps
checks / test (1/2)
Skipping sticky disk commit due to previous step failures
checks / test (1/2)
Found 2 failed/cancelled steps in previous workflow steps
checks / test (1/2)
Skipping sticky disk commit due to previous step failures
checks / test (1/2)
Found 2 failed/cancelled steps in previous workflow steps
checks / integration (migrate, 3/4)
[git-mirror] Skipping cache commit: Found 2 failed/cancelled steps
checks / integration (migrate, 3/4)
[git-mirror] - Step: unknown (failed)
checks / integration (migrate, 3/4)
Skipping sticky disk commit due to previous step failures
checks / integration (migrate, 3/4)
- Step: unknown (failed)
checks / integration (migrate, 3/4)
Found 2 failed/cancelled steps in previous workflow steps
checks / integration (migrate, 3/4)
Skipping sticky disk commit due to previous step failures
checks / integration (migrate, 3/4)
- Step: unknown (failed)
checks / integration (migrate, 3/4)
Found 2 failed/cancelled steps in previous workflow steps
checks / integration (push, 3/4)
[git-mirror] Skipping cache commit: Found 2 failed/cancelled steps
checks / integration (push, 3/4)
[git-mirror] - Step: unknown (failed)
checks / integration (push, 3/4)
Skipping sticky disk commit due to previous step failures
checks / integration (push, 3/4)
- Step: unknown (failed)
checks / integration (push, 3/4)
Found 2 failed/cancelled steps in previous workflow steps
checks / integration (push, 3/4)
Skipping sticky disk commit due to previous step failures
checks / integration (push, 3/4)
- Step: unknown (failed)
checks / integration (push, 3/4)
Found 2 failed/cancelled steps in previous workflow steps
Slow Test: apps/desktop/e2e/desktop-tools-live-sim.spec.ts#L0
apps/desktop/e2e/desktop-tools-live-sim.spec.ts took 6.5m
🎭 Playwright Run Summary
12 passed (7.4m)

Artifacts

Produced during runtime
Name Size Digest
http-e2e-stop-after
4.12 KB
sha256:402f8c0a94282d0449cfda41f51f3c65709d1a395f52aaee7e0ce12e30589f35
integration-reports-migrate-1
16.3 KB
sha256:a905ea9db9ef58d599eafac9a9f6dafcfaf5cf72df1e0542c3ef90de0026218c
integration-reports-migrate-2
35.1 KB
sha256:136d0859f5586e6f288e806bcae7d9e171ebce510d8573891c3acd0c0df5514f
integration-reports-migrate-3
29.4 KB
sha256:74963dda0a2f32441bad30568508c23c0f3328fa8fdd76899f3fd725715c9d25
integration-reports-migrate-4
29.3 KB
sha256:a5ece1ac46867d21b51d7a800e8122fae627c0df8e7fbe5cea8d2a6f81aeff17
integration-reports-push-1
17.9 KB
sha256:a1ad03b42fb6e4d5f815e89db1f17a14c0fd02125a02ee72ac4d6308663fd63d
integration-reports-push-2
34.7 KB
sha256:1962f96f82559b873d61fb28cefe0a3fda5ba5a4d72d29201dee02477d03c90e
integration-reports-push-3
29.4 KB
sha256:89c070f2603ee8d7d001845ee13f501e488680b2afbbea43e39b703215f00d00
integration-reports-push-4
29.4 KB
sha256:f14365accbf33b1062a8bbb2f2f2b247ce88183e1da9d6c7bb06481145faeab9