fix(snapshot): changed insert to upsert when concurrent identical child workflows are running #10280
Annotations
7 errors and 3 warnings
|
Run tests with coverage
Process completed with exit code 1.
|
|
Run tests with coverage:
apps/sim/lib/logs/execution/snapshot/service.ts#L41
Error: [vitest] No "workflowExecutionSnapshots" 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
}
})
❯ SnapshotService.createSnapshotWithDeduplication lib/logs/execution/snapshot/service.ts:41:15
❯ lib/logs/execution/snapshot/service.test.ts:528:21
|
|
Run tests with coverage:
apps/sim/lib/logs/execution/snapshot/service.ts#L41
Error: [vitest] No "workflowExecutionSnapshots" 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
}
})
❯ SnapshotService.createSnapshotWithDeduplication lib/logs/execution/snapshot/service.ts:41:15
❯ lib/logs/execution/snapshot/service.test.ts:502:21
|
|
Run tests with coverage:
apps/sim/lib/logs/execution/snapshot/service.ts#L41
Error: [vitest] No "workflowExecutionSnapshots" 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
}
})
❯ SnapshotService.createSnapshotWithDeduplication lib/logs/execution/snapshot/service.ts:41:15
❯ lib/logs/execution/snapshot/service.test.ts:468:17
|
|
Run tests with coverage:
apps/sim/lib/logs/execution/snapshot/service.ts#L41
Error: [vitest] No "workflowExecutionSnapshots" 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
}
})
❯ SnapshotService.createSnapshotWithDeduplication lib/logs/execution/snapshot/service.ts:41:15
❯ lib/logs/execution/snapshot/service.test.ts:429:36
|
|
Run tests with coverage:
apps/sim/lib/logs/execution/snapshot/service.ts#L41
Error: [vitest] No "workflowExecutionSnapshots" 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
}
})
❯ SnapshotService.createSnapshotWithDeduplication lib/logs/execution/snapshot/service.ts:41:15
❯ lib/logs/execution/snapshot/service.test.ts:392:36
|
|
Run tests with coverage
sim#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
|
|
Post Mount node_modules (Sticky Disk)
Skipping sticky disk commit due to previous step failures
|
|
Post Mount node_modules (Sticky Disk)
- Step: unknown (failed)
|
|
Post Mount node_modules (Sticky Disk)
Found 2 failed/cancelled steps in previous workflow steps
|
Loading