Repository navigation
test(e2e): release the early-typing rc only once the keys reach the tty - #35522
Merged
Merged
Conversation
The rc was released right after Enter, so on Linux CI the keys' trip to the host sometimes outlasted the rc's 50 ms poll and they landed after the prompt. Wait for the tty's echo of the typed line first, which appears only if the bytes reached the PTY while the rc still waited, and restore the check that they came before the first prompt.
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 15 minutes. View limit details
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 |
[Low impact] This test-only change appears safe to merge. SummaryStrengthens the early-typing test without changing shipped behavior.
No actionable issues found. No tests were run during this review. Reviews (1) · Last reviewed commit: "test(e2e): release the early-typing rc o..." · Reviewed by Greptile |
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.
ELI5
Our test for "keys typed before a remote terminal's first prompt aren't lost" used to let the shell finish starting the moment the keys were typed. On Linux CI the keys sometimes hadn't reached the remote machine yet, so the test couldn't check that they arrived before the prompt and only checked that they ran exactly once. Now the test waits until the remote terminal has visibly received the keys, then lets the shell finish, and checks the stronger thing again: the keys arrived before the first prompt.
What Changed
tests/e2e/headless-paired-remote-terminal-early-typing.spec.ts(test only):Why
When #35312 ran on Linux CI, the typed line showed up after the prompt. Host-side timing logs from a diagnostic run (40768092038) showed why:
read -t 0check confirmed nothing was waiting on the terminal at release.So #35312 had dropped the ordering check. Gating the release on the echo removes the race, so the check can come back and be deterministic.
Linked Issue
N/A. Follow-up to #35312.
Visual Proof
N/A. Test-only change.
Testing
e2e.ymldispatch (run 40797015966, on a diag-only branch that addsrepeatEach: 5and has been deleted): 5 passed.ORCA_BACKGROUND_LAUNCH=1,ORCA_E2E_WEB_CLIENT=1,--repeat-each=3): 3 passed.pnpm tcandpnpm run typecheck:cipass. So do oxlint ontests/e2e, the anti-slop lint, the ast-grep gates,check:process-host-importsandcheck:code-quality:changed.AI Disclosure
Review
This touches terminal-restore tests, so it needs two reviewers.
Agent skill upstream boundary
Notes
Test-only. Cross-platform: the same spec runs on macOS and Linux.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)