Skip to content

feat(network): add organization outbound routing #31304

feat(network): add organization outbound routing

feat(network): add organization outbound routing #31304

Triggered via pull request September 11, 2026 21:37
Status Failure
Total duration 4m 16s
Artifacts

ci.yml

on: pull_request
Detect Version
0s
Detect Version
Migrate Dev DB  /  Apply Database Migrations
Migrate Dev DB / Apply Database Migrations
Detect Desktop Changes
0s
Detect Desktop Changes
Matrix: Build AMD64
Matrix: Build ARM64 (GHCR Only)
Matrix: Test and Build / oauth-postgres
Matrix: Test and Build / test-shard
Test and Build  /  Lint and Test
3m 25s
Test and Build / Lint and Test
Test and Build  /  Build App
4m 1s
Test and Build / Build App
Check Docs Changes
0s
Check Docs Changes
Matrix: Build Dev ECR
Deploy Trigger.dev (Dev)
0s
Deploy Trigger.dev (Dev)
Check Desktop Signing Secrets
0s
Check Desktop Signing Secrets
Migrate DB  /  Apply Database Migrations
Migrate DB / Apply Database Migrations
Create Desktop Prerelease
Create Desktop Prerelease
Promote Images
0s
Promote Images
Desktop Prerelease Build  /  Build, Sign, Notarize
Desktop Prerelease Build / Build, Sign, Notarize
Matrix: Create GHCR Manifests
Process Docs  /  Process Documentation Embeddings
Process Docs / Process Documentation Embeddings
Publish Desktop Prerelease
Publish Desktop Prerelease
Resolve Attestation Subjects
0s
Resolve Attestation Subjects
Prune Desktop Prereleases
Prune Desktop Prereleases
Matrix: Attest Images
Create GitHub Release
Create GitHub Release
Desktop Release  /  Build, Sign, Notarize
Desktop Release / Build, Sign, Notarize
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 9 warnings
Test and Build / Lint and Test
Process completed with exit code 1.
lib/core/network/gateway.server.test.ts > organization gateways over real TLS CONNECT sockets > routes and verifies TLS under the actual Bun runtime: apps/sim/lib/core/network/gateway.server.ts#L123
Error: Command failed: bun --no-env-file run /home/runner/_work/sim/sim/apps/sim/lib/core/network/fixtures/gateway-runtime.fixture.ts 37813 37197 /tmp/gateway-tls-nwATCu/cert.pem 118 | const socket = await openGatewayTunnel(gateway, address, port) 119 | if (connection.protocol !== 'https:') return socket 120 | return secureGatewayTunnel(socket, hostname, port) 121 | })().then( 122 | (socket) => callback(null, socket), 123 | () => callback(new OutboundRoutingError('GATEWAY_UNAVAILABLE'), null) ^ OutboundRoutingError: Outbound routing failed: GATEWAY_UNAVAILABLE code: "GATEWAY_UNAVAILABLE" at <anonymous> (/home/runner/_work/sim/sim/apps/sim/lib/core/network/gateway.server.ts:123:24) ::error file=apps/sim/lib/core/network/gateway.server.ts,line=123,col=24,title=OutboundRoutingError: Outbound routing failed%3A GATEWAY_UNAVAILABLE::%0A at <anonymous> (/home/runner/_work/sim/sim/apps/sim/lib/core/network/gateway.server.ts:123:24) Bun v1.4.1 (Linux x64) ❯ <anonymous> lib/core/network/gateway.server.ts:123:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 1, killed: false, signal: null, cmd: 'bun --no-env-file run /home/runner/_work/sim/sim/apps/sim/lib/core/network/fixtures/gateway-runtime.fixture.ts 37813 37197 /tmp/gateway-tls-nwATCu/cert.pem', stdout: '', stderr: '118 | const socket = await openGatewayTunnel(gateway, address, port)\n119 | if (connection.protocol !== \'https:\') return socket\n120 | return secureGatewayTunnel(socket, hostname, port)\n121 | })().then(\n122 | (socket) => callback(null, socket),\n123 | () => callback(new OutboundRoutingError(\'GATEWAY_UNAVAILABLE\'), null)\n ^\nOutboundRoutingError: Outbound routing failed: GATEWAY_UNAVAILABLE\n code: "GATEWAY_UNAVAILABLE"\n\n at <anonymous> (/home/runner/_work/sim/sim/apps/sim/lib/core/network/gateway.server.ts:123:24)\n\n::error file=apps/sim/lib/core/network/gateway.server.ts,line=123,col=24,title=OutboundRoutingError: Outbound routing failed%3A GATEWAY_UNAVAILABLE::%0A at <anonymous> (/home/runner/_work/sim/sim/apps/sim/lib/core/network/gateway.server.ts:123:24)\n\nBun v1.4.1 (Linux x64)\n' }
OutboundRoutingError: Outbound routing failed: GATEWAY_UNAVAILABLE: apps/sim/lib/core/network/gateway.server.ts#L123
at <anonymous> (/home/runner/_work/sim/sim/apps/sim/lib/core/network/gateway.server.ts:123:24)
Test and Build / Lint and Test
@sim/app#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
Test and Build / Lint and Test
Process completed with exit code 1.
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
Test and Build / Lint and Test
- Step: unknown (failed)
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
Test and Build / Lint and Test
- Step: unknown (failed)
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps
Test and Build / Lint and Test
Skipping sticky disk commit due to previous step failures
Test and Build / Lint and Test
- Step: unknown (failed)
Test and Build / Lint and Test
Found 2 failed/cancelled steps in previous workflow steps