Skip to content

refactor(e2e): group journeys by feature and repair browser recovery - #43628

Merged
nwparker merged 8 commits into
mainfrom
module-layout-v2/e2e-journeys-1fadf2a5
Nov 17, 2026
Merged

nwparker merged 8 commits into
mainfrom
module-layout-v2/e2e-journeys-1fadf2a5

Conversation

@nwparker

@nwparker nwparker commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Put E2E journeys and their fixtures beside the feature they exercise, so the test tree is navigable without a large flat root or a generic helpers directory.

Files Added Deleted Net
Test 811 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4515 $\color{#cf222e}{\Huge{\mathbf{−}}}$​86096 $\color{#cf222e}{\Huge{\mathbf{−}}}$​81581
Prod 64 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1428 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5070 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3642

What Changed

  • Group retained journeys and all 271 support files by owning feature, including terminal, browser, integrations, orchestration, remote runtimes, desktop fixtures, and golden journeys.
  • Update direct imports, test discovery, CI selectors, runner commands, resource references, existing CI fixture copy lists, and ratchet paths to the concrete owners.
  • Apply repository policy to touched tests. Retire exclusive jobs for removed tests and preserve complete historical reliability records while removing obsolete active coverage claims. Removed alarms have no claimed replacement coverage.
  • Preserve support/golden contents, initialization order, caches and fixture identity. Carry forward incoming main changes, including retirement of unused terminal benchmark support.
  • Wait through asynchronous browser-page registration only during the initial bounded readiness checks; keep later input and grab assertions strict. Move unchanged host-focus probes to their concrete owner and use the local page ID when focusing a materialized remote page.
  • Repair failures exposed by running the retained E2E journeys: wait for FedCM guest startup, locate the running-command action semantically, observe virtual sidebar children through scrolling, cache the launched Electron process for cleanup, and retain the first atomically bound host port for restart.
  • Keep newly merged settings defaults within the lint limit by moving the unchanged commit-message defaults into the existing source-control settings owner; preserve fresh maps on every call.
  • Keep viewport recovery progressing after navigation: incompatible live frames coalesce while the recovery timer or capture is active, so they cannot indefinitely reset the recovery deadline. Preserve real navigation, viewport, accepted-frame and stop invalidation.
  • Open the Installed plugin list before checking installed developer plugins; retain all publisher assertions.
  • Wait for a closed Unix helper session socket to disappear before creating its replacement proxy or sending a command. Observe only the exact session path, preserve ownership requirements for reset skips and sweeps, and reject when exit cannot be established within the bound. No command replay. Windows/no-location behavior is unchanged.
  • Retain bounded, redacted host-process tails and exit code/signal after pairing readiness. Observe root exit even when inherited pipes remain open, and detach diagnostics before intentional stop or disposal.
  • Fix remote-browser activation: an ordinary snapshot could consume a version before its caller-only follow request arrived, leaving the desktop on the source tab. Consume that live follow once at the same version, while rejecting duplicate and stale follows.

Why

This is the final planned module-layout batch. The test tree should express the same concrete ownership as the application code.

Linked Issue

Maintainer-directed cleanup; no existing linked issue.

Visual Proof

Folder ownership and references do not change presentation. The remote-browser activation correction is exercised through a hidden renderer: a real streamed link click opens and selects the destination, while scripted/agent clicks leave the current view selected.

Testing

  • 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

No tests added. Existing tests move, receive narrowly scoped repairs, or retire under repository policy. Independent reviews cover source conservation, imports, initialization, caller/resource closure, test policy, the follow correction and incoming main carry.

  • Previously validated 15 owning/runner unit files (38 cases), three freshly built hidden Electron golden journeys and the full hosted type-aware lint configuration.
  • Current fixes: two native fixture unit files (five cases), web typecheck, scoped lint/format and changed-code quality pass. Ten affected E2E cases passed across scoped hidden-renderer runs, including both sidebar styles and the final ghost-subscriber retry. Earlier ghost pixel failures remain documented; this does not establish flake elimination.
  • Pristine base reproduced the dialog, FedCM, sidebar and remote-browser activation failures. The retained activation test fails before the production correction and passes afterward.
  • Previous pre-push gate after the settings extraction: all 49 non-unit checks passed; broad units exceeded the three-minute cap and reported the same two rebuild-watcher failures reproduced on pristine main. An earlier eight-minute run also reported three WSL fallback failures reproduced identically in isolated branch and pristine-main runs. No full local unit/gate pass is claimed.
  • Existing persistence tests for the settings extraction: two files / three cases pass; scoped type-aware lint and formatting pass.
  • Latest fixture corrections: four browser-input/top-layer cases pass on a fresh hidden-renderer build, and the corrected page-target ghost journey passes in 37.8 seconds. Earlier hosted/local ghost failures remain recorded; no flake-elimination claim.
  • Diagnosed frozen frames with temporary log-only instrumentation, then removed it byte-for-byte: 448 incompatible frames caused 450 recovery schedules over 89.6 seconds, and the 250 ms recovery timer never fired. The unchanged ghost journey failed before the coalescing fix.
  • Current repairs: all three retained journeys passed twice (six cases); six existing stream/viewport unit cases pass. Fresh rebased-head hidden-renderer ghost integration passes in 40.8 seconds. Independent source/perf review covers pending and in-flight ownership, navigation/viewport/live-frame/stop invalidation, and cleanup.
  • A pristine-main control reproduced the plugin missing-row failure. Cold restore and ghost passed in that particular control run; no pristine ghost/cold runtime failure or flake-elimination claim is made. Temporary checkout removed; packages reused from the global store.
  • Latest daemon handoff: five immediate close/snapshot controls reproduce the hosted EOF; all five using the actual production fence instead receive the expected structured refusal from the deliberately unavailable CDP endpoint. A held socket rejects with browser_owner_unavailable; reset-skip ownership rules remain intact. Twelve existing owning-unit cases pass.
  • Six repeated retained embedded-owner/ghost journeys pass on a fresh build. Fresh rebuilt integration after rebase passes both journeys (58.7 seconds). The diagnostic seam records root exit 17 while inherited pipes remain open, redacts pairing material, and releases all owned listeners.
  • The previous hosted ghost first-frame failure followed a host process exit. Its cause was not captured; this patch adds diagnostics and does not claim a host-crash fix or flake elimination.
  • Hosted Linux/Windows and advisory E2E checks on the final head must pass before merge.

Rebased onto main fdf375041857; current head f9f0bff2fefe. Independent full-tree reconstruction preserves all six incoming commits / 47 paths, except the continuing policy-directed retirement of the mixed Linear CLI test file (one newly retired registration/case, no replacement-coverage claim). All incoming production changes are exact. Fresh rebuilt embedded-owner and ghost integration: both cases pass (1 minute).

Previous 12f79eba3d3: 81 hosted successes, six skips, one failed E2E job. The modal-grab initial readiness check timed out while its first browser.eval RPC remained pending until teardown; its grab assertions never ran. The popover and all other retained hosted journeys passed. Four repeated existing modal/popover cases pass locally (22.3 seconds); this does not establish the hosted cause or flake elimination. The earlier embedded EOF and ghost first-frame failures did not recur in that run. Detailed failed-run evidence is retained locally. Final-head hosted checks remain required before merge.

Current f9f0bff2fefe first hosted attempt: 81 successes, six skips, one failed changed-E2E shard. Modal/top-layer, embedded-owner and ghost journeys pass. The failure is shell-after-agent-exit setup: the New Terminal option never appears after the New tab click, before shell creation/assertions. The unchanged journey passes locally (42.7 seconds); its journey/tab-menu/terminal sources have no changes from the prior hosted head where it passed. The trace shows a closed menu but does not establish a focus/lifecycle cause. The single controlled rerun of that failed job passes (12m8s). Final active hosted results: 82 successes, six skips, zero pending or failed checks. Original failure evidence is retained; no speculative source edit, assertion relaxation or flake-elimination claim.

Latest-main carry authenticated through fa4ff2a51e20: nine incoming commits / 106 paths; independent complete-tree reconstruction matches. All incoming entries/absences are preserved; package.json composes the runner moves with Electron 43.8.10. Browser main-frame readiness and journal performance fixes remain exact. Actual squash a16afc4e6789 has sole parent 36d22fd0aec7 and tree da73397de435. Independent full-tree authentication confirms the final incoming browser fix and every reviewed change are preserved. The local tracker is complete: 170/170 residual scopes, zero remaining.

Final pre-push check:changed --timeout=3: all 49 non-unit checks pass; broad units reach the three-minute cap (181.3 seconds overall) and report the same two rebuild-watcher failures previously reproduced on pristine main. No full local unit/gate pass is claimed.

Risk

Level: Medium

A stale import, selector or resource path could prevent a retained test from loading or silently reduce its participation. The browser follow correction must not replay focus from a duplicate/stale event; independent review verifies the existing runtime, publication and received-frame fences remain, with one consumed flag on the existing freshness record. Collection, typecheck, static gates, selected owning-layer tests, representative hidden-renderer journeys and hosted checks validate those boundaries. Intentionally removed tests reduce their original coverage; support data and historical records are preserved. A plain revert restores the batch.

Review

Independent source-conservation, test-policy, resource/runner, eager-evaluation, and actual-parent carry reviews. Detailed evidence and planning remain local.

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

Preserve local/remote, mobile, folder-workspace and cross-platform guards. Native-focus, visible-window, WSL, IME and isolated infrastructure lanes require their existing hosted environments.

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)
  • I stated the risk: what could break, for whom, and how to back it out
  • 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)

