improvement(repo): centralized zod contracts #15454
ci.yml
on: pull_request
Detect Version
Test and Build
/
Test and Build
3m 5s
Check Docs Changes
Matrix: Build Dev ECR
Matrix: Build ARM64 (GHCR Only)
Matrix: Build AMD64
Migrate Dev DB
/
Apply Database Migrations
Matrix: Create GHCR Manifests
Process Docs
/
Process Documentation Embeddings
Create GitHub Release
Annotations
10 errors and 6 warnings
|
app/api/function/execute/route.test.ts > Function Execute API Route > Basic Function Execution > should return computed result for multi-line code:
apps/sim/app/api/function/execute/route.test.ts#L291
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ app/api/function/execute/route.test.ts:291:31
|
|
app/api/function/execute/route.test.ts > Function Execute API Route > Basic Function Execution > should execute simple JavaScript code successfully:
apps/sim/app/api/function/execute/route.test.ts#L276
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ app/api/function/execute/route.test.ts:276:31
|
|
app/api/function/execute/route.test.ts > Function Execute API Route > Security Tests > should not expose require function:
apps/sim/app/api/function/execute/route.test.ts#L242
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ app/api/function/execute/route.test.ts:242:31
|
|
app/api/function/execute/route.test.ts > Function Execute API Route > Security Tests > should not expose process object:
apps/sim/app/api/function/execute/route.test.ts#L230
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ app/api/function/execute/route.test.ts:230:31
|
|
app/api/function/execute/route.test.ts > Function Execute API Route > Security Tests > should use isolated-vm for secure sandboxed execution:
apps/sim/app/api/function/execute/route.test.ts#L181
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ app/api/function/execute/route.test.ts:181:31
|
|
app/api/copilot/stats/route.test.ts:
apps/sim/lib/api/contracts/copilot.ts#L43
Error: [vitest] No "COPILOT_REQUEST_MODES" export is defined on the "@/lib/copilot/constants" 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("@/lib/copilot/constants"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/api/contracts/copilot.ts:43:16
❯ app/api/copilot/stats/route.ts:2:1
|
|
app/api/copilot/confirm/route.test.ts > Copilot Confirm API Route > rejects unsupported accepted and rejected confirmation statuses:
apps/sim/app/api/copilot/confirm/route.test.ts#L192
AssertionError: expected { Object (error) } to deeply equal { Object (error) }
- Expected
+ Received
{
- "error": "Invalid request data: Invalid notification status",
+ "error": "Invalid request data: Invalid option: expected one of \"background\"|\"success\"|\"error\"|\"cancelled\"",
}
❯ app/api/copilot/confirm/route.test.ts:192:43
|
|
app/api/copilot/api-keys/route.test.ts:
apps/sim/lib/api/contracts/copilot.ts#L43
Error: [vitest] No "COPILOT_REQUEST_MODES" export is defined on the "@/lib/copilot/constants" 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("@/lib/copilot/constants"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/api/contracts/copilot.ts:43:16
❯ lib/api/contracts/index.ts:9:1
|
|
tools/index.test.ts > Custom Tools > resolves custom tools through the async helper:
apps/sim/tools/index.test.ts#L479
AssertionError: expected undefined to be 'Custom Weather Tool' // Object.is equality
- Expected:
"Custom Weather Tool"
+ Received:
undefined
❯ tools/index.test.ts:479:30
|
|
Test and Build / Test and Build
sim#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
|
|
Test and Build / Test and Build
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Test and Build
- Step: unknown (failed)
|
|
Test and Build / Test and Build
Found 2 failed/cancelled steps in previous workflow steps
|
|
Test and Build / Test and Build
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Test and Build
- Step: unknown (failed)
|
|
Test and Build / Test and Build
Found 2 failed/cancelled steps in previous workflow steps
|