Skip to content

ci(e2e): one managed-SSH lane and routing regex; no relay build in e2e setup - #27640

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/p399-D5
Oct 12, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/p399-D5

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​47 $\color{#cf222e}{\Huge{\mathbf{−}}}$​98 $\color{#cf222e}{\Huge{\mathbf{−}}}$​51
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​47 $\color{#cf222e}{\Huge{\mathbf{−}}}$​176 $\color{#cf222e}{\Huge{\mathbf{−}}}$​129

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.

  • One managed-SSH lane. orcad-auto-convert-docker and orcad-journeys-docker in .github/workflows/e2e.yml become one orcad-ssh-docker job with a 2-way Playwright --shard matrix. It runs when any requested spec starts with tests/e2e/ssh-orcad- and passes that prefix to Playwright instead of 18 paths.
  • One selection rule. config/scripts/ci-e2e-job-selection.mjs replaces 18 per-spec constants (repeated in a list and a 17-way || chain) with MANAGED_SSH_E2E_SPEC_PREFIX. "Needs the shared e2e build" becomes "any spec other than the three whose jobs build their own app". The old-ref jq fallback uses the same prefix.
  • One harness regex. config/scripts/pr-e2e-source-routing.mjs shares one MANAGED_SSH_HARNESS regex across the six managed-SSH routes instead of six slightly different copies.
  • No relay in e2e setup. The Linux e2e build job no longer runs build:relay, tests/e2e/global-setup.ts no longer rebuilds it for SSH runs, and the e2e app launch helpers and workflow steps no longer inject ORCA_RELAY_PATH.

Why

build:relay now 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 for out/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- --list collects the 18 specs the two old jobs named (36 tests) plus ssh-orcad-windows-cli-matrix.spec.ts (2 tests), which skips itself when the host is docker. Its real run stays in ssh-windows-hosts.yml. Shards 1/2 and 2/2 collect 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 of e2e_needs_build matches the old rule for every input. e2e_run_changed differs 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.ts

  • pnpm tc, pnpm lint, pnpm run check:code-quality:changed all pass.

  • Playwright --list collection 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d8061154-6722-4334-871f-a577404ed1cc

📥 Commits

Reviewing files that changed from the base of the PR and between 7d78207dbcb2b31e27140e86e70e0e3f6d6b138f and b4600b0.


📒 Files selected for processing (2)
  • .github/workflows/e2e.yml
  • config/scripts/pr-e2e-source-routing.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.



📝 Walkthrough

Walkthrough

Managed SSH E2E specs are selected by a shared prefix and run in Docker workflow jobs with shard selection. Source routing uses a shared managed SSH harness pattern. The workflow and E2E launch helpers no longer build the Linux relay or set ORCA_RELAY_PATH. Routing tests and the expected workflow permission matrix reflect the updated jobs.


Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to b4600

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 | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 5 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly summarizes the main changes: consolidating the managed-SSH lane, sharing routing logic, and removing the E2E relay build.
Description check Passed The description includes all required sections and clearly explains the changes, rationale, testing, scope, platform impact, and checklist status. The missing linked issue is acceptable because the au…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 5 files. (1 skipped: 1 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@OrcaWin
OrcaWin merged commit e2b31cb into main Oct 12, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant