Repository navigation
test(e2e): delete helpers orphaned by relay deletion - #27411
Conversation
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to The active reliability gate remains intact, but its July 30 evidence overstates which tests ran. Refresh that record before relying on it; this is a limited validation-history issue, not a production behavior change. Pre-merge checks |
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
8d4903b5-f025-4147-a074-961d9fc29646
📒 Files selected for processing (14)
config/reliability-gates.jsoncconfig/scripts/ci-shard-timings.jsontests/e2e/helpers/docker-ssh-relay-connection.tstests/e2e/helpers/docker-ssh-relay-terminal-tabs.tstests/e2e/helpers/nested-runtime-proxy-jump-fixture.tstests/e2e/helpers/nested-runtime-proxy-jump-fixture.unit.test.tstests/e2e/helpers/remote-typing-load-script.tstests/e2e/helpers/remote-typing-load-script.unit.test.tstests/e2e/helpers/reserve-local-port.tstests/e2e/helpers/ssh-port-forward-snapshot-barrier.tstests/e2e/helpers/ssh-port-forward-snapshot-barrier.unit.test.tstests/e2e/ssh-codex-replay-reply-probe.tstests/e2e/ssh-codex-replay-reply-probe.unit.test.tstests/e2e/ssh-orcad-workspace-tools.spec.ts
💤 Files with no reviewable changes (11)
- tests/e2e/ssh-codex-replay-reply-probe.unit.test.ts
- tests/e2e/helpers/ssh-port-forward-snapshot-barrier.unit.test.ts
- tests/e2e/helpers/nested-runtime-proxy-jump-fixture.unit.test.ts
- tests/e2e/helpers/nested-runtime-proxy-jump-fixture.ts
- tests/e2e/ssh-codex-replay-reply-probe.ts
- tests/e2e/helpers/remote-typing-load-script.unit.test.ts
- tests/e2e/helpers/ssh-port-forward-snapshot-barrier.ts
- tests/e2e/helpers/remote-typing-load-script.ts
- tests/e2e/helpers/docker-ssh-relay-terminal-tabs.ts
- config/scripts/ci-shard-timings.json
- tests/e2e/helpers/docker-ssh-relay-connection.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.
| "runner": "local", | ||
| "platform": "macos", | ||
| "command": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/hooks/useIpcEvents-agent-status-ssh-authority.test.ts src/main/ssh/ssh-port-forward.test.ts src/main/ssh/system-ssh-forward-process.test.ts src/main/ipc/ssh.test.ts tests/e2e/helpers/ssh-port-forward-snapshot-barrier.unit.test.ts --reporter=dot", | ||
| "command": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/hooks/useIpcEvents-agent-status-ssh-authority.test.ts src/main/ssh/ssh-port-forward.test.ts src/main/ssh/system-ssh-forward-process.test.ts src/main/ipc/ssh.test.ts --reporter=dot", |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
git diff ec460e50111a38323e8ab708ec20ae56daba23ac 407118c8d22c36b83e10ec710955270675665da4 -- config/reliability-gates.jsonc
git show ec460e50111a38323e8ab708ec20ae56daba23ac:config/reliability-gates.jsonc | rg -n -C 12 'ssh-port-forward-snapshot-barrier|215 tests|2026-07-30'
rg -n -C 8 'ssh-port-forward-snapshot-barrier|215 tests|2026-07-30' config/reliability-gates.jsonc
rg -n 'evidenceCommand|evidence.*command|testFiles|reliability-gates' config/scripts/check-reliability-gates.mjs configRepository: stablyai/orca
Length of output: 45668
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- base SSH port-forward gate ---'
git show ec460e50111a38323e8ab708ec20ae56daba23ac:config/reliability-gates.jsonc | nl -ba | sed -n '18955,19025p'
printf '%s\n' '--- head SSH port-forward gate ---'
git show 407118c8d22c36b83e10ec710955270675665da4:config/reliability-gates.jsonc | nl -ba | sed -n '18955,19025p'
printf '%s\n' '--- checker/schema/documentation references ---'
rg -n -F --glob '!config/reliability-gates.jsonc' --glob '!node_modules/**' --glob '!dist/**' -- 'evidenceRuns' config docs README.md .github 2>/dev/null || true
rg -n -F --glob '!config/reliability-gates.jsonc' --glob '!node_modules/**' --glob '!dist/**' -- 'reliability gate' config docs README.md .github 2>/dev/null | head -120 || true
printf '%s\n' '--- checker source ---'
sed -n '1,280p' config/scripts/check-reliability-gates.mjs
printf '%s\n' '--- deleted test at base ---'
git show ec460e50111a38323e8ab708ec20ae56daba23ac:tests/e2e/helpers/ssh-port-forward-snapshot-barrier.unit.test.ts | nl -ba | sed -n '1,260p'Repository: stablyai/orca
Length of output: 28784
Recompute the July 30 evidence record.
The reduced command is now the active gate command, but the evidence still describes the deleted barrier test and 215-test result. Rerun the reduced command and update the date, duration, and summary. Do not restore the deleted test to the active gate command.
ELI5
When the old SSH relay was removed (#27214), some test-only helper files that existed only to drive it were left behind. Nothing uses them anymore. This PR deletes them.
What Changed
Test code only; no app code changes, so nothing changes for users.
Deleted (number of files that import each one, outside its own unit test, measured on
origin/main@ec460e5011):tests/e2e/helpers/docker-ssh-relay-connection.tstests/e2e/helpers/docker-ssh-relay-terminal-tabs.tstests/e2e/helpers/nested-runtime-proxy-jump-fixture.ts+ unit testtests/e2e/helpers/remote-typing-load-script.ts+ unit testtests/e2e/ssh-codex-replay-reply-probe.ts+ unit testtests/e2e/helpers/ssh-port-forward-snapshot-barrier.ts: the 4 snapshot-barrier exports + unit testreserveLocalPort, the one export of the barrier file that is still used (byssh-orcad-workspace-tools.spec.ts), moves unchanged intotests/e2e/helpers/reserve-local-port.ts, so the file name says what it holds. The matchingconfig/reliability-gates.jsonccommand, test-file and assertion entries and theci-shard-timings.jsonrows for the deleted unit tests are removed too.Kept on purpose:
nested-runtime-ssh-client-route.tsand the files around it (still imported bylanding-preflight-runtime-routing.spec.ts), andssh-test-target-connection.ts(still imported by the Windows CLI matrix spec; a follow-up removes it).Net lines: production 0, tests and config −643 (+38 / −681).
Why
Dead helpers make people think relay paths still get tested, and they slow down searches and reviews. Deleting each file outright was simpler than leaving it with a deprecation note, since nothing imports any of them.
Proof that nothing uses them: for each deleted export symbol and file name,
rgover the whole repo (src, config, tests, mobile, packages, .github, including@ts-nocheckfiles) finds no reference outside the deleted files, apart from the routing-test string noted above.Linked Issue
Part of the Phase 3.99 relay cleanup (maintainer PR, no issue).
Visual Proof
N/A: only test helpers and test config change.
Testing
pnpm tcpassestsc -p config/tsconfig.e2e.json: no new errors (the errors already on main are unrelated files)node config/scripts/check-reliability-gates.mjspasses (143 gates)vitestforconfig/scripts/ssh-browser-e2e-routing.test.mjsandcheck-reliability-gates.test.mjspassesoxlint,pnpm run check:code-quality:changed,pnpm lintpassAutomated tests added/updated, or explained why not below (only test code is deleted)
Review
Agent skill upstream boundary
Notes
No production, wire, SSH, Windows or mobile behaviour changes.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)