Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(ci): simplify e2e job execution

Steven Enamakela2fa1c70fcb5
diff --git a/.github/workflows/e2e-playwright.yml b/.github/workflows/e2e-playwright.yml
index 580ee17e51..ee0552ce57 100644
--- a/.github/workflows/e2e-playwright.yml
+++ b/.github/workflows/e2e-playwright.yml
@@ -127,57 +127,7 @@ jobs:
env:
OPENHUMAN_WORKSPACE: ${{ runner.temp }}/openhuman-playwright-workspace
OPENHUMAN_E2E_ALLOW_EPHEMERAL_KEY: "1"
- run: |
- mkdir -p "$OPENHUMAN_WORKSPACE"
- workspace_root="$OPENHUMAN_WORKSPACE"
- # These route-only files each create a browser context. Running them
- # together made the second bootstrap push the core to 929 MiB RSS,
- # where the hosted runner kills it without a Rust error. Give each
- # one its own core, then omit their titles from the regular matrix.
- export OPENHUMAN_WORKSPACE="$workspace_root/connections-aliases"
- mkdir -p "$OPENHUMAN_WORKSPACE"
- bash scripts/ci-cancel-aware.sh bash app/scripts/e2e-web-session.sh \
- test/playwright/specs/connections-tab-aliases.spec.ts
-
- export OPENHUMAN_WORKSPACE="$workspace_root/connections-deeplinks"
- mkdir -p "$OPENHUMAN_WORKSPACE"
- bash scripts/ci-cancel-aware.sh bash app/scripts/e2e-web-session.sh \
- test/playwright/specs/connections-tab-deeplinks.spec.ts
-
- # The Skills catalog tests intentionally start real connector-backed
- # discovery. On hosted runners, keeping that native module alive
- # across the next browser context exhausts the core process. Run
- # every assertion with a new core instead of dropping coverage.
- skills_index=0
- while IFS= read -r skills_test; do
- export OPENHUMAN_WORKSPACE="$workspace_root/skills-$skills_index"
- mkdir -p "$OPENHUMAN_WORKSPACE"
- bash scripts/ci-cancel-aware.sh bash app/scripts/e2e-web-session.sh \
- test/playwright/specs/skills-search-install.spec.ts \
- -g "$skills_test"
- skills_index=$((skills_index + 1))
- done <<'EOF'
- a burst of typing issues ONE catalog search
- a pause between words issues a second search
- a query with no matches leaves no catalog rows
- the typed text is preserved in the box while results load
- offers Install, and the button is enabled before it is pressed
- disables the button and shows Installing while the RPC is in flight
- a failed install re-enables the button rather than stranding it
- EOF
-
- # Each remaining shard gets a fresh standalone core. Keep the
- # shard's persisted state fresh too: reusing a workspace silently
- # carries every prior shard's transcripts and memory tree into the
- # next core process.
- for shard_index in $(seq 1 64); do
- shard="$shard_index/64"
- export OPENHUMAN_WORKSPACE="$workspace_root/shard-$shard_index"
- mkdir -p "$OPENHUMAN_WORKSPACE"
- bash scripts/ci-cancel-aware.sh bash app/scripts/e2e-web-session.sh \
- --shard="$shard" \
- --grep-invert='Connections (aliases|deep links)|Skills explorer'
- done
+ run: bash app/scripts/e2e-web-shards.sh --lane=${{ matrix.lane }} --lanes=4
- name: Pack Playwright E2E failure artifacts
if: failure()