This intentionally uses a larger cohesive batch. No planning documents are committed.

@nwparker
nwparker force-pushed the module-layout-v2/e2e-journeys-1fadf2a5 branch 3 times, most recently from 92dd95f to fa8ded5 Compare November 17, 2026 17:59
@nwparker nwparker changed the title refactor(e2e): group journeys and fixtures by feature ownership refactor(e2e): group journeys by feature and repair browser recovery Nov 17, 2026
@nwparker
nwparker force-pushed the module-layout-v2/e2e-journeys-1fadf2a5 branch from fa8ded5 to 12f79eb Compare November 17, 2026 18:37
@nwparker
nwparker force-pushed the module-layout-v2/e2e-journeys-1fadf2a5 branch from 12f79eb to f9f0bff Compare November 17, 2026 19:01
@nwparker
nwparker merged commit a16afc4 into main Nov 17, 2026
131 of 132 checks passed
jinho-yoo-jack added a commit to jinho-yoo-jack/orca that referenced this pull request Nov 18, 2026
Brings the branch up to upstream 62100b8. Resolves:

- StructuredAgentSessionPaneOverlayLayer.tsx: upstream now renders only
  mountedTabs. Map over those and keep the grid view's per-cell focus.
- TerminalSplitWorkspaceSurfaces.tsx and TerminalWorktreeSplitSurface.tsx
  moved to terminal/workbench/. Their grid view imports follow, and the
  grid view surfaces test moves next to them.
