Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Apr 9, 2025

  • v5_SUITE: Close all connections in end_per_testcase/2
  • priority_queue_recovery_SUITE: Add suffix to RabbitMQ node names
  • logging_SUITE: Increase timetrap to 3 minutes
  • rabbit_stream_SUITE: Increase some timeouts
  • rabbitmq-run.mk: Stop node in start-background-broker in case of error
    This is an automatic backport of pull request Fix test flakes in various testsuites #13470 done by Mergify.

dumbbell added 5 commits April 9, 2025 08:40
[Why]
Many tests do not clean up their connections if they encounter a
failure. This affects subsequent testcases negatively.

(cherry picked from commit 97da746)
[Why]
This helps debugging.

(cherry picked from commit 28870f3)
[Why]
We sometimes hit the 1-minute timetrap in CI even though the tests are
running fine.

(cherry picked from commit 43916da)
[Why]
The CLI sometimes crashes early because it fails to configure the Erlang
distribution.

Because we use two CLI commands to watch the start of RabbitMQ, if one
of them fails, the Make recipe will exit with an error, leaving the
RabbitMQ node running.

[How]
We use a shell trap to stop the node if the shell is about to exit with
an error.

While here, we retry the `await_startup` CLI command several times
because this is the one failing the most. This is until the crash is
understood and a proper fix is committed.

(cherry picked from commit 3a278e7)
@mergify mergify bot added the make label Apr 9, 2025
@dumbbell dumbbell merged commit 2a70d36 into v4.1.x Apr 9, 2025
273 checks passed
@dumbbell dumbbell deleted the mergify/bp/v4.1.x/pr-13470 branch April 9, 2025 10:48
dumbbell added a commit that referenced this pull request Apr 9, 2025
Fix test flakes in various testsuites (backport #13470) (backport #13717)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants