The RabbitMQ lifecycle tests wait for the broker's startup line and retry their first direct connection #415

Merged
claude merged 2 commits from feature/414-rabbitmq-test-broker-ready into develop 2026-11-13 04:30:01 -05:00
Owner

Closes #414

RabbitMqConnectionLifecycleTests failed once in a pull-request run because the broker reset the test's first connection.

  • The test container now counts as started when the broker logs "Server startup complete". The broker logs its TCP listener some milliseconds earlier, so the old wait for an open port could return before boot was done.
  • The two direct connections of the tests retry on BrokerUnreachableException, up to 20 times, 250 ms apart. The transport's own connections are not touched and no assertion changes.

The failure could not be reproduced on demand (0 of 20 container starts), so there is no red run. The change follows from the broker's log order. With it the project passed 10 runs in a row for the coder and 3 for the verifier.

Test code only, so no CHANGELOG entry.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

Closes #414 `RabbitMqConnectionLifecycleTests` failed once in a pull-request run because the broker reset the test's first connection. - The test container now counts as started when the broker logs "Server startup complete". The broker logs its TCP listener some milliseconds earlier, so the old wait for an open port could return before boot was done. - The two direct connections of the tests retry on `BrokerUnreachableException`, up to 20 times, 250 ms apart. The transport's own connections are not touched and no assertion changes. The failure could not be reproduced on demand (0 of 20 container starts), so there is no red run. The change follows from the broker's log order. With it the project passed 10 runs in a row for the coder and 3 for the verifier. Test code only, so no CHANGELOG entry. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #414

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The comments in the RabbitMQ lifecycle tests state only what the broker log and the failed runs show
All checks were successful
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Successful in -2m8s
Build / Stage Draft Release (push) Successful in -2m36s
Build / Pack and Push NuGet Packages (common) (push) Successful in -2m25s
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Successful in -2m7s
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Successful in -2m0s
Build / Pack and Push NuGet Packages (dhcp) (push) Successful in -2m15s
Build / Pack and Push NuGet Packages (dns-core) (push) Successful in -2m11s
Build / Pack and Push NuGet Packages (dns-server) (push) Successful in -2m2s
Build / Build Binary (linux-amd64) (pull_request) Successful in -34s
Build / Build Binary (linux-arm64) (pull_request) Successful in -39s
Build / Build Binary (macos-amd64) (pull_request) Successful in -26s
Build / Build Binary (macos-arm64) (pull_request) Successful in -28s
Build / Build Binary (linux-amd64) (push) Successful in -58s
Build / Build Binary (windows-amd64) (pull_request) Successful in -1m5s
Build / Smoke Test the Windows Binary (pull_request) Successful in 16s
Build / Build Binary (linux-arm64) (push) Successful in -1m14s
Build / Build Binary (macos-amd64) (push) Successful in -1m6s
Build / Build Binary (macos-arm64) (push) Successful in -1m17s
Build / Build Binary (windows-amd64) (push) Successful in -1m1s
Build / Smoke Test the Windows Binary (push) Successful in 15s
Build / Build Arch Linux Packages (pull_request) Successful in -2m21s
Build / Build and Push Image (pull_request) Successful in -2m32s
Build / Build and Test Deb and RPM Packages (pull_request) Successful in -1m1s
Build / Build Arch Linux Packages (push) Successful in -2m3s
Build / Build and Push Image (push) Successful in -2m32s
Build / Publish Release (pull_request) Successful in -2m35s
Build / Pipeline (pull_request) Successful in 0s
Build / Build and Test Deb and RPM Packages (push) Successful in -3s
Build / Publish Release (push) Successful in -2m30s
Build / Pipeline (push) Successful in 0s
f860309284
Refs #414

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit 33d15a2344 into develop 2026-11-13 04:30:01 -05:00
claude deleted branch feature/414-rabbitmq-test-broker-ready 2026-11-13 04:30:01 -05:00
Sign in to join this conversation.
No reviewers
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil!415
No description provided.