Skip to content

Cuddle epmd tests - #11427

Open
jhogberg wants to merge 2 commits into
erlang:maintfrom
jhogberg:john/erts/cuddle-epmd-tests
Open

Cuddle epmd tests#11427
jhogberg wants to merge 2 commits into
erlang:maintfrom
jhogberg:john/erts/cuddle-epmd-tests

Conversation

@jhogberg

@jhogberg jhogberg commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Our tests run epmd with a packet_timeout of 1 second, which causes our tests to fail more often now that the packet_timeout is a packet timeout instead of an activity timeout. This commit shortens the artificial delay accordingly.

Our tests run epmd with a packet_timeout of 1 second, which causes
our tests to fail more often now that we're less tolerant of
slowloris-like behavior. This commit shortens the artificial delay
accordingly.
Copilot AI review requested due to automatic review settings August 5, 2026 08:04
@jhogberg jhogberg self-assigned this Aug 5, 2026
@jhogberg jhogberg added team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI labels Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

CT Test Results

  2 files   12 suites   6m 40s ⏱️
129 tests 123 ✅ 6 💤 0 ❌
145 runs  139 ✅ 6 💤 0 ❌

Results for commit 79716a8.

♻️ 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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the epmd_SUITE test helper protocol so its “slow write” behavior no longer exceeds the configured packet_timeout, reducing test flakiness after packet_timeout semantics changed from activity-based to packet-based.

Changes:

  • Replaces catch with try/catch in parse_line/1 for clearer integer parsing error handling.
  • Shortens the artificial inter-byte delay in slow_get_port_nr/1 from 1s to 200ms pauses.
  • Updates the socket-send test helper to use {pause, Milliseconds} instead of the legacy d / {d,S} delay spec.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jhogberg
jhogberg requested a review from sverker August 5, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants