You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Service Bus emulator tests time out while pulling cold Docker images #347
The three Service Bus emulator cases in the core Release suite exhausted their five-minute cancellation deadline while Testcontainers was downloading container images on a cold Windows Docker host. None reached broker assertions, so an ordinary first local test run reports three test failures for image provisioning rather than settlement or send behavior.
Reproduction
On a host without the pinned emulator/SQL Server images cached, run dotnet test --project tests/Relayer.Tests -c Release at 8c21702. ServiceBusBindingEmulatorTests.cs:20 and ServiceBusSendEmulatorTests.cs:30 start a five-minute cancellation source before Testcontainers provisioning; their StartAsync calls at lines 42 and 44 use it.
The observed run took 5m 16s: 731/734 tests passed. Both Native_settlement_round_trips_against_service_bus_emulator arguments and Native_sends_batches_sessions_scheduling_and_topology_round_trip failed in DockerImageOperations.CreateAsync / PullImageAsync. The SQL Server image pull alone took 4m 16s, and database readiness completed at 4m 52s. The emulator image pull then hit the same deadline. No retry was used to replace this result.
Expected and actual
Provisioning should have a bounded, explicit setup budget separate from broker operation assertions, or cold-image prerequisites should be prepared and validated before the test deadline starts. Keep test execution bounded and expose provisioning failures clearly; do not blindly raise all operation timeouts.
Environment
Windows 11 x64, SDK 10.0.403, .NET 10.0.14, Docker Desktop Linux containers; Testcontainers.ServiceBus 4.16.0. Raw log/report retained at D:/git/Relayer-evidence/issue-347/baseline-parallel.log and baseline-parallel-report.html during #299 attribution. This is distinct from #139, which reaches a real MessageLockLost settlement response.
Please separate cold-image provisioning from the Service Bus test execution deadline.
Implemented in draft PR #379, commit 602e615 (issue-347-servicebus-setup). Provisioning has a bounded 15-minute budget; the existing send/settlement, receive, and conformance operation budgets start after readiness. Setup cancellation identifies image pulls/container readiness in the timeout diagnostic. Release core-test build passed with zero warnings/errors.
Local real-emulator validation is incomplete: the Docker control plane became unresponsive during parallel SQL/emulator startup. The owned test process was terminated without a terminal test result; no retry or pass claim was made. Targeted stops for the observed owned containers succeeded when Docker recovered. The canonical lock release also succeeded; after re-acquiring the issue lock and verifying ownership, the committed branch was pushed and the PR opened. No shared Docker or Redis service was restarted.
Evidence and the exact validation limitation are retained under /Users/tom/git/Relayer-evidence/pr-379/602e615b6fc00a5af107435379ed26e44a289075/ (the PR body records the exact full-head path and verified inventory). The draft awaits normal review and CI validation.
Activity
thomhurst commentedon Nov 10, 2026
Implemented in draft PR #379, commit 602e615 (
issue-347-servicebus-setup). Provisioning has a bounded 15-minute budget; the existing send/settlement, receive, and conformance operation budgets start after readiness. Setup cancellation identifies image pulls/container readiness in the timeout diagnostic. Release core-test build passed with zero warnings/errors.Local real-emulator validation is incomplete: the Docker control plane became unresponsive during parallel SQL/emulator startup. The owned test process was terminated without a terminal test result; no retry or pass claim was made. Targeted stops for the observed owned containers succeeded when Docker recovered. The canonical lock release also succeeded; after re-acquiring the issue lock and verifying ownership, the committed branch was pushed and the PR opened. No shared Docker or Redis service was restarted.
Evidence and the exact validation limitation are retained under
/Users/tom/git/Relayer-evidence/pr-379/602e615b6fc00a5af107435379ed26e44a289075/(the PR body records the exact full-head path and verified inventory). The draft awaits normal review and CI validation.Separate Service Bus emulator provisioning deadlines (#347) (#379)