Skip to content

test(e2e): delete helpers orphaned by relay deletion - #27411

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/p399-0-4
Oct 11, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/p399-0-4

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​33 $\color{#cf222e}{\Huge{\mathbf{−}}}$​657 $\color{#cf222e}{\Huge{\mathbf{−}}}$​624
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5 $\color{#cf222e}{\Huge{\mathbf{−}}}$​24 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19

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):

Path Importers
tests/e2e/helpers/docker-ssh-relay-connection.ts 0
tests/e2e/helpers/docker-ssh-relay-terminal-tabs.ts 0 (one path string remains in a routing test that checks a filename pattern, kept on purpose)
tests/e2e/helpers/nested-runtime-proxy-jump-fixture.ts + unit test 0
tests/e2e/helpers/remote-typing-load-script.ts + unit test 0
tests/e2e/ssh-codex-replay-reply-probe.ts + unit test 0
tests/e2e/helpers/ssh-port-forward-snapshot-barrier.ts: the 4 snapshot-barrier exports + unit test 0

reserveLocalPort, the one export of the barrier file that is still used (by ssh-orcad-workspace-tools.spec.ts), moves unchanged into tests/e2e/helpers/reserve-local-port.ts, so the file name says what it holds. The matching config/reliability-gates.jsonc command, test-file and assertion entries and the ci-shard-timings.json rows for the deleted unit tests are removed too.

Kept on purpose: nested-runtime-ssh-client-route.ts and the files around it (still imported by landing-preflight-runtime-routing.spec.ts), and ssh-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, rg over the whole repo (src, config, tests, mobile, packages, .github, including @ts-nocheck files) 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 tc passes

  • tsc -p config/tsconfig.e2e.json: no new errors (the errors already on main are unrelated files)

  • node config/scripts/check-reliability-gates.mjs passes (143 gates)

  • vitest for config/scripts/ssh-browser-e2e-routing.test.mjs and check-reliability-gates.test.mjs passes

  • oxlint, pnpm run check:code-quality:changed, pnpm lint pass

  • Automated tests added/updated, or explained why not below (only test code is deleted)

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

No production, wire, SSH, Windows or mobile behaviour changes.

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 →

📝 Walkthrough

Walkthrough

The changes add reserveLocalPort() as a standalone helper and update the workspace-tools test to import it. They remove several end-to-end helpers and unit tests, including the SSH snapshot barrier and replay reply probe. Reliability-gate references are removed for two deleted tests. CI shard timing records are added for five tests and removed for four deleted tests.


Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to 40711

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 | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly states that the pull request deletes end-to-end test helpers left orphaned by the SSH relay removal. This matches the primary change.
Description check Passed The description is complete and aligned with the repository template. It explains the change and rationale, identifies the maintainer-only linked-issue exception, documents testing, includes visual pr…
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.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8d4903b5-f025-4147-a074-961d9fc29646
📥 Commits

Reviewing files that changed from the base of the PR and between ec460e5 and 407118c.

📒 Files selected for processing (14)
  • config/reliability-gates.jsonc
  • config/scripts/ci-shard-timings.json
  • tests/e2e/helpers/docker-ssh-relay-connection.ts
  • tests/e2e/helpers/docker-ssh-relay-terminal-tabs.ts
  • tests/e2e/helpers/nested-runtime-proxy-jump-fixture.ts
  • tests/e2e/helpers/nested-runtime-proxy-jump-fixture.unit.test.ts
  • tests/e2e/helpers/remote-typing-load-script.ts
  • tests/e2e/helpers/remote-typing-load-script.unit.test.ts
  • tests/e2e/helpers/reserve-local-port.ts
  • tests/e2e/helpers/ssh-port-forward-snapshot-barrier.ts
  • tests/e2e/helpers/ssh-port-forward-snapshot-barrier.unit.test.ts
  • tests/e2e/ssh-codex-replay-reply-probe.ts
  • tests/e2e/ssh-codex-replay-reply-probe.unit.test.ts
  • tests/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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ 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 config

Repository: 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.

@OrcaWin
OrcaWin merged commit 6b747f8 into main Oct 11, 2026
37 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