Skip to content

ssh test: Fix flaky interrupted_send race condition#11318

Open
u3s wants to merge 1 commit into
erlang:maintfrom
u3s:kuba/ssh/fix_flaky_ssh_connection_test
Open

ssh test: Fix flaky interrupted_send race condition#11318
u3s wants to merge 1 commit into
erlang:maintfrom
u3s:kuba/ssh/fix_flaky_ssh_connection_test

Conversation

@u3s

@u3s u3s commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

The interrupted_send test calls ssh:close/1 after the listener collects its expected echo data, while the sender is still pushing the remaining 6 MB. The connection teardown can race with the ongoing send, causing {error, closed} instead of ok.

Accept both outcomes since the test's purpose is to verify the listener received correct data, not that the full send completes.

@u3s u3s self-assigned this Jul 1, 2026
@u3s u3s added team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI labels Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

CT Test Results

    2 files     29 suites   28m 53s ⏱️
  507 tests   500 ✅  7 💤 0 ❌
1 716 runs  1 687 ✅ 29 💤 0 ❌

Results for commit 8248e88.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

The interrupted_send test calls ssh:close/1 after the listener
collects its expected echo data, while the sender is still pushing
the remaining 6 MB. The connection teardown can race with the
ongoing send, causing {error, closed} instead of ok.

Accept both outcomes since the test's purpose is to verify the
listener received correct data, not that the full send completes.
@u3s u3s force-pushed the kuba/ssh/fix_flaky_ssh_connection_test branch from 92921e8 to 8248e88 Compare July 1, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants