ci(cloud): egress probe in proxy and firewall modes, with streams, uploads, WebSocket, git and latency

Workstream C of the egress migration. `scripts/egress-probe.ts --mode proxy|firewall|both` flips the
same two dev workspaces with the operator egress-mode route and runs every check in each mode. Each
request is a Node fetch (undici, like the agents) with a 30 s limit, so the transform body hang shows
up as a named failure. New coverage:
- a chunked stream, a 1 MB upload and a WebSocket upgrade through the swap;
- a placeholder sent to an unrelated host must arrive unswapped;
- the WebSocket host fails closed;
- the LFS batch API, git fetch, push and delete;
- the App-repo clone through the desktop's create.
Latency is reported per class (median/p90). The terminal wait is now 15 min, and a project whose
clone failed is registered as a folder, so the checks still run.

On dev at 2cc12610 (A2+A3), firewall mode passes 22/22. Proxy-mode findings went to gh-access.
This commit is contained in:
Neil
2026-11-15 13:54:30 -08:00
parent 1d93777378
commit 46a1c8d79f
5 changed files with 378 additions and 119 deletions
+9 -1
View File
@@ -5,6 +5,13 @@ name: Cloud Egress Probe
# Details and the local run: cloud/apps/sandbox-control/scripts/README.md
on:
workflow_dispatch:
inputs:
mode:
description: EGRESS_SWAP_MODE to check (both runs proxy, then firewall, on the same workspaces)
required: false
default: both
type: choice
options: [both, firewall, proxy]
permissions:
contents: read
@@ -24,6 +31,7 @@ jobs:
env:
DEV_TEST_JWK: ${{ secrets.ORCA_DEV_TEST_JWK }}
DEV_OPERATOR_TOKEN: ${{ secrets.ORCA_DEV_OPERATOR_TOKEN }}
MODE: ${{ inputs.mode || 'both' }}
steps:
- name: Check the dev credentials are configured
id: creds
@@ -71,7 +79,7 @@ jobs:
printf '%s' "$DEV_TEST_JWK" > "$RUNNER_TEMP/dev-jwk.json"
printf '%s' "$DEV_OPERATOR_TOKEN" > "$RUNNER_TEMP/dev-operator"
ORCA_PROBE_DEV_JWK_FILE="$RUNNER_TEMP/dev-jwk.json" ORCA_PROBE_OPERATOR_TOKEN_FILE="$RUNNER_TEMP/dev-operator" \
pnpm --filter @orca-cloud/sandbox-control exec tsx scripts/egress-probe.ts > "$RUNNER_TEMP/egress-probe.json"
pnpm --filter @orca-cloud/sandbox-control exec tsx scripts/egress-probe.ts --mode "$MODE" > "$RUNNER_TEMP/egress-probe.json"
- uses: actions/upload-artifact@v4
if: always() && steps.creds.outputs.skip != '1'