Repository navigation
test(e2e): one posixShellQuote; docker-ssh-host fixture names (Phase 3.99 0.11b) - #27449
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to 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 |
|
|
P0/P1 review (self + codex gpt-6.1-sol high, read-only on refs): none. Quote copies identical to |
|
CI flake rerun: |
|
The |
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).
shellQuote/quotePosixShellArgcopies and two inline lambdas undertests/e2enow importquotePosixShellfromsrc/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 newtests/e2e/helpers/posix-shell-quote.ts, so there is no second copy to keep in step.paired-remote-terminal-stall-recovery.spec.tskeeps its copy for now: touching it selects a spec that already fails on main (e2e run 38135774176).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 tagorca-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 inpr-e2e-source-routing.mjsand their tests follow the new paths.enableDockerSshRelayTargetShellTitle,refuseDockerSshRelayTargetConnections,copyFileIntoDockerSshRelayTarget,killSshRelayTargetTransport, thedockerSshRelayRepoSentinelexport (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 fewergit init+ commit rounds.startDockerSshHostTargettakesPick<TestInfo, 'workerIndex'>. That drops a type cast in the Docker unit test.Net: +229 / −356 (−127), all under
tests/andconfig/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 -wfor each removed symbol acrosssrc config tests mobile packages .github scripts(this covers the@ts-nocheckfiles) 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"overtests config .github→ 0 hits after the change. No product code changed, so the bundler builds are unaffected.pnpm tcpasses.tsc -p config/tsconfig.e2e.jsongives exactly the same error set asorigin/main(218 errors before and after; none of them in lines this PR touches).pnpm lintpasses,pnpm run check:code-quality:changedpasses, oxlint and oxfmt are clean.pnpm testover the 9 e2e routing and contract suites plusglobal-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
Notes
Cross-platform: Windows callers keep their own PowerShell or
cmdquoting. 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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)