Skip to content

Wait for tmux to record the fixture process exit - #195

Merged
tony merged 2 commits into
masterfrom
test-native-pane-exit-observation
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
test-native-pane-exit-observation

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Refs #194

The Linux release check sometimes read an empty native exit status just after the fixture’s control connection closed. tmux can still be processing the child exit at that point.

The fixture now reads the native status until tmux supplies a result or the five-second deadline expires. The test still requires the expected exit code and pane state. An unexpected result goes straight to that assertion.

Verification

  • On tmux 3.3a, an ordinary child closed its control stream before finishing. The original single read returned an empty status. The fixture observed the subsequent exit on tmux 3.3a and 3.8.
  • A child that remained active until the deadline returned the last pending observation in 0.101 seconds with a 0.1-second budget.
  • On Linux with Ruby 4.0.7 and tmux 3.3a, bundle exec scripts/check outer passed in 106.78 seconds. The unit, integration and installed-gem suites had zero skips, and the documentation check passed.

tony added 2 commits December 5, 2026 08:11
why:
A test fixture saw its control stream close before tmux had recorded
the owned process's exit. An empty status failed the fixture setup.

what:
Read the native observation under a bounded deadline while the pane
has no recorded result. Keep the last observation for the assertion
when the deadline expires.
why:
Contributors need to know which behavior the Linux release check
verifies.

what:
The Linux pane fixture waits for tmux to record a process exit after its
control stream closes.
@tony
tony marked this pull request as ready for review December 5, 2026 14:23
@tony
tony merged commit 0c45617 into master Dec 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant