-
Notifications
You must be signed in to change notification settings - Fork 853
Open
Open
Copy link
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Build information
- Workflow run: https://github.com/microsoft/aspire/actions/runs/23677225097
- Failing job:
Tests / Hosting.Redis / Hosting.Redis (ubuntu-latest) - Job URL: https://github.com/microsoft/aspire/actions/runs/23677225097/job/68982799344
- PR: Add HTTP command result support for AppHost HTTP commands #15664
- Commit:
6604577ba6100848dd56e4c2bfe7424fb683d2cd
Error
The failing leaf job appears unrelated to the HTTP command / ATS changes in the PR. The failure in the downloaded job logs is:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at System.Linq.Enumerable.OfTypeIterator[TResult](IEnumerable source)+MoveNext()
at System.Linq.Enumerable.TryGetLast[TSource](IEnumerable`1 source, Boolean& found)
at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source)
at Aspire.Hosting.ApplicationModel.ResourceExtensions.TryGetLastAnnotation[T](IResource resource) in /_/src/Aspire.Hosting/ApplicationModel/ResourceExtensions.cs:line 29
at Aspire.Hosting.ApplicationModel.RedisResource.get_ConnectionStringExpression() in /_/src/Aspire.Hosting.Redis/RedisResource.cs:line 108
at Aspire.Hosting.ApplicationModel.IResourceWithConnectionString.Aspire.Hosting.ApplicationModel.IValueWithReferences.get_References() in /_/src/Aspire.Hosting/ApplicationModel/IResourceWithConnectionString.cs:line 36
The surrounding log shows this happening while creating the redisinsight container resource:
Failed to create container resource redisinsight
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
Notes
- The aggregate jobs
Tests / Final Test ResultsandFinal Resultsfail because of this leaf job. - This looks like a concurrency/race around resource annotations or connection-string dependency resolution in Redis hosting.
- It may be flaky/intermittent; it surfaced on an unrelated PR.
Suggested investigation area
Aspire.Hosting.ApplicationModel.ResourceExtensions.TryGetLastAnnotationAspire.Hosting.Redis.RedisResource.ConnectionStringExpression- resource annotation mutation while dependency/reference enumeration is in progress
Additional failure detail
The failing test in the job appears to be:
Aspire.Hosting.Redis.Tests.RedisFunctionalTests.VerifyWithRedisInsightImportDatabases
The earlier stack trace excerpt captured the core exception block around the redisinsight container creation failure, but it was not the entire job log. The job summary includes this specific test name, and the failure occurs while creating the redisinsight resource.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication