Skip to content

Check pipe cleanup and reuse after an Async control spawn fails - #196

Merged
tony merged 2 commits into
masterfrom
test-async-control-spawn-resources
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
test-async-control-spawn-resources

Conversation

@tony

@tony tony commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Refs #194

The Linux Async control test counted 14 open descriptors before a failed launch and 12 afterward. Its diagnostic showed no new pipe or socket. A count of every descriptor in the Ruby process could also hide a new pipe when another descriptor closed.

The test compares the open pipes around each failed control launch. It then reconnects in the same one-slot scope and exchanges a command with tmux. This checks that both the pipes and the control slot were released.

Verification

  • Closing an unrelated pipe reproduced the original failure and passed with the revised assertion. Leaving the control observer’s pipe open failed the revised assertion, including when an unrelated pipe closed during the same call.
  • tmux 3.3a returned the expected unsupported-control error. On tmux 3.7 and 3.8 the public control API reported the spawn failure and then returned the output from the restored client.
  • On Linux with Ruby 4.0.7 and tmux 3.8, bundle exec scripts/check outer passed in 112.30 seconds. The unit, integration and installed-gem suites had zero skips, and the documentation check passed.

tony added 2 commits December 5, 2026 08:17
why:
The spawn failure test compared process-wide descriptor counts.
Unrelated descriptors could close during the failed call.

what:
List the fixture session before moving the executable. Compare pipe
identities around each failed control call, then restore the executable
and exercise a connection in the same scope.
why:
Contributors need to know which behavior the Linux release check
verifies.

what:
The Linux Async check detects pipes left open after a failed control
launch and verifies the same scope can open another connection.
@tony
tony marked this pull request as ready for review December 5, 2026 14:26
@tony
tony merged commit 58347f6 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