aspire: Azure ServiceBus emulator is not reliable in CI
When running tests that use the ServiceBus emulator in CI, we are randomly getting failures with the sqledge container not starting successfully.
Examples:
- https://dev.azure.com/dnceng-public/public/_build/results?buildId=912694
- https://dev.azure.com/dnceng-public/public/_build/results?buildId=912738
Or when running Azure Functions playground app in the Playground.Tests:
https://dev.azure.com/dnceng-public/public/_build/results?buildId=913500
After the tests exit we see:
+ docker container ls --all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a1c98b3a374c mcr.microsoft.com/azure-sql-edge:latest "/opt/mssql/bin/perm…" 18 minutes ago Exited (1) 16 minutes ago messaging-sqledge-egpcscww-23011b3d
7fbf12f93e41 mcr.microsoft.com/azure-storage/azurite:3.33.0 "docker-entrypoint.s…" 18 minutes ago Up 18 minutes 127.0.0.1:32778->10000/tcp, 127.0.0.1:32777->10001/tcp, 127.0.0.1:32776->10002/tcp storage-bcfuwrtt-23011b3d
4a860a4604a6 mcr.microsoft.com/azure-storage/azurite:3.33.0 "docker-entrypoint.s…" 18 minutes ago Up 18 minutes 127.0.0.1:32775->10000/tcp, 127.0.0.1:32774->10001/tcp, 127.0.0.1:32773->10002/tcp eventhubs-storage-sbbpjwnj-23011b3d
9cebcc692cdc mcr.microsoft.com/azure-storage/azurite:3.33.0 "docker-entrypoint.s…" 18 minutes ago Up 18 minutes 127.0.0.1:32772->10000/tcp, 127.0.0.1:32771->10001/tcp, 127.0.0.1:32770->10002/tcp funcstoragefefd5-ygpmurne-23011b3d
78bbb652aed2 mcr.microsoft.com/azure-messaging/servicebus-emulator:1.0.1 "/ServiceBus_Emulato…" 18 minutes ago Exited (139) 15 minutes ago messaging-xqynaftj-23011b3d
3e9c359800ac mcr.microsoft.com/azure-messaging/eventhubs-emulator:latest "/Eventhubs_Emulator…" 18 minutes ago Up 18 minutes 8080/tcp, 127.0.0.1:32768->5672/tcp eventhubs-mcxdyvzj-23011b3d
These tests are being disabled until we can find out why they fail randomly and can be made stable.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 15 (14 by maintainers)
Commits related to this issue
- Disable Azure ServiceBus emulator functional tests The emulator isn't reliable / consistent in CI. Disabling for now. See #7066 — committed to eerhardt/aspire by eerhardt 2 years ago
- Disable Azure ServiceBus emulator functional tests (#7067) The emulator isn't reliable / consistent in CI. Disabling for now. See #7066 — committed to dotnet/aspire by eerhardt 2 years ago
sql-edge doesn’t work at all for me, since I’m on arm. Changed it to mssql - works flawlessly for me.
Why is it even set to sql edge? Is there some real advantage in using it over mssql?
I was made aware of https://learn.microsoft.com/dotnet/core/testing/microsoft-testing-platform-extensions-policy but I haven’t had a chance look beyond the docs.