Repository navigation
rust: wait for any frame in the lifecycle tests - #1953
Merged
Merged
Conversation
The first Windows run of the Rust tests timed out waiting for "lifecycle frame 1" in --app mode, although the fixture drew it. App draws again when the terminal answers a startup query, and Windows' pseudoconsole answers DA1 and DECRQM itself, so frame 2 follows within milliseconds. The pseudoconsole sends its screen on its own tick, not each frame, and that run only ever showed frame 2. The tests now wait for any frame. They only need the fixture to be up; the frame numbers pty-smoke.py counts stay exact on Unix, where the pseudo-terminal forwards every byte and answers no query. Tests +3 lines: a named constant whose comment says why the number is left out, used by the six waits. Issue: 447
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.
The first Windows run of the Rust tests timed out waiting for "lifecycle frame 1" in
--appmode, although the fixture drew that frame.Appdraws again when the terminal answers a startup query, and Windows' pseudoconsole answers DA1 and DECRQM itself, so frame 2 follows within milliseconds. The pseudoconsole sends its screen on its own tick, not each frame, so that run only ever showed frame 2.The lifecycle tests now wait for any frame: they only need the fixture to be up. Apps are not affected; the second frame shows the same screen. The frame counts in
pty-smoke.pystay exact on Linux and macOS, where the pseudo-terminal forwards every byte and answers no query.Tested with the Rust checks on Linux, 25 smoke runs, and the lifecycle tests on Windows 11; with the fixture's first visible frame numbered 2, the old waits fail and the new ones pass.