Repository navigation
test(e2e): pair runtime-host recovery spec with two distinct servers - #39198
Merged
Merged
Conversation
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.
Contributor
|
Warning Review limit reachedYou'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. View limit details
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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 headlessorca serve; for the headless topology it is the desktop app. Both servers have the test repository, so both show a workspace card.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.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=1on 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
Checklist
N/Avisual proof with reason