Skip to content

improvement(resolver): use context variables for block outputs in function block code #16171

improvement(resolver): use context variables for block outputs in function block code

improvement(resolver): use context variables for block outputs in function block code #16171

Triggered via pull request May 6, 2026 07:06
Status Failure
Total duration 1m 35s
Artifacts

ci.yml

on: pull_request
Detect Version
Detect Version
Test and Build  /  Test and Build
1m 23s
Test and Build / Test and Build
Check Docs Changes
Check Docs Changes
Matrix: Build Dev ECR
Matrix: Build ARM64 (GHCR Only)
Matrix: Build AMD64
Migrate Dev DB  /  Apply Database Migrations
Migrate Dev DB / Apply Database Migrations
Matrix: Create GHCR Manifests
Process Docs  /  Process Documentation Embeddings
Process Docs / Process Documentation Embeddings
Create GitHub Release
0s
Create GitHub Release
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 6 warnings
Test and Build / Test and Build
Process completed with exit code 1.
tools/function/execute.test.ts > Function Execute Tool > Request Construction > should use default timeout and memory limit when not provided: apps/sim/tools/function/execute.test.ts#L100
AssertionError: expected { code: 'return 42', …(17) } to deeply equal { code: 'return 42', …(10) } - Expected + Received { "blockData": {}, "blockNameMapping": {}, "blockOutputSchemas": {}, "code": "return 42", + "contextVariables": {}, "envVars": {}, "isCustomTool": false, "language": "javascript", + "outputFormat": undefined, + "outputMimeType": undefined, + "outputPath": undefined, + "outputSandboxPath": undefined, + "outputTable": undefined, "timeout": 300000, "userId": undefined, "workflowId": undefined, "workflowVariables": {}, + "workspaceId": undefined, } ❯ tools/function/execute.test.ts:100:20
tools/function/execute.test.ts > Function Execute Tool > Request Construction > should format array of code blocks correctly: apps/sim/tools/function/execute.test.ts#L80
AssertionError: expected { …(18) } to deeply equal { …(11) } - Expected + Received @@ -3,13 +3,20 @@ "blockNameMapping": {}, "blockOutputSchemas": {}, "code": "const x = 40; const y = 2; return x + y;", + "contextVariables": {}, "envVars": {}, "isCustomTool": false, "language": "javascript", + "outputFormat": undefined, + "outputMimeType": undefined, + "outputPath": undefined, + "outputSandboxPath": undefined, + "outputTable": undefined, "timeout": 10000, "userId": undefined, "workflowId": undefined, "workflowVariables": {}, + "workspaceId": undefined, } ❯ tools/function/execute.test.ts:80:20
tools/function/execute.test.ts > Function Execute Tool > Request Construction > should format single string code correctly: apps/sim/tools/function/execute.test.ts#L52
AssertionError: expected { code: 'return 42', …(17) } to deeply equal { code: 'return 42', …(10) } - Expected + Received { "blockData": {}, "blockNameMapping": {}, "blockOutputSchemas": {}, "code": "return 42", + "contextVariables": {}, "envVars": {}, "isCustomTool": false, "language": "javascript", + "outputFormat": undefined, + "outputMimeType": undefined, + "outputPath": undefined, + "outputSandboxPath": undefined, + "outputTable": undefined, "timeout": 5000, "userId": undefined, "workflowId": undefined, "workflowVariables": {}, + "workspaceId": undefined, } ❯ tools/function/execute.test.ts:52:20
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
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
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
Found 2 failed/cancelled steps in previous workflow steps