Tmux capture-pane tests fail in Docker CI containers #304
Labels
No labels
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#304
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Tests in
open-prompt.batsandstart-prompt.batsthat usetmux capture-paneto verifysend-keyscontent fail when running inside Docker containers. The pane content is empty because there's no real terminal attached.Affected Tests
open-prompt.bats: tests 2, 3, 7, 8, 9start-prompt.bats: tests 2, 6, 7, 8These are currently skipped in Docker with
is_docker && skip.Possible Solutions
docker run -t)capture-pane— the content might appear with longer delayscapture-panetmux pipe-paneto capture output to a file, then assert on the file contentsContext
Introduced when moving CI to self-hosted runner with Docker containers (IW-292).
Closing as superseded. PTY-dependent tmux assertions moved to the tool contract suite in Phase 2.7 (
test/contract/tmux_adapter_contract.bats), explicitly gated byIW_CONTRACT_TMUX=1so Docker CI doesn't run them by default. The remaining smoke tests inopen-prompt.batsandstart-prompt.batswere refactored to assert on session existence and stderr text instead of pane content, so they pass cleanly in Docker without skip logic. The leftoveris_docker()helper is dead and will be removed.