microsoft / microsoft/aspire

Failing test: Aspire.Hosting.Python.Tests.AddPythonAppTests.WithVirtualEnvironment_CanBeChainedWithOtherExtensions

Open
#12,208 1 comment 0 reactions 0 assignees View on GitHub
needs-retriage
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

## Build Information
Build: https://github.com/dotnet/aspire/actions/runs/18618853268
Build error leg or test failing: Aspire.Hosting.Python.Tests.AddPythonAppTests.WithVirtualEnvironment_CanBeChainedWithOtherExtensions
Pull request:

## Error Message

Fill the error message using [step by step known issues guidance](https://github.com/dotnet/arcade/blob/main/Documentation/Projects/Build%20Analysis/KnownIssueJsonStepByStep.md).

```json
{
"ErrorMessage": "",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
```

```
System.InvalidOperationException : No service for type 'Aspire.Hosting.IAppHostEnvironment' has been registered. at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Aspire.Hosting.OtlpConfigurationExtensions.<>c__DisplayClass3_0.<b__0>d.MoveNext() in /_/src/Aspire.Hosting/OtlpConfigurationExtensions.cs:line 83
--- End of stack trace from previous location ---
at Aspire.Hosting.ApplicationModel.ResourceExtensions.ProcessEnvironmentVariableValuesAsync(IResource resource, DistributedApplicationExecutionContext executionContext, Action`4 processValue, ILogger logger, String containerHostName, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceExtensions.cs:line 352
at Aspire.Hosting.Tests.Utils.EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(IResource resource, DistributedApplicationOperation applicationOperation, IServiceProvider serviceProvider, String containerHostName) in D:\a\aspire\aspire\tests\Aspire.Hosting.Tests\Utils\EnvironmentVariableEvaluator.cs:line 21
at Aspire.Hosting.Python.Tests.AddPythonAppTests.WithVirtualEnvironment_CanBeChainedWithOtherExtensions() in D:\a\aspire\aspire\tests\Aspire.Hosting.Python.Tests\AddPythonAppTests.cs:line 503
--- End of stack trace from previous location ---
```

### Last 10 failures:
| Run date | Test Name |
| --------- | ---- |
| Oct 18 5 PM | [windows] [Aspire.Hosting.Python.Tests.AddPythonAppTests.WithVirtualEnvironment_CanBeChainedWithOtherExtensions](https://github.com/dotnet/aspire/actions/runs/18618853268) |
| Oct 15 4 AM | [macos] [Aspire.Hosting.Python.Tests.AddPythonAppTests.WithVirtualEnvironment_CanBeChainedWithOtherExtensions](https://github.com/dotnet/aspire/actions/runs/18516952030) |
| Oct 15 3 AM | [macos] [Aspire.Hosting.Python.Tests.AddPythonAppTests.WithVirtualEnvironment_CanBeChainedWithOtherExtensions](https://github.com/dotnet/aspire/actions/runs/18516738137) |

### Summary of the failures

| Last 24 hrs | Last 7 days | Last 30 days |
| --- | --- | --- |
| 0 | 3 | 3 |

-- Updated on 10/20/2025 4:52:24 PM UTC

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.