Fix Apple NativeAOT test harness crash from string P/Invoke marshalling - #130341
Merged
kotlarmilos merged 3 commits intoJul 9, 2026
Build Analysis / Build Analysis
succeeded
Jul 9, 2026 in 0s
.NET Result Analysis
Details
‼️ Build Analysis Check Result has been manually overridden
- The build analysis check result has been updated by the user for the following reason: unrelated extra-platforms failures, no marshalling Native AOT errors on Apple mobile
- The check result has changed from Failure to Success
Tip
To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.
Known Repository Errors
Known Infrastructure Errors
Known test errors
-
❌System.Numerics.Tensors.Tests.DoubleGenericTensorPrimitives.SpanDestinationFunctions_ValueRange - [ci-scan] Test failure: TensorPrimitives.SpanDestinationFunctions_ValueRange (Tan) on iossimulator
-
❌System.Numerics.Tensors.Tests.SingleGenericTensorPrimitives.SpanDestinationFunctions_ValueRange - [ci-scan] Test failure: TensorPrimitives.SpanDestinationFunctions_ValueRange (Tan) on iossimulator
-
❌System.Numerics.Tensors.Tests.WorkItemExecution - [ci-scan] Test failure: TensorPrimitives.SpanDestinationFunctions_ValueRange (Tan) on iossimulator
-
❌System.Diagnostics.Tests.FileVersionInfoTest.FileVersionInfo_CustomManagedAssembly - [ci-scan] Test failure: System.Diagnostics.Tests.FileVersionInfoTest.FileVersionInfo_CustomManagedAssembly on Apple NativeAOT
-
❌System.Diagnostics.Tests.FileVersionInfoTest.FileVersionInfo_CustomManagedAssembly - iOS tests failing with WORKLOAD TIMED OUT - Killing user command.
-
❌Microsoft.Extensions.Hosting.Tests.HostTests.CreateDefaultBuilder_RegistersEventSourceLogger - [ci-scan] Test failure: Microsoft.Extensions.Hosting.Tests.HostTests.CreateDefaultBuilder_RegistersEventSourceLogger on Apple Na
[Content truncated due to length]
-
❌System.Net.Tests.HttpResponseStreamTests.Write_ContentToClosedConnectionSynchronously_ThrowsHttpListenerException - [ci-scan] Test failure: System.Net.Tests.HttpResponseStreamTests.Write_ContentToClosedConnectionSynchronously_ThrowsHttpListener
[Content truncated due to length]
-
❌System.Net.Tests.HttpResponseStreamTests.Write_ContentToClosedConnectionAsynchronously_ThrowsHttpListenerException - [ci-scan] Test failure: System.Net.Tests.HttpResponseStreamTests.Write_ContentToClosedConnectionSynchronously_ThrowsHttpListener
[Content truncated due to length]
-
❌Microsoft.Extensions.Hosting.Unit.Tests.WorkItemExecution - [ci-scan] Test failure: Microsoft.Extensions.Hosting.Tests.HostTests.CreateDefaultBuilder_RegistersEventSourceLogger on Apple Na
[Content truncated due to length]
-
❌System.Diagnostics.FileVersionInfo.Tests.WorkItemExecution - [ci-scan] Test failure: System.Diagnostics.Tests.FileVersionInfoTest.FileVersionInfo_CustomManagedAssembly on Apple NativeAOT
-
❌System.Diagnostics.FileVersionInfo.Tests.WorkItemExecution - iOS tests failing with WORKLOAD TIMED OUT - Killing user command.
-
❌System.Net.HttpListener.Tests.WorkItemExecution - [ci-scan] Test failure: System.Net.Tests.HttpResponseStreamTests.Write_ContentToClosedConnectionSynchronously_ThrowsHttpListener
[Content truncated due to length]
-
❌XmlSerializerTests.Xml_TypeInCollectibleALC - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Reflection.Metadata.Decoding.Tests.SignatureDecoderTests.PinnedAndUnpinnedLocals - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyGetTypeStringSharedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.InstanceEnterContextualReflectionRaw - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.StaticEnterContextualReflectionRaw - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyLoadStringMultiLoadedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyLoadStringMultiLoadedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyLoadStringSharedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.InstanceEnterContextualReflectionUsingEarlyDispose - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.ActivatorCreateInstanceNameMultiLoadedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.EnterContextualReflectionUsingNestedImmutableDispose - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.TypeGetTypeStringMultiLoadedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.InstanceEnterContextualReflectionRawDispose - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyGetTypeStringSharedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.ActivatorCreateInstanceNullMultiLoadedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyLoadAssemblyNameSharedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.ActivatorCreateInstanceNameGenericMultiLoadedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.ActivatorCreateInstanceNameMultiLoadedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.StaticEnterContextualReflectionUsingEarlyDispose - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.InstanceEnterContextualReflectionUsingBasic - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.StaticEnterContextualReflectionUsingBasic - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyLoadAssemblyNameSharedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.StaticEnterContextualReflectionRawDispose - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyGetTypeStringMultiLoadedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyLoadAssemblyNameMultiLoadedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.StaticEnterContextualReflectionUsingNested - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyGetTypeStringMultiLoadedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.ActivatorCreateInstanceNameGenericMultiLoadedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.AssemblyLoadStringSharedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.FixtureIsSetupCorrectly - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.TypeGetTypeStringSharedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.InstanceEnterContextualReflectionUsingNested - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.ActivatorCreateInstanceNullGenericMultiLoadedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.ActivatorCreateInstanceNullMultiLoadedAssemblyIsolated - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
-
❌System.Runtime.Loader.Tests.ContextualReflectionTest.ActivatorCreateInstanceNullGenericMultiLoadedAssemblyDefault - CI failure on tvOS: test run failed, errors reading device logs, wall clock adjustment detected
Test Failures (327 tests failed)
🔹 [All failing tests from runtime]
❌ System.Net.Sockets.Tests.WorkItemExecution [Console] [Details] [Artifacts] [0.73% failure rate]
-
[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]
Failing Configuration
🔹 [All failing tests from runtime-extra-platforms]
- Exception Message
System.InvalidProgramException : Common Language Runtime detected an invalid program. [Full log]
- CallStack
at DispatchProxyTests.DispatchProxyTests.Demo() at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)... [Full call stack]
- net11.0-maccatalyst-Release-arm64-CoreCLR_Release-OSX.26.Arm64.Open
- net11.0-iossimulator-Release-arm64-CoreCLR_Release-OSX.26.Arm64.Open
- net11.0-iossimulator-Release-x64-CoreCLR_Release-OSX.15.Amd64.Open
- net11.0-tvos-Release-arm64-CoreCLR_Release-OSX.15.Amd64.AppleTV.Open
- net11.0-maccatalyst-Release-x64-CoreCLR_Release-OSX.15.Amd64.Open
- Exception Message
System.InvalidProgramException : Common Language Runtime detected an invalid program. [Full log]
- CallStack
at LoaderLinkTest.Dynamic.SharedInterfaceImplementation..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)... [Full call stack]
❌ DispatchProxyTests.DispatchProxyTests.Test_Multiple_AssemblyLoadContexts [Console] [Details] [Artifacts] [0.23% failure rate]
-
[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]
❌ DispatchProxyTests.DispatchProxyTests.Test_Multiple_AssemblyLoadContextsWithBadName [Console] [Details] [Artifacts] [0.23% failure rate]
-
[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
Failing Configurations (4)
❌ DispatchProxyTests.DispatchProxyTests.Test_Unloadability [Console] [Details] [Artifacts] [0.32% failure rate]
-
[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]
❌ LoaderLinkTest.LoaderLinkTest.EnsureTypesLinked [Console] [Details] [Artifacts] [0.30% failure rate]
-
[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
Failing Configurations (5)
Loading