Skip to content

Test failure: Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ScopeValidationtEnabledInDevelopmentWithServiceProviderChanges #126930

@VincentBu

Description

@VincentBu

Failed in: runtime-coreclr crossgen2 20260413.1

Failed tests:

net11.0-osx-Release-x64-TestReadyToRun_Release-OSX.15.Amd64.Open
- Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ScopeValidationtEnabledInDevelopmentWithServiceProviderChanges
- Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ScopeValidationNotEnabledInDevelopmentWithServiceProviderChanges
- Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ValidateOnBuildNotEnabledInDevelopmentWithServiceProviderChanges
- Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ConfigureDefaultServiceProvider
net11.0-osx-Release-arm64-TestReadyToRun_RuntimeAsync_Release-OSX.26.Arm64.Open
- Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ScopeValidationtEnabledInDevelopmentWithServiceProviderChanges
- Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ScopeValidationNotEnabledInDevelopmentWithServiceProviderChanges
- Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ValidateOnBuildNotEnabledInDevelopmentWithServiceProviderChanges
- Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ConfigureDefaultServiceProvider

Error message:

System.OutOfMemoryException : Exception of type 'System.OutOfMemoryException' was thrown.

Stack trace:

   at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.UseDefaultServiceProvider(IHostBuilder hostBuilder, Action`2 configure)
   at Microsoft.Extensions.Hosting.Tests.HostBuilderTests.ScopeValidationtEnabledInDevelopmentWithServiceProviderChanges() in /_/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostBuilderTests.cs:line 583
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions