Skip to content

test(e2e): one posixShellQuote; docker-ssh-host fixture names (Phase 3.99 0.11b) - #27449

Merged
OrcaWin merged 2 commits into
mainfrom
OrcaWin/p399-0-11b
Oct 11, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
OrcaWin/p399-0-11b

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

The end-to-end tests had the same tiny "wrap this text in single quotes for the shell" function copied into 21 files (20 now share one copy), and the Docker SSH test host was still named after the relay that no longer exists. This PR keeps one copy of the quote function (the one the app already ships) and renames the test host to say what it is: a Docker SSH host.

What Changed

Tests only; no product code changes. Phase 3.99 PR 0.11b (the quote half of 0.11; the setup half follows as 0.11a).

  • One POSIX quote. 20 local shellQuote / quotePosixShellArg copies and two inline lambdas under tests/e2e now import quotePosixShell from src/shared/wsl-login-shell-command.ts, which does the same thing (' → '\'', wrapped in single quotes). Three e2e files already import from that module. I reused it instead of adding a new tests/e2e/helpers/posix-shell-quote.ts, so there is no second copy to keep in step. paired-remote-terminal-stall-recovery.spec.ts keeps its copy for now: touching it selects a spec that already fails on main (e2e run 38135774176).
  • Rename. helpers/docker-ssh-relay-{image,target}.ts → docker-ssh-host-{image,target}.ts, fixtures/docker-ssh-relay/ → fixtures/docker-ssh-host/, their exports (*DockerSshRelay* → *DockerSshHost*), and the local image tag orca-e2e-ssh-relay:<digest> → orca-e2e-ssh-host:<digest>. The tag is keyed by a hash of the fixture directory and built in each run. The routing regexes in pr-e2e-source-routing.mjs and their tests follow the new paths.
  • Dead helpers removed (zero callers; see proof): enableDockerSshRelayTargetShellTitle, refuseDockerSshRelayTargetConnections, copyFileIntoDockerSshRelayTarget, killSshRelayTargetTransport, the dockerSshRelayRepoSentinel export (inlined), and the two unused repos (proxy-jump, second-hub) each container used to seed at startup. Nothing reads those repos, so container startup does two fewer git init + commit rounds.
  • startDockerSshHostTarget takes Pick<TestInfo, 'workerIndex'>. That drops a type cast in the Docker unit test.

Net: +229 / −356 (−127), all under tests/ and config/scripts/. Production: 0.

Why

Copied helpers drift, and the relay names told a reader that this harness still drives a relay. It doesn't: every spec here drives managed orcad. I chose the existing shared quoter over a new test helper because it is the same function, already in use by tests, and reusing it adds no new file.

Linked Issue

Internal Phase 3.99 cleanup (PR 0.11b).

Visual Proof

N/A: test harness only. No product UI or behaviour changes.

Testing

  • Proof that the removed code is dead: rg -w for each removed symbol across src config tests mobile packages .github scripts (this covers the @ts-nocheck files) shows only its own definition: enableDockerSshRelayTargetShellTitle, refuseDockerSshRelayTargetConnections, copyFileIntoDockerSshRelayTarget, killSshRelayTargetTransport, DOCKER_SSH_PROXY_JUMP_REMOTE_REPO_PATH, DOCKER_SSH_SECOND_HUB_REMOTE_REPO_PATH, dockerSshRelayRepoSentinel. rg "docker-ssh-relay|DockerSshRelay|DOCKER_SSH_RELAY" over tests config .github → 0 hits after the change. No product code changed, so the bundler builds are unaffected.

  • pnpm tc passes. tsc -p config/tsconfig.e2e.json gives exactly the same error set as origin/main (218 errors before and after; none of them in lines this PR touches).

  • pnpm lint passes, pnpm run check:code-quality:changed passes, oxlint and oxfmt are clean.

  • pnpm test over the 9 e2e routing and contract suites plus global-setup-cli-artifact.unit.test.ts: 116 passed.

  • The Docker SSH and orcad e2e lanes run in CI (no local Docker or Electron).

  • I manually tested these changes locally

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

Review

P0/P1 review: self review plus an independent reviewer. Results in the PR comments.

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

Cross-platform: Windows callers keep their own PowerShell or cmd quoting. Only the POSIX branches changed, and the quoting they produce is the same. SSH: same Docker host, same seeded repository path. Mobile and wire: untouched.

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: 11c713e0-a213-4b8f-bb94-04d25234656b





📥 Commits

Reviewing files that changed from the base of the PR and between 43bf799 and 23b9376.






