Skip to content

test(machines): end-to-end journey through the Machines UI - #30793

Open
nwparker wants to merge 1 commit into
nwparker/machines-p0-7-e2efrom
nwparker/machines-p0-8-ui-e2e
Open

nwparker wants to merge 1 commit into
nwparker/machines-p0-7-e2efrom
nwparker/machines-p0-8-ui-e2e

Conversation

@nwparker

@nwparker nwparker commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​233 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​233
Prod 0 0 0 0

ELI5

An end-to-end test that drives the real Machines UI: create a machine from the new-worktree composer, work on it, sleep it, reopen and wake it, then delete it.

What Changed

  • New tests/e2e/ssh-orcad-machine-ui-journey.spec.ts, running in the existing "managed SSH specs on a Docker host" job (same skip guard), on the Docker machine-provider fixture from the PR below.
  • Journey: install + consent the fixture plugin → composer Run on → New machine on Docker machines… → Advanced → Temporary → Create → stages → project actually cloned onto the machine (fixture seeds a bare origin; a github.*-shaped remote is mapped to it so no network is needed) → terminal answers → sidebar Sleep machine (container stops) → reload, click the worktree → wake-on-open, the same tab reattaches after the wake cover clears and answers → Delete… dialog shows "No changes" / "Never pushed" and "Delete machine and 2 worktrees" → container and worktree row gone.
  • Asserts no wake hold, terminal error toast or stopped-machine banner remains after reattach.

Why

Unit tests cover each piece; this proves the user-visible flow end to end against a real SSH container, including the wake/reattach ordering that only showed up live.

Linked Issue

N/A (maintainer refactor).

Visual Proof

N/A — test-only change.

Testing

  • Ran locally against a remote Docker engine (macOS host, ORCA_BACKGROUND_LAUNCH=1, isolated profile): passes in ~57 s, also with --repeat-each=2; the lifecycle spec passes alongside it. Uses the built-in SSH client (system SSH path not covered here).
  • Containers and images cleaned up after each run.

Review

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

Workaround documented in the spec: the github.* remote stays until machine servers include #30785.

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)

@nwparker
nwparker force-pushed the nwparker/machines-p0-7-e2e branch from 36dd94a to f81b15b Compare October 19, 2026 17:01
@nwparker
nwparker force-pushed the nwparker/machines-p0-8-ui-e2e branch from 7fbfef4 to 9ed3f40 Compare October 19, 2026 17:02
This was referenced Oct 20, 2026
@nwparker
nwparker force-pushed the nwparker/machines-p0-7-e2e branch from f81b15b to 1258041 Compare October 20, 2026 09:00
@nwparker
nwparker force-pushed the nwparker/machines-p0-8-ui-e2e branch from 9ed3f40 to 150a2be Compare October 20, 2026 09:00
@nwparker
nwparker force-pushed the nwparker/machines-p0-7-e2e branch from 1258041 to f693a59 Compare October 20, 2026 09:53
@nwparker
nwparker force-pushed the nwparker/machines-p0-8-ui-e2e branch from 150a2be to f95c6a3 Compare October 20, 2026 09:53
@nwparker
nwparker force-pushed the nwparker/machines-p0-7-e2e branch from f693a59 to bf58f04 Compare October 20, 2026 21:26
@nwparker
nwparker force-pushed the nwparker/machines-p0-8-ui-e2e branch from f95c6a3 to 452f528 Compare October 20, 2026 21:26
@nwparker
nwparker force-pushed the nwparker/machines-p0-7-e2e branch from bf58f04 to 66c4dd9 Compare October 21, 2026 01:35
@nwparker
nwparker force-pushed the nwparker/machines-p0-8-ui-e2e branch from 452f528 to e598372 Compare October 21, 2026 01:35
@nwparker
nwparker force-pushed the nwparker/machines-p0-7-e2e branch from 66c4dd9 to 95b7d88 Compare October 21, 2026 04:06
@nwparker
nwparker force-pushed the nwparker/machines-p0-8-ui-e2e branch from e598372 to 9287671 Compare October 21, 2026 04:06
Create a Temporary machine from the composer's Run-on picker and wait
for its stages; the project clones onto it for real. Sleep it from the
worktree's machine menu, reload, and open the worktree. Wake-on-open
brings the same terminal tab back and it answers. Then delete the
machine through the Delete dialog: its container and worktree go.

Each fixture machine seeds a bare origin once and serves it with git
daemon on its loopback; the project's remote is
git://127.0.0.1/orca-e2e-origin.git, so the clone needs no network. That is a generic, non-GitHub remote, so the project links into
the machine through its Git remote alone (#30785).
@nwparker
nwparker force-pushed the nwparker/machines-p0-7-e2e branch from 95b7d88 to 9c658bc Compare October 21, 2026 19:02
@nwparker
nwparker force-pushed the nwparker/machines-p0-8-ui-e2e branch from 9287671 to a57c141 Compare October 21, 2026 19:02
@nwparker
nwparker marked this pull request as ready for review October 21, 2026 19:03

This branch has not been deployed

No deployments
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