Repository navigation
Conversation
Reviewer's Guide by SourceryThe pull request improves the reliability of the No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #577 +/- ##
==========================================
+ Coverage 61.99% 62.05% +0.05%
==========================================
Files 29 29
Lines 5091 5091
Branches 1082 1082
==========================================
+ Hits 3156 3159 +3
+ Misses 1595 1592 -3
Partials 340 340 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
tony
force-pushed
the
test-terminal-interoperability
branch
4 times, most recently
from
February 25, 2025 22:16
ac631e0 to
82da140
Compare
tony
force-pushed
the
master
branch
4 times, most recently
from
April 12, 2025 12:08
0188aed to
ea5b0c4
Compare
tony
force-pushed
the
test-terminal-interoperability
branch
from
April 26, 2026 11:34
82da140 to
78c656b
Compare
tony
force-pushed
the
test-terminal-interoperability
branch
from
May 10, 2026 15:57
78c656b to
1d71c36
Compare
tony
force-pushed
the
test-terminal-interoperability
branch
from
May 30, 2026 12:51
1d71c36 to
7a47177
Compare
tony
force-pushed
the
test-terminal-interoperability
branch
from
July 18, 2026 11:02
7a47177 to
32d14ea
Compare
tony
force-pushed
the
test-terminal-interoperability
branch
from
November 7, 2026 02:18
32d14ea to
2d87270
Compare
tony
force-pushed
the
test-terminal-interoperability
branch
5 times, most recently
from
November 25, 2026 08:28
8fe9bb8 to
cb80408
Compare
This was referenced Nov 25, 2026
tony
force-pushed
the
test-terminal-interoperability
branch
from
November 28, 2026 12:49
7732a6c to
081a38e
Compare
tony
force-pushed
the
test-terminal-interoperability
branch
from
November 29, 2026 03:10
081a38e to
91b67a6
Compare
why: Tests were failing when using fish shell due to prompt differences what: - Use PROMPT_COMMAND='' to clear shell-specific prompt commands - Set custom PS1='READY>' that works across shells - Add retry logic to wait for prompt and command output - Make assertions more flexible by checking content not exact matches
why: Test was flaky due to timing issues with shell initialization what: - Add small delay after window creation - Add error handling around capture_pane calls - Increase retry timeouts from 1s to 2s - Add more comprehensive output checks - Add check for non-empty pane contents
Add setup_shell_window helper function to standardize shell setup in tests: Set consistent shell environment and prompt, add robust waiting for shell readiness, handle environment variables consistently, prevent shell-specific prompt modifications. Update test_new_window_with_environment to use new helper: Add proper waiting for command output, fix linting issues with loop variables, make tests more reliable against timing issues.
Catch exc.LibTmuxException instead of bare Exception in retry_until shell-readiness callbacks across test_pane, test_session, and test_window so Ruff BLE001 passes and non-tmux errors propagate.
why: Environment tests must wait for both the echoed value line and the next READY> prompt (#922), and Pane.send_keys doctest should not catch bare Exception or race before command output renders (#902). what: - Assert capture_pane()[-2:] == [expected, "READY>"] in session and window environment tests - Wait for rendered output and READY> in Pane.send_keys doctest without catching bare Exception - Use NumPy docstrings on setup_shell_window helpers
tony
force-pushed
the
test-terminal-interoperability
branch
from
November 30, 2026 01:00
91b67a6 to
1defb8f
Compare
This branch has not been deployed
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.
Note
Master through
v0.70.0resolved the session and split-window environment waits in #922 (0.68.0), raised the tmux floor to3.3ain #888 (0.65.0), and switched static type checking toty(uv run ty check) and RuffANNin #682 (0.70.0). Remaining shell-readiness test updates are tracked in #484 and #907.Summary by Sourcery
Improve shell interoperability in tests by using a consistent prompt across shells and adding retry logic to wait for the shell to be ready and for the command output to be available before asserting the pane contents.
Tests:
PROMPT_COMMANDandPS1to set a consistent prompt across shells.