📒 Files selected for processing (40)
  • config/scripts/orcad-e2e-routing.test.mjs
  • config/scripts/pr-e2e-source-routing.mjs
  • config/scripts/ssh-browser-e2e-routing.test.mjs
  • tests/e2e/fixtures/docker-ssh-host/Dockerfile
  • tests/e2e/global-setup-cli-artifact.unit.test.ts
  • tests/e2e/global-setup.ts
  • tests/e2e/headless-paired-remote-terminal-stall-recovery.spec.ts
  • tests/e2e/helpers/docker-ssh-host-image.ts
  • tests/e2e/helpers/docker-ssh-host-target.ts
  • tests/e2e/helpers/host-created-terminal-retention-oracle.ts
  • tests/e2e/helpers/orcad-convert-host.ts
  • tests/e2e/helpers/paired-terminal-parking-fixture.ts
  • tests/e2e/helpers/remote-session-bulk-open-fixture.ts
  • tests/e2e/helpers/ssh-remote-only-browser-fixture.ts
  • tests/e2e/helpers/startup-exec-readiness-oracle.ts
  • tests/e2e/helpers/terminal-workspace-root-link.ts
  • tests/e2e/host-parked-pane-remote-viewer.spec.ts
  • tests/e2e/paired-remote-terminal-client-restart-survival.spec.ts
  • tests/e2e/paired-remote-terminal-host-quit-reconnect-input.spec.ts
  • tests/e2e/paired-remote-terminal-host-restart-background-sync.spec.ts
  • tests/e2e/paired-remote-terminal-initial-snapshot-scrollback.spec.ts
  • tests/e2e/paired-remote-terminal-lossy-initial-snapshot.spec.ts
  • tests/e2e/paired-remote-terminal-materialization-reconnect.spec.ts
  • tests/e2e/paired-remote-terminal-parked-reveal-interactivity.spec.ts
  • tests/e2e/paired-remote-terminal-parked-scrollback-restart.spec.ts
  • tests/e2e/paired-remote-terminal-parked-scrollback-survives.spec.ts
  • tests/e2e/paired-remote-terminal-probe-gap-recovery.spec.ts
  • tests/e2e/paired-remote-terminal-stall-recovery.spec.ts
  • tests/e2e/paired-remote-terminal-truncated-tail-first-paint.spec.ts
  • tests/e2e/remote-agent-session-focus-authority.spec.ts
  • tests/e2e/ssh-browser-network-execution-route.docker.unit.test.ts
  • tests/e2e/ssh-orcad-browser-drop-owner.spec.ts
  • tests/e2e/ssh-orcad-browser-routing.spec.ts
  • tests/e2e/ssh-orcad-browser-service-status.spec.ts
  • tests/e2e/ssh-orcad-idle-exit.spec.ts
  • tests/e2e/ssh-orcad-open-in-owner.spec.ts
  • tests/e2e/ssh-orcad-terminal-root-owner.spec.ts
  • tests/e2e/ssh-orcad-vm-provisioned-root.spec.ts
  • tests/e2e/ssh-orcad-workspace-tools.spec.ts
  • tests/e2e/terminal-node-command.ts





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







📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

The E2E setup and selected SSH browser and Orcad tests now use Docker SSH host images and targets instead of relay fixtures. The host target seeds one remote repository path and retains SSH readiness and forwarding controls. Routing rules and assertions now reference host helper files. Test and fixture command builders also replace local POSIX quoting with the shared quotePosixShell helper; existing Windows-specific quoting remains unchanged.












Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 23b93

The fixture migration appears mergeable after normal checks. Docker-backed journeys were not run locally, but the inspected changes show no actionable mismatch.

Pre-merge checks | Passed 3 | Failed 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 11.59% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 69 functions across 39 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description covers the required change summary, rationale, testing, visual proof, review notes, compatibility considerations, and checklist. However, the Linked Issue section names an internal cle… Add the actual linked issue reference in the Linked Issue section, such as Fixes #<issue-number> or the repository-approved issue URL. If no issue is required because the author is a maintainer, state that exception explicitly.
✅ Passed checks (3 passed)
Check name Status Explanation
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.
Title check Passed The title clearly identifies both main changes: POSIX shell-quoting consolidation and Docker SSH host fixture renaming. The phase suffix adds minor noise but does not reduce clarity.

Full details: Description check

Explanation

The description covers the required change summary, rationale, testing, visual proof, review notes, compatibility considerations, and checklist. However, the Linked Issue section names an internal cleanup without providing an actual issue link or issue reference, although the template requires one.


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





🛠️ Fix failing CI checks 💡
  • 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 commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator Author

P0/P1 review (self + codex gpt-6.1-sol high, read-only on refs): none. Quote copies identical to quotePosixShell; no stale docker-ssh-relay/DockerSshRelay references; removed helpers and the two dropped seeded repos have no consumers; routing selects the same specs.

@OrcaWin

OrcaWin commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator Author

CI flake rerun: paired-remote-terminal-stall-recovery.spec.ts:462 (ACK-starved stream timing; the live marker arrived before the assertion expected it to be held back). The fixture command quoting ran correctly (the host flood completed). Unrelated to the quote helper swap; rerunning the failed job once.

@OrcaWin

OrcaWin commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator Author

The changed e2e specs failure (paired-remote-terminal-stall-recovery.spec.ts 'restarts one ACK-starved paired terminal stream…') reproduces on unmodified main: e2e.yml dispatch at c2624ab fails the same assertion (run 38135774176). It is selected here only because this PR touched the file. I reverted that one file to main (it keeps its local quote copy for now) so this PR doesn't carry a failure that already exists on main.

@OrcaWin
OrcaWin merged commit bdc0921 into main Oct 11, 2026
41 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