improvement(files): pass user file objects around consistently #9581
ci.yml
on: pull_request
Detect Version
Test and Build
/
Test and Build
58s
Check Docs Changes
Matrix: Build AMD64
Matrix: Build ARM64 (GHCR Only)
Process Docs
/
Process Documentation Embeddings
Matrix: Create GHCR Manifests
Create GitHub Release
0s
Annotations
10 errors and 3 warnings
|
executor/handlers/api/api-handler.test.ts > ApiBlockHandler > should throw error for generally invalid URL format:
apps/sim/executor/handlers/api/api-handler.test.ts#L142
AssertionError: expected [Function] to throw error matching /…/invalid-url" - URL must include protocol but got 'url must use https:// protocol'
- Expected:
/^Invalid URL: "htp:\/invalid-url" - URL must include protocol/
+ Received:
"url must use https:// protocol"
❯ executor/handlers/api/api-handler.test.ts:142:5
|
|
executor/handlers/api/api-handler.test.ts > ApiBlockHandler > should throw error for invalid URL format (no protocol):
apps/sim/executor/handlers/api/api-handler.test.ts#L133
AssertionError: expected [Function] to throw error including 'Invalid URL: "example.com/api" - URL …' but got 'url must be a valid URL'
Expected: "Invalid URL: "example.com/api" - URL must include protocol (try "https://example.com/api")"
Received: "url must be a valid URL"
❯ executor/handlers/api/api-handler.test.ts:133:5
|
|
tools/utils.test.ts > executeRequest > should handle transformResponse with non-JSON response:
apps/sim/tools/utils.test.ts#L563
AssertionError: expected { success: false, output: {}, …(1) } to deeply equal { success: true, output: { …(2) } }
- Expected
+ Received
{
- "output": {
- "originalXml": "<xml><test>Mock XML response</test></xml>",
- "parsedData": "mocked xml parsing result",
- },
- "success": true,
+ "error": "url hostname could not be resolved",
+ "output": {},
+ "success": false,
}
❯ tools/utils.test.ts:563:20
|
|
tools/utils.test.ts > executeRequest > should handle JSON parse errors in error response:
apps/sim/tools/utils.test.ts#L529
AssertionError: expected { success: false, output: {}, …(1) } to deeply equal { success: false, output: {}, …(1) }
- Expected
+ Received
{
- "error": "Server Error",
+ "error": "url hostname could not be resolved",
"output": {},
"success": false,
}
❯ tools/utils.test.ts:529:20
|
|
tools/utils.test.ts > executeRequest > should handle network errors:
apps/sim/tools/utils.test.ts#L505
AssertionError: expected { success: false, output: {}, …(1) } to deeply equal { success: false, output: {}, …(1) }
- Expected
+ Received
{
- "error": "Network error",
+ "error": "url hostname could not be resolved",
"output": {},
"success": false,
}
❯ tools/utils.test.ts:505:20
|
|
tools/utils.test.ts > executeRequest > should handle error responses:
apps/sim/tools/utils.test.ts#L488
AssertionError: expected { success: false, output: {}, …(1) } to deeply equal { success: false, output: {}, …(1) }
- Expected
+ Received
{
- "error": "Invalid input",
+ "error": "url hostname could not be resolved",
"output": {},
"success": false,
}
❯ tools/utils.test.ts:488:20
|
|
tools/utils.test.ts > executeRequest > should use default transform response if not provided:
apps/sim/tools/utils.test.ts#L467
AssertionError: expected { success: false, output: {}, …(1) } to deeply equal { success: true, …(1) }
- Expected
+ Received
{
- "output": {
- "result": "success",
- },
- "success": true,
+ "error": "url hostname could not be resolved",
+ "output": {},
+ "success": false,
}
❯ tools/utils.test.ts:467:20
|
|
tools/utils.test.ts > executeRequest > should handle successful requests:
apps/sim/tools/utils.test.ts#L444
AssertionError: expected "spy" to be called with arguments: [ 'https://api.example.com', …(1) ]
Number of calls: 0
❯ tools/utils.test.ts:444:23
|
|
blocks/blocks.test.ts > Blocks Module > Input/Output Validation > should have valid output types:
apps/sim/blocks/blocks.test.ts#L454
AssertionError: expected [ 'string', 'number', 'boolean', …(4) ] to include 'file[]'
❯ blocks/blocks.test.ts:454:43
|
|
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
|