microsoft / microsoft/aspire

Azure ServiceBus emulator is not reliable in CI

Open
#7,066 17 comments 0 reactions 0 assignees View on GitHub
area-integrations azure azure-servicebus disabled-tests external flaky-test internal-customer-impact
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

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

https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-aspire-refs-pull-7048-merge-464d941387084146a7/Aspire.Playground.Tests/1/console.b2dd2d1b.log?skoid=8eda00af-b5ec-4be9-b69b-0919a2338892&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2025-01-10T21%3A46%3A19Z&ske=2025-01-10T22%3A46%3A19Z&sks=b&skv=2024-11-04&sv=2024-11-04&st=2025-01-10T21%3A46%3A19Z&se=2025-01-10T22%3A46%3A19Z&sr=c&sp=r&sig=cVb5usSQfhF3fv1uoy5lsT2h8kI84vS5kwfTop3fooY%3D

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.