Skip to content

test(e2e): pair runtime-host recovery spec with two distinct servers - #39198

Merged
nwparker merged 1 commit into
mainfrom
nwparker/nightly-e2e-runtime-host-status-recovery
Nov 6, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/nightly-e2e-runtime-host-status-recovery

Conversation

@nwparker

@nwparker nwparker commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

A nightly end-to-end test was pairing the same Orca server twice under two different names. Orca deliberately stopped allowing that in October, so the test failed every night at its first step. The test now pairs two genuinely different servers, which is the setup it was trying to model.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​33 $\color{#cf222e}{\Huge{\mathbf{−}}}$​18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​12 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​12

What Changed

  • tests/e2e/runtime-host-status-recovery.spec.ts: the paired client now saves two different servers — the one whose connection the test cuts and restores ("Recovering host"), and a second, steady one ("Direct host"). For the desktop topology the steady server is a headless orca serve; for the headless topology it is the desktop app. Both servers have the test repository, so both show a workspace card.
  • The tooltip check now names the host (Project on Recovering host, Direct host disconnected). With two cards checked back to back, the first card's tooltip is still fading out in the page when the second one opens, and the old pattern /Project on/ matched both.
  • Added a PR e2e route so changes to the pairing store, the runtime status probe/slices, or the workspace-card host icon run this spec on PRs (with a routing test).

Before: both cases failed 6/6 nights with This server is already paired as "Direct host". After: both cases pass locally.

Why

The duplicate-pairing refusal comes from #31080 ("adding a server you already saved updates it instead of saving it twice"): two saved entries for one server publish identical workspaces and make writes ambiguous. That is an intended product rule, so the test, not the product, was wrong. The test's actual goal — one host goes offline and recovers while another stays verified, and independent viewers follow along — is unchanged and still asserted at the same strength; it just needs two real servers. Using the already-running desktop app as the second server keeps the cost to one extra headless host, which the headless topology already launched.

Linked Issue

N/A (nightly e2e failure; maintainer PR)

Visual Proof

N/A — test-only change; no product UI or behavior change.

Testing

  • ORCA_BACKGROUND_LAUNCH=1 ORCA_E2E_WEB_CLIENT=1 pnpm run test:e2e tests/e2e/runtime-host-status-recovery.spec.ts --workers=1 on macOS: both topologies pass (before: both fail at pairing).

  • pnpm test config/scripts/workflow/source-routing/pr-e2e-gate-contract.test.mjs, pnpm tc, pnpm run check:code-quality:changed, oxlint, format.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

Risk

Low. Test and CI routing only. The spec now launches a headless host in the desktop case as well (about 10 s more). Revert is a plain revert.

Level: Low

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.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I stated the risk
  • N/A visual proof with reason
  • Self-reviewed
  • SSH/remote impact considered: pairing guard is host-key based, unchanged here

Since #31080 a client keeps one saved entry per server, so pairing the same
host a second time under another name is refused. The steady 'Direct host' is
now a different server than the interrupted one. Tooltip checks name the host
so a closing tooltip from the previous card cannot match. Route the spec from
its pairing-store and runtime-status sources.
@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1fe49408-691f-4def-a11c-0f8a66c97e45
Commits

Reviewing files that changed from the base of the PR and between c21f3c5 and 5def1d8.

Files selected for processing: 3

  • config/scripts/workflow/source-routing/pr-e2e-gate-contract.test.mjs
  • config/scripts/workflow/source-routing/pr-feature-area-e2e-source-routes.mjs
  • tests/e2e/runtime-host-status-recovery.spec.ts
  • 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

@nwparker
nwparker merged commit 97530cc into main Nov 6, 2026
47 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