Repository navigation
test: cover input in five simultaneously flooding SSH panes - #19071
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughAdds a Playwright E2E test for keyboard input across five SSH terminal panes during continuous output flooding. The test covers two terminal hide/reopen cycles and records diagnostic artifacts on failure. The test is added to the SSH Docker runner and reliability-gate configuration. The changed-E2E lane excludes the spec, and the watcher-isolation lane runs it. Merge Risk: 🟡 Moderate · up to This adds required five-pane SSH flood input coverage, but its registered test can fail intermittently and may exhaust its overall timeout before completing sequential waits. Resolve these reliability issues before merging. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Docstring CoverageExplanation 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 3 files. (1 skipped: 1 unsupported.) Full details: Description checkExplanation The description provides detailed change context, rationale, implementation details, diagnostics, and validation results. However, it does not follow the required template structure and omits a valid Linked Issue entry, Visual Proof or an exact N/A explanation, completed Testing and Checklist sections, and other required headings. Resolution Rewrite the description using the repository template. Add the required ELI5, What Changed, Why, Linked Issue with an issue number, Visual Proof with attachments or exactly N/A plus a reason, Testing with platform details and checklist status, AI Disclosure if applicable, Review, Agent skill upstream boundary, Notes, and Checklist sections.
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: 9508dedd-9c9e-446a-800a-060f10a12c04
📒 Files selected for processing (4)
.github/workflows/e2e.ymlconfig/reliability-gates.jsoncconfig/scripts/run-ssh-docker-e2e.mjstests/e2e/ssh-docker-five-pane-input-under-flood.spec.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.
| 'tests/e2e/ssh-ai-vault-session-history.spec.ts', | ||
| 'tests/e2e/ssh-cold-activation-restore.spec.ts', | ||
| 'tests/e2e/ssh-cold-hydration-gap-tab-seeding.spec.ts', | ||
| 'tests/e2e/ssh-docker-five-pane-input-under-flood.spec.ts', |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift
Do not register this spec as required coverage yet.
The PR objectives report unexplained intermittent missing acknowledgements. This runner will fail nondeterministically until the root cause is identified and resolved. Keep the spec out of the required invocation, or resolve and document the failure mechanism before merge.
There was a problem hiding this comment.
Important
The test and its diagnostics are well built and I found no code-level blocker, but this should not land until the intermittent missing-ACK is root-caused — which is also the author's own stated bar.
Reviewed changes
- Five-pane SSH input-under-flood spec (
tests/e2e/ssh-docker-five-pane-input-under-flood.spec.ts) — floods five Docker-SSH PTYs with a backpressure-aware producer that repeats its latest input ACK in every frame, then asserts each original PTY acknowledges real typed input across two rendered hide/reopen cycles. On failure it attaches bounded per-pane input events, focus state, dimensions, and output. - Docker runner registration (
config/scripts/run-ssh-docker-e2e.mjs) — adds the spec to the serial SSH Docker list and rewrites the coverage-gap comment to separate this functional spec from the still-open #16764 timing oracle. - Changed-spec routing (
.github/workflows/e2e.yml) — routes thessh-docker-watcher-isolationlane when the new spec is edited. - Reliability gate registration (
config/reliability-gates.jsonc) — adds the spec's command,testFile,assertionRef, and aknownGapsnote tossh.docker-recovery-and-resource-lifecycle.
⚠️ Intermittent missing-ACK stays unexplained and should gate the merge
The assertion is genuinely tight and I could not find an obvious false-failure path: the exact regex ${marker}:[1-9][0-9]*:ACK=${input}: only matches a real echo of the typed input, the producer repeats its latest ACK every 8ms so scrollback eviction cannot hide it, and the 30s poll window dwarfs the frame period. So a missing ACK is unlikely to be the usual test-design suspects (focus timing, flood eviction, a loose matcher), which makes it more plausibly a real product signal — input not reaching the remote PTY after hide/reopen — i.e. the exact regression this test targets. The per-pane inputEvents (with ptyId + focusedBefore) attached on failure are the right instrument to disambiguate on the next CI failure, but until one is triaged as product vs. test, wiring the spec into the Docker lane and the reliability gate only adds unexplained flake to those surfaces.
Technical details
# Root-cause the missing-ACK before landing
## Affected sites
- tests/e2e/ssh-docker-five-pane-input-under-flood.spec.ts:119-143 — the input ACK poll and its failure diagnostics
- config/reliability-gates.jsonc — `ssh.docker-recovery-and-resource-lifecycle` now runs the spec (experimental/partial, advisory)
- config/scripts/run-ssh-docker-e2e.mjs — serial Docker lane now includes the spec
## Required outcome
- Classify the next missing-ACK failure using the attached `inputEvents`/`focusedBefore` as one of: (a) input reached the wrong pane, (b) input reached the correct pane but the ACK did not render, or (c) no input was delivered at all.
- Land only after that classification points at a fix — product or test — not at "passed later repetitions".
## Open questions for the human
- Does `focusActiveTerminalInput` after `manager.setActivePane` always land focus on the intended pane, or is there a remount window where the helper textarea rebinds after the type begins?ℹ️ Nitpicks
.github/workflows/e2e.yml— the comment above theif:block still says "The two spec clauses stay", but this PR adds a thirdcontains(...)clause; update it to "three".config/reliability-gates.jsonc—coverageNotesandflakeHistory.evidencestill describe a "six-spec" suite and do not mention the newly added five-pane spec; refresh them when the flake is triaged so the gate's own history records these unexplained ACK failures.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Changed-spec routing comment (
.github/workflows/e2e.yml) — corrected "two spec clauses" to "three", matching the addedcontainsclause forssh-docker-five-pane-input-under-flood.spec.ts. - Reliability-gate metadata (
config/reliability-gates.jsonc) — updatedcoverageNotes,flakeHistory.evidence, andknownGapsto record the scrollback-replay input-loss diagnosis (run 34034754815) and the merge-blocking dependency on application PR #19075.
The prior review's unexplained missing-ACK concern is now causally resolved and reflected in the gate metadata; the PR correctly remains gated on #19075 landing first, which the author already documents.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: 64f350f7-9ac3-4518-be94-6143d9f5cea5
📒 Files selected for processing (2)
.github/workflows/e2e.ymlconfig/reliability-gates.jsonc
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/e2e.yml
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
| "Collect CI runtime and flake history plus product red/green evidence before blocking." | ||
| ], | ||
| "knownGaps": [ | ||
| "Five-pane simultaneous flood input depends on application PR #19075: replay discarded the first 31 characters of correctly focused keyboard input in run 34034754815. Require validation against the merged fix before landing; the separate #16764 wall-clock performance oracle remains unresolved.", |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🤖 get_repo_knowledge executed:
get_repo_knowledge stablyai/orca /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/conventions /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/learnings
Length of output: 41052
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- target context ---'
sed -n '18120,18175p' config/reliability-gates.jsonc
printf '%s\n' '--- related identifiers ---'
rg -n -C 3 'flakeHistory|knownGaps|19075|ORCA_E2E_SSH_DOCKER|replay|Five-pane simultaneous flood' config .github tests 2>/dev/null | head -n 300Repository: stablyai/orca
Length of output: 30561
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- gate definition ---'
sed -n '17970,18165p' config/reliability-gates.jsonc
printf '%s\n' '--- validator contracts ---'
sed -n '110,175p' config/scripts/check-reliability-gates.mjs
sed -n '320,375p' config/scripts/check-reliability-gates.mjs
printf '%s\n' '--- gate references and promotion handling ---'
rg -n -C 4 'reliability-gates|promotionCriteria|demotionRule|protection.*partial|status.*flaky|knownGaps' .github config/scripts package.json | head -n 320Repository: stablyai/orca
Length of output: 38140
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- evidence-run and maturity rules ---'
sed -n '1,115p' config/scripts/check-reliability-gates.mjs
sed -n '175,225p' config/scripts/check-reliability-gates.test.mjs
printf '%s\n' '--- Docker gate routing contract ---'
sed -n '340,430p' config/scripts/pr-e2e-gate-contract.test.mjs
sed -n '680,730p' config/scripts/pr-e2e-gate-contract.test.mjs
printf '%s\n' '--- PR workflow reliability check context ---'
sed -n '145,172p' .github/workflows/pr.ymlRepository: stablyai/orca
Length of output: 14158
Make the PR #19075 prerequisite machine-checkable.
ssh.docker-recovery-and-resource-lifecycle is an experimental/partial gate. check-reliability-gates.mjs accepts flakeHistory.status: "flaky" and does not require evidence from a revision that includes PR #19075. Add a machine-checkable prerequisite before this coverage can block or merge. Do not rely on knownGaps text alone.
There was a problem hiding this comment.
Important
The application fix this test depends on is now closed without merging, so the documented merge bar is unsatisfiable as written.
Reviewed changes
- Reliability-gate reconciliation with #19081 (
config/reliability-gates.jsonc) — addedlinuxtocoveredPlatforms, recorded the Linux headed bulk-open-freeze soak inevidenceRuns, and reworkedcommands/testFiles/assertionRefsto list both the freeze-repro and the five-pane input specs. - Exclusive Docker-lane ownership (
.github/workflows/e2e.yml) — excluded the five-pane spec (alongside the freeze-repro spec) from the genericchanged-e2erunner and routed it to thessh-docker-watcher-isolationlane via a newcontainsclause; rewrote the now-stale clause-count comment. - Contract-test coverage (
config/scripts/pr-e2e-gate-contract.test.mjs) — asserted the two new exclusions in the changed-spec filter. - Runner registration (
config/scripts/run-ssh-docker-e2e.mjs) — listed the five-pane spec in the serial SSH Docker set.
⚠️ Application fix #19075 is closed unmerged — the merge hold now references a dead PR
The entire landing bar for this test PR is "do not merge until #19075 is reviewed and merged and this test passes against that merged state." #19075 (fix: preserve user input during terminal scrollback replay) is now CLOSED with mergedAt: null (closed 2026-09-06T14:42:51Z), and its own description said "leave open for user review"; no replacement fix PR is open under the author. The gate's coverageNotes and knownGaps still describe #19075 as an in-flight dependency ("application PR #19075 is required before this coverage can land", "Require validation against the merged fix before landing"), and the PR body repeats the "until #19075 is reviewed and merged" condition. As written, that condition can no longer be met.
Technical details
# Reconcile the #19075 dependency with its actual state
## Affected sites
- config/reliability-gates.jsonc:18043 — `coverageNotes` still asserts "application PR #19075 is required before this coverage can land"
- config/reliability-gates.jsonc:18180 — `knownGaps[0]` still says "Require validation against the merged fix before landing"
- PR #19071 body — "Do not merge this test PR until #19075 is reviewed and merged"
## Required outcome
- Decide the actual path for the replay-input-loss fix: reopen/merge #19075, open a replacement fix PR, or retire this test PR.
- Once decided, update the gate metadata and PR body so they reflect that path instead of a closed-unmerged PR.
## Open questions for the human
- Was closing #19075 intentional (superseded by another approach), or accidental? Its body said "leave open for user review."DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
…h-pane-input-under-flood # Conflicts: # .github/workflows/e2e.yml # config/reliability-gates.jsonc
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: ed1c85d9-2885-407c-bcdd-5cb5024479c6
📒 Files selected for processing (5)
.github/workflows/e2e.ymlconfig/reliability-gates.jsoncconfig/scripts/pr-e2e-gate-contract.test.mjsconfig/scripts/run-ssh-docker-e2e.mjstests/e2e/ssh-docker-five-pane-input-under-flood.spec.ts
🚧 Files skipped from review as they are similar to previous changes (3)
- .github/workflows/e2e.yml
- config/scripts/pr-e2e-gate-contract.test.mjs
- config/reliability-gates.jsonc
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
| orcaPage, | ||
| registerPostElectronShutdownCleanup | ||
| }, testInfo) => { | ||
| test.setTimeout(420_000) |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Increase the test-wide timeout to cover the sequential wait budget.
Line 42 limits the test to 420 seconds. The five 60-second readiness polls, ten 30-second ACK polls, and two 60-second manager waits can take 720 seconds before PTY and view-transition waits. A valid but slow run can therefore fail at the global timeout. The timeout can also occur outside the diagnostic try block.
Set a total timeout that exceeds the aggregate local budget, or reduce the local budgets with one shared deadline.
Proposed fix
- test.setTimeout(420_000)
+ test.setTimeout(/* aggregate sequential wait budget plus margin */)| await orcaPage.keyboard.press('Enter') | ||
| await expect | ||
| .poll(() => getTerminalContent(orcaPage, 80_000), { timeout: 30_000 }) | ||
| .toMatch(new RegExp(`${owner.marker}:[1-9][0-9]*:ACK=${input}:`)) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
#!/bin/bash
set -euo pipefail
merge_sha="$(gh pr view 19075 --json state,mergedAt,mergeCommit --jq '
if .state != "MERGED" or .mergeCommit.oid == null then
error("PR `#19075` is not merged")
else
.mergeCommit.oid
end
')"
git merge-base --is-ancestor "$merge_sha" HEAD
gh pr checks --requiredRepository: stablyai/orca
Length of output: 182
Merge application PR #19075 before enabling this spec.
PR #19075 is not merged. Do not merge this spec until the fix is present in this branch and the Docker reliability lane passes.
There was a problem hiding this comment.
ℹ️ No new issues in this delta. The merge of
origin/mainreconciles cleanly — the manifest validator (109 gates), all 42 routing-contract checks, and the 24 reliability-gate check tests pass at headdf59376. This stays non-approving only because the previously flagged application dependency is unchanged by the merge.
Reviewed changes
- Reconciled
changed-e2eexclusion routing (.github/workflows/e2e.yml) — folded main's newly landed SSH specs (local-ssh-browser-routing,ssh-browser-network-execution-route.docker.unit.test,ssh-localhost,ssh-client-hosted-browser-drop-reconnect) into the generic-runner exclusion filter while keeping the five-pane spec out of that runner and routed to the dedicated Docker lane. - Reconciled the reliability gate (
config/reliability-gates.jsonc) — integrated main's Codexcommands/testFiles/assertionRefsand a newproviders: ["ssh"]field alongside the unchanged five-pane command, testFile, assertionRef, and known-gap note, with the array commas corrected. - Reconciled the Docker runner list (
config/scripts/run-ssh-docker-e2e.mjs) — swapped the retiredssh-ai-vault-session-history.spec.tsentry forssh-codex-display-artifacts-repro.spec.ts, with the five-pane spec still present.
The spec file (tests/e2e/ssh-docker-five-pane-input-under-flood.spec.ts) is unchanged by this delta and was covered in prior reviews.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — this delta records that the previously blocking application dependency (#19075) merged, and reconciles the gate metadata with it.
- Gate metadata updated for the merged fix (
config/reliability-gates.jsonc) —coverageNotesandknownGaps[0]now state that replay-input fix #19075 merged as98b0c329ff3and the five-pane spec guards it, replacing the earlier "awaiting merge" wording;knownGaps[0]also honestly notes the single (retries: 0) Docker SSH lane pass is the only repetition evidence so far. - Branch now carries the fix —
4754e233cfmergesorigin/main, pulling98b0c329ff3onto the branch so the spec exercises the fixed app code.
The prior review's blocking concern (#19075 closed-unmerged, leaving the merge-hold reference a dead PR) is resolved: #19075 is now merged: true, and the gate metadata plus PR body reference the merged fix correctly.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Five simultaneously flooding SSH panes have only a quarantined wall-clock reproduction. Add a functional regression requiring each original PTY to acknowledge real keyboard input after two rendered hide/reopen cycles while all five remote producers keep writing.
Producers respect stdout backpressure and repeat their latest acknowledgement. Readiness requires a numbered producer frame; success requires the expected pane marker and input ACK in the same frame. Failure attachments record bounded terminal input events, focus, dimensions, and output. Register the spec in the Docker runner, changed-spec routing, and the experimental SSH reliability gate. The separate #16764 performance oracle remains unresolved.
Validation: 42 routing checks and manifest validation passed. Early CI runs each failed one of three repetitions on a missing ACK; rendered visibility alone did not resolve it. Subsequent diagnostics passed 3+10 repetitions, then 30 hide/reopen cycles with 150 pane inputs. The latest numbered-frame and input-event versions each passed 3/3 (34033074739, 34033122488).
The missing-ACK failure is now causally reproduced as an application bug. In diagnostic run https://github.com/stablyai/orca/actions/runs/34034754815, the correct focused PTY emitted the complete typed input, the replay guard discarded its first 31 characters, and the remote process acknowledged exactly the remaining suffix. Application PR #19075 (merged as 98b0c32) preserves classified user input during replay while retaining synthetic-reply suppression.
#19075 has merged; this branch now carries that fix via merge from main and the Docker SSH lane on the post-fix head is the landing evidence. The earlier full Docker job passed 34 tests with 1 skip (https://github.com/stablyai/orca/actions/runs/34033353595), but that pass predated the application fix. The independent performance oracle #16764 remains unresolved.
Reconciled with main after freeze coverage #19081 merged. The input test is unchanged, the workflow now assigns it exclusively to the dedicated Docker lane, and all 42 routing contracts plus the reliability manifest validator pass. The merge hold on application PR #19075 is lifted now that it has landed;
coverageNotesandknownGapsinconfig/reliability-gates.jsoncwere updated to say the fix merged and this spec guards it.