Repository navigation
fix(tui-tests): fail closed when a polling capture fails - #208
Merged
Merged
Conversation
wait_for/wait_absent piped tui_capture into grep -q. Under pipefail an early grep exit could SIGPIPE the capture and miss a present string in a large pane, and a failed capture passed the negated absence check. Store capture output only after checking its status, return 2 with a contextual diagnostic on capture failure, and match with a here-string. Remove one dead local. Add scripts/tui-tests/test_polling.py (five cases, three failed before) and run it in the TUI workflow before the Rust build. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully 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.
Summary
The offline tmux TUI harness no longer reports "absent" when a pane capture fails, and no longer misses strings in large captures.
Context
scripts/tui-tests/lib.shpolling helpers, a new harness test, and one step in.github/workflows/tui-tests.yml.Changes
tui_capture | grep -qFcontradicted the helper's documented here-string convention. Underpipefail, grep exiting early could SIGPIPE the capture, and a failed capture satisfied the negated pipeline inwait_absent.waited) is removed.scripts/tui-tests/test_polling.py: five tests covering a failed capture, a partial failed capture, a large successful capture, literal matching, and timeout. The TUI workflow runs them before the Rust build.Surface: the helper grows 7 net lines. The benefit is fewer false passes, not fewer lines.
Validation
python3 scripts/tui-tests/test_polling.py: 5 tests OK.bash -n scripts/tui-tests/lib.sh,actionlint .github/workflows/tui-tests.yml,git diff --check: pass.RUN_OUT,RUN_RC,SUITE_RC) remain.Interactive terminal suitecheck.PR Readiness