Repository navigation
ci(e2e): one managed-SSH lane and routing regex; no relay build in e2e setup - #27640
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This change consolidates the managed-SSH Docker E2E jobs and removes the unused Linux relay build from CI. I found no concrete merge-blocking risk. The author reports that CI runs the new Docker lane, so that run should be checked before merging. Pre-merge checks |
|
7d78207 to
b4600b0
Compare
ELI5
The SSH end-to-end tests that run against a managed Orca server on a Docker host were split across two copy-pasted CI jobs, and every spec was listed by hand in four places. This makes it one job (split in two halves so it finishes as fast as before) that picks up every
tests/e2e/ssh-orcad-*spec by name prefix. It also stops building the old SSH relay before those tests, which nothing reads any more.What Changed
Nothing changes for users; this is CI and test-harness only.
orcad-auto-convert-dockerandorcad-journeys-dockerin.github/workflows/e2e.ymlbecome oneorcad-ssh-dockerjob with a 2-way Playwright--shardmatrix. It runs when any requested spec starts withtests/e2e/ssh-orcad-and passes that prefix to Playwright instead of 18 paths.config/scripts/ci-e2e-job-selection.mjsreplaces 18 per-spec constants (repeated in a list and a 17-way||chain) withMANAGED_SSH_E2E_SPEC_PREFIX. "Needs the shared e2e build" becomes "any spec other than the three whose jobs build their own app". The old-refjqfallback uses the same prefix.config/scripts/pr-e2e-source-routing.mjsshares oneMANAGED_SSH_HARNESSregex across the six managed-SSH routes instead of six slightly different copies.build:relay,tests/e2e/global-setup.tsno longer rebuilds it for SSH runs, and the e2e app launch helpers and workflow steps no longer injectORCA_RELAY_PATH.Why
build:relaynow emits only the WSL guest bundles (out/relay/wsl). The only code that reads them (relayBundleCandidates) runs for WSL, which is Windows-only, so Linux e2e never touched them. The global-setup skip check looked forout/relay/linux-x64/relay.js, a file the build deletes, so every SSH Docker run spent about 2 minutes rebuilding something it never used. The Windows serve job's relay build is left alone; a later PR renames it.A prefix rule rather than a hand-kept list means a new managed-SSH spec is picked up without editing four files. Sharding one job, not keeping two hand-split jobs, keeps the wall-clock time (the two jobs took about 16 and 8 minutes) without anyone having to decide which job a new spec belongs in.
Proof the same specs run:
playwright test tests/e2e/ssh-orcad- --listcollects the 18 specs the two old jobs named (36 tests) plusssh-orcad-windows-cli-matrix.spec.ts(2 tests), which skips itself when the host isdocker. Its real run stays inssh-windows-hosts.yml. Shards1/2and2/2collect 19 tests each, with no overlap. An independent reviewer compared old and new source routing across 29,939 tracked paths. No spec selection was lost. The shared harness regex only adds helper matches, and all of them land in the same single lane. Classification ofe2e_needs_buildmatches the old rule for every input.e2e_run_changeddiffers only for the Windows CLI matrix spec, which the Docker lane now owns.Net lines: production (workflow + CI scripts) −129, tests/harness −51.
Linked Issue
Phase 3.99 cleanup, PR D5 (no issue; maintainer cleanup).
Visual Proof
N/A: CI and e2e-harness only, no UI or behaviour change.
Testing
pnpm test config/scripts/ci-e2e-job-selection.test.mjs config/scripts/orcad-e2e-routing.test.mjs config/scripts/release-cut-token-permissions.test.mjs config/scripts/ssh-browser-e2e-routing.test.mjs config/scripts/pr-e2e-*.test.mjs config/scripts/wsl-e2e-lane-contract.test.mjs tests/e2e/global-setup-cli-artifact.unit.test.tspnpm tc,pnpm lint,pnpm run check:code-quality:changedall pass.Playwright
--listcollection for the new filter and both shards, as above. The Docker lane itself runs in this PR's CI.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Two independent read-only P0/P1 reviews (Opus self-review and a GPT-6.1 Sol reviewer) found no P0/P1 issues.
Agent skill upstream boundary
Notes
SSH: the managed-SSH Docker coverage is unchanged. Windows/WSL: the WSL relay bundle is still built by the Windows jobs that need it. Mixed versions: no wire change.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)