microsoft / microsoft/aspire

Cosmos DB resource `RunAsEmulator()`: "The evaluation period has expired"

Open
#4,021 5 comments 2 reactions 0 assignees View on GitHub
area-integrations azure-cosmosdb
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

I ran into this when running our Aspire tests locally:

![image](https://github.com/dotnet/aspire/assets/203839/b9192236-7129-4f4c-a4c9-66a3c1c224c2)

This results in the test hanging for 10 minutes, presumably waiting for the container to start (it will never start). This issue occurs because machine already has an older version of the Cosmos DB container image and [we are specifying the tag `"latest"`](https://github.com/dotnet/aspire/blob/044f7690c2223d0e95fc0d70efb3494fb94b45fd/src/Aspire.Hosting.Azure.CosmosDB/AzureCosmosDBExtensions.cs#L100) and not periodically forcing a re-pull.

Perhaps we should check image age and re-pull images older than a certain period.
Either way, assuming Cosmos DB does not change its behavior, this will result in broken dev inner-loops and CI pipelines down the line.

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.