--- regression-before-20261027T155315.log +++ regression-after-20261027T155314.log @@ -1,128 +1,15 @@ -Source SHA: d73fd1279a9cbf3ef4677b88b4ad82f0a55583c7 +Source SHA: 20d22421d54cce014bfacdeb9d86de83a00a1e4b Test file: complete head test file, sha256 0998622157f2330350d7df0c31d4e2fe40f8277998a04a8d6fa33997a0c329b9 -Command: ['vp', 'test', 'run', 'apps/server/src/orchestration-v2/ProjectionStore.evidence-25696.test.ts', '-t', "lists every thread in the shell snapshot past SQLite's bound variable limit|reads the shell snapshot first and decodes it in a separate step|reads only the requested project's threads into a scoped shell snapshot|counts imported runless history inherited by fork shells|keeps fork visible items stable after a source run is rolled back"] +Command: ['vp', 'test', 'run', 'apps/server/src/orchestration-v2/ProjectionStore.test.ts'] note: You are running `vp test` as a Vite+ built-in command. If you meant to run the test npm script, use `vpr test` instead. - RUN v5.0.5 /home/ubuntu/wt/pr-25696-base - -stdout | src/orchestration-v2/ProjectionStore.evidence-25696.test.ts > lists every thread in the shell snapshot past SQLite's bound variable limit -[15:54:10.978] ERROR (#4): Error [ProjectionStoreReadError]: Failed to read orchestration projection for thread thread:shell. - at shellSnapshotReadError (/home/ubuntu/wt/pr-25696-base/apps/server/src/orchestration-v2/ProjectionStore.ts:6475:7) - at file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:1483:96 { - _tag: 'ProjectionStoreReadError', - threadId: 'thread:shell', - [cause]: Error [effect/sql/SqlError]: Failed to prepare statement - at catch (/home/ubuntu/wt/pr-25696-base/packages/shared/src/nodeSqliteClient.ts:981:11) { - _tag: 'SqlError', - reason: { - _tag: 'UnknownError', - cause: [Error], - message: 'Failed to prepare statement', - operation: 'prepare', - '~effect/sql/SqlError/Reason': '~effect/sql/SqlError/Reason' - }, - '~effect/sql/SqlError': '~effect/sql/SqlError', - [cause]: Error [effect/sql/SqlError/UnknownError]: Failed to prepare statement - at classifySqliteError (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/sql/SqlError.js:486:16) - at classifyError (/home/ubuntu/wt/pr-25696-base/packages/shared/src/nodeSqliteClient.ts:161:10) - at catch (/home/ubuntu/wt/pr-25696-base/packages/shared/src/nodeSqliteClient.ts:982:21) { - _tag: 'UnknownError', - operation: 'prepare', - '~effect/sql/SqlError/Reason': '~effect/sql/SqlError/Reason', - [cause]: [Error] - } - } -} - - ❯ |t3| src/orchestration-v2/ProjectionStore.evidence-25696.test.ts (47 tests | 1 failed | 42 skipped) 2303ms - × lists every thread in the shell snapshot past SQLite's bound variable limit 1569ms - -⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ - - FAIL |t3| src/orchestration-v2/ProjectionStore.evidence-25696.test.ts > lists every thread in the shell snapshot past SQLite's bound variable limit -ProjectionStoreReadError: Failed to read orchestration projection for thread thread:shell. - ❯ shellSnapshotReadError src/orchestration-v2/ProjectionStore.ts:6475:7 - 6473| - 6474| const shellSnapshotReadError = (cause: unknown) => - 6475| new ProjectionStoreReadError({ threadId: ThreadId.make("thread:s… - | ^ - 6476| - 6477| const readShellSnapshotRows = Effect.fn("ProjectionStore.readShell… - ❯ ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:3384:72 - ❯ PrimitiveImpl.~effect/Effect/args ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1058:95 - ❯ ~effect/Effect/evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:981:22 - ❯ FiberImpl.runLoop ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:654:41 - ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:595:23 - ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:589:27 - ❯ ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1159:17 - ❯ go ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:5189:11 - -Caused by: effect/sql/SqlError: Failed to prepare statement - ❯ catch ../../packages/shared/src/nodeSqliteClient.ts:981:11 - ❯ PrimitiveImpl.~effect/Effect/args ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:761:19 - ❯ ~effect/Effect/evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:709:22 - ❯ FiberImpl.runLoop ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97 - ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23 - ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:396:27 - ❯ ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:808:17 - ❯ go ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2325:11 - ❯ Array. ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2296:29 - -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ -Serialized Error: { _tag: 'SqlError', reason: { _tag: 'UnknownError', cause: { stack: 'Error: too many SQL variables - at /home/ubuntu/wt/pr-25696-base/packages/shared/src/nodeSqliteClient.ts:976:73 - at withClassification (/home/ubuntu/wt/pr-25696-base/packages/shared/src/nodeSqliteClient.ts:928:16) - at try (/home/ubuntu/wt/pr-25696-base/packages/shared/src/nodeSqliteClient.ts:976:29) - at PrimitiveImpl.~effect/Effect/args (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:759:22) - at ~effect/Effect/evaluate (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:709:22) - at FiberImpl.runLoop (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97) - at FiberImpl.evaluate (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23) - at AsyncResource.runInAsyncScope (node:async_hooks:226:14) - at FiberImpl.evaluate (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:396:27) - at file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:808:17', message: 'too many SQL variables', code: 'ERR_SQLITE_ERROR', errcode: 1, errstr: 'SQL logic error', errno: 1, constructor: 'Function', name: 'Error', toString: 'Function' }, message: 'Failed to prepare statement', operation: 'prepare', '~effect/sql/SqlError/Reason': '~effect/sql/SqlError/Reason', stack: 'effect/sql/SqlError/UnknownError: Failed to prepare statement - at classifySqliteError (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/sql/SqlError.js:486:16) - at classifyError (/home/ubuntu/wt/pr-25696-base/packages/shared/src/nodeSqliteClient.ts:161:10) - at catch (/home/ubuntu/wt/pr-25696-base/packages/shared/src/nodeSqliteClient.ts:982:21) - at PrimitiveImpl.~effect/Effect/args (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:761:19) - at ~effect/Effect/evaluate (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:709:22) - at FiberImpl.runLoop (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97) - at FiberImpl.evaluate (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23) - at AsyncResource.runInAsyncScope (node:async_hooks:226:14) - at FiberImpl.evaluate (file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:396:27) - at file:///home/ubuntu/wt/pr-25696-base/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:808:17', name: 'effect/sql/SqlError/UnknownError' }, '~effect/sql/SqlError': '~effect/sql/SqlError' } -Caused by: effect/sql/SqlError/UnknownError: Failed to prepare statement - ❯ classifySqliteError ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/sql/SqlError.js:486:16 - ❯ classifyError ../../packages/shared/src/nodeSqliteClient.ts:161:10 - ❯ catch ../../packages/shared/src/nodeSqliteClient.ts:982:21 - ❯ PrimitiveImpl.~effect/Effect/args ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:761:19 - ❯ ~effect/Effect/evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:709:22 - ❯ FiberImpl.runLoop ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97 - ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23 - ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:396:27 - ❯ ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:808:17 - -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ -Serialized Error: { _tag: 'UnknownError', operation: 'prepare', '~effect/sql/SqlError/Reason': '~effect/sql/SqlError/Reason' } -Caused by: Error: too many SQL variables - ❯ ../../packages/shared/src/nodeSqliteClient.ts:976:73 - ❯ withClassification ../../packages/shared/src/nodeSqliteClient.ts:928:16 - ❯ try ../../packages/shared/src/nodeSqliteClient.ts:976:29 - ❯ PrimitiveImpl.~effect/Effect/args ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:759:22 - ❯ ~effect/Effect/evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:709:22 - ❯ FiberImpl.runLoop ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97 - ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23 - ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:396:27 - ❯ ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:808:17 - -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ -Serialized Error: { code: 'ERR_SQLITE_ERROR', errcode: 1, errstr: 'SQL logic error', errno: 1 } -⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ + RUN v5.0.5 /home/ubuntu/wt/pr-25696 - Test Files 1 failed (1) - Tests 1 failed | 4 passed | 42 skipped (47) - Start at 15:53:34 - Duration 37.37s (transform 74%, setup 13%, import 7%, tests 6%) + Test Files 1 passed (1) + Tests 47 passed (47) + Start at 15:53:30 + Duration 47.86s (transform 61%, tests 22%, setup 11%, import 5%) -EXIT 1 +EXIT 0