- wsl-move-storage-dispositions.ts: upstream renamed several paths in the
  global preference list. The list extracted to
  wsl-move-global-preference-storage-modules.ts takes upstream's current
  paths, plus the grid view entry.
- tests/e2e: upstream grouped specs by feature and moved the helpers
  (stablyai#43628). The grid view spec moves to layout/workspace-grid-view/ and
  imports from the new helper paths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…nd inventory

Upstream stablyai#43628 grouped tests/e2e by feature and deleted the flat journeys it replaced. config/fork-upstream-e2e.txt lists the six kept specs at their new paths and drops the ten upstream deleted; fork-test-inventory accepts upstream specs in subfolders; AGENTS.md names orca-app at its new path.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
Upstream stablyai#43628 moved tests/e2e/helpers into tests/e2e/desktop/electron-fixtures, so round.sh reset ran a missing script (rc=127).
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
…nd inventory

Upstream stablyai#43628 grouped tests/e2e by feature and deleted the flat journeys it replaced. config/fork-upstream-e2e.txt lists the six kept specs at their new paths and drops the ten upstream deleted; fork-test-inventory accepts upstream specs in subfolders; AGENTS.md names orca-app at its new path.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
Upstream stablyai#43628 moved tests/e2e/helpers into tests/e2e/desktop/electron-fixtures, so round.sh reset ran a missing script (rc=127).
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…nd inventory

Upstream stablyai#43628 grouped tests/e2e by feature and deleted the flat journeys it replaced. config/fork-upstream-e2e.txt lists the six kept specs at their new paths and drops the ten upstream deleted; fork-test-inventory accepts upstream specs in subfolders; AGENTS.md names orca-app at its new path.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream stablyai#43628 moved tests/e2e/helpers into tests/e2e/desktop/electron-fixtures, so round.sh reset ran a missing script (rc=127).
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…nd inventory

Upstream stablyai#43628 grouped tests/e2e by feature and deleted the flat journeys it replaced. config/fork-upstream-e2e.txt lists the six kept specs at their new paths and drops the ten upstream deleted; fork-test-inventory accepts upstream specs in subfolders; AGENTS.md names orca-app at its new path.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream stablyai#43628 moved tests/e2e/helpers into tests/e2e/desktop/electron-fixtures, so round.sh reset ran a missing script (rc=127).
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…nd inventory

Upstream stablyai#43628 grouped tests/e2e by feature and deleted the flat journeys it replaced. config/fork-upstream-e2e.txt lists the six kept specs at their new paths and drops the ten upstream deleted; fork-test-inventory accepts upstream specs in subfolders; AGENTS.md names orca-app at its new path.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream stablyai#43628 moved tests/e2e/helpers into tests/e2e/desktop/electron-fixtures, so round.sh reset ran a missing script (rc=127).
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
…nd inventory

Upstream stablyai#43628 grouped tests/e2e by feature and deleted the flat journeys it replaced. config/fork-upstream-e2e.txt lists the six kept specs at their new paths and drops the ten upstream deleted; fork-test-inventory accepts upstream specs in subfolders; AGENTS.md names orca-app at its new path.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
Upstream stablyai#43628 moved tests/e2e/helpers into tests/e2e/desktop/electron-fixtures, so round.sh reset ran a missing script (rc=127).
jiang3ye added a commit to jiang3ye/orca that referenced this pull request Nov 24, 2026
Resolution decisions:
- Accept main's test-suite slimming (stablyai#42578, stablyai#46786) and e2e reorg (stablyai#43628):
  removed lane routing entries whose test files no longer exist.
- Port the beforeEffect approval recheck onto main's founding flow
  (structured-agent-session-create-options + create-founding), keeping
  main's beforeFirstMessage/beforeDelivery hooks and publishTab mapping.
- Keep main's relocated module homes (workspace/identity/workspace-scope,
  shared/runtime-navigation, execution-host, plugins/{activation,
  contributions,development,discovery}, ipc/plugins/, runtime/rpc
  worktree activation) and re-point branch imports accordingly.
- Restore agent-launch.test-fixture, runtime-rpc-worktree-store-fixtures
  and helpers/plugin-smoke from the merge base: the branch's new tests
  (plugin handoff e2e, effect-approval) depend on them and main never
  saw those tests when it slimmed the suites.
- Split plugin-host-services-types out of plugin-host-method-bindings,
  which the merge pushed past the 300-line lint gate.
- Regenerate resources/plugins/declarative bundles over merged sources.
- Merge pluginIntegrations i18n sections with main's new keys (en/zh).

Verified: typecheck:tsc:node, typecheck:tsc:web, and the plugin host-api
/ agent-launch effect-approval suites pass. The pre-commit gate was
skipped only because a merge commit stages ~1k upstream files, one of
which (browser-session-registry.ts) exceeds max-lines on main itself and
is byte-identical to main here — outside this PR's diff.
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