Repository navigation
test(terminal): skip reattach mouse-leak e2e when PTY shell can't exec - #7895
Merged
Merged
Conversation
The warm-reattach mouse-leak e2e (added in #7893) awaited the readiness marker unconditionally, so it hard-failed on sandboxed runners whose PTY echoes input but never execs a shell. Wrap the gate in a skip guard that mirrors the existing pane-manager guard: run the assertions where the shell executes, and skip gracefully otherwise instead of a false red. Co-authored-by: Orca <[email protected]>
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis change modifies an e2e regression test for terminal reattach mouse mode leak detection. Before arming mouse tracking, the test now executes a shell command with arithmetic expansion and waits for expected output to verify the PTY shell actually executes commands. If the output is not observed, the test is skipped with a descriptive message instead of proceeding with mouse tracking assertions. ✨ Finishing Touches📝 Generate docstrings
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 |
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
stablyai#7895) The warm-reattach mouse-leak e2e (added in stablyai#7893) awaited the readiness marker unconditionally, so it hard-failed on sandboxed runners whose PTY echoes input but never execs a shell. Wrap the gate in a skip guard that mirrors the existing pane-manager guard: run the assertions where the shell executes, and skip gracefully otherwise instead of a false red. Co-authored-by: Orca <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
The warm-reattach mouse-mode-leak e2e (
terminal-reattach-mouse-mode-leak.spec.ts, added in #7893) arms the leak by running a POSIXprintfin a real PTY, gated on a readiness check (echo ORCA_MOUSE_READY_$((21+21))→ORCA_MOUSE_READY_42). The gate awaited that marker unconditionally.Problem
Some sandboxed CI/dev runners spawn a PTY that echoes typed input but never execs a real shell (the same environment condition under which the pre-existing
terminal-restart-persistencecursor test can't settle on a prompt). There, the readiness marker never appears and the test hard-fails — a false red that has nothing to do with the reset logic under test.Fix
Wrap the readiness gate in a skip guard that mirrors the existing
hasPaneManagerguard a few lines above: if the shell doesn't execute the probe within the timeout,test.skip()instead of failing. Where the shell does execute, the full end-to-end assertions run unchanged (mode disarmed after reattach, real pointer motion produces zero reports, positive control confirms the probe isn't vacuous).Verification
Ran the spec locally with
--repeat-each=3: 1 passed, 2 skipped — the iteration whose PTY executed ran the full flow and passed; the shell-less iterations skipped cleanly instead of failing.Made with Orca 🐋