Skip to content

[ci-scan] Test failure: HostTests on iossimulator - Castle.DynamicProxy IndexOutOfRangeException #128405

@github-actions

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1427615
Build error leg or test failing: iossimulator-arm64 Release AllSubsets_CoreCLR - Microsoft.Extensions.Hosting.Unit.Tests

Error Details

Multiple HostTests tests fail on iossimulator-arm64 with System.IndexOutOfRangeException in Castle.DynamicProxy.Generators.MethodWithInvocationGenerator.BuildProxiedMethodBody. This is a Moq/Castle.DynamicProxy code-generation issue specific to the iOS simulator CoreCLR environment.

Failing tests:

  • Microsoft.Extensions.Hosting.Internal.HostTests.Dispose_DisposesHostConfigurationProviders
  • Microsoft.Extensions.Hosting.Internal.HostTests.HostStopAsyncCanBeCancelledEarly
  • Microsoft.Extensions.Hosting.Internal.HostTests.DisposeAsync_DisposesAppConfigurationProviders
  • Microsoft.Extensions.Hosting.Internal.HostTests.DisposeAsync_DisposesHostConfigurationProviders
  • Microsoft.Extensions.Hosting.Internal.HostTests.HostStopAsyncUsesDefaultTimeoutIfGivenTokenDoesNotFire
  • Microsoft.Extensions.Hosting.Internal.HostTests.Dispose_DisposesAppConfigurationProviders
  • Microsoft.Extensions.Hosting.Internal.HostTests.WebHostStopAsyncUsesDefaultTimeoutIfNoTokenProvided
[FAIL] Microsoft.Extensions.Hosting.Internal.HostTests.Dispose_DisposesHostConfigurationProviders
System.IndexOutOfRangeException : Index was outside the bounds of the array.
   at Castle.DynamicProxy.Generators.MethodWithInvocationGenerator.BuildProxiedMethodBody(MethodEmitter emitter, ClassEmitter class, INamingScope namingScope)
   at Castle.DynamicProxy.Generators.MethodGenerator.Generate(ClassEmitter class, INamingScope namingScope)

Affected legs:

  • runtime-extra-platforms (def 154): iossimulator-arm64 Release AllSubsets_CoreCLR

First build it occurred: 1425947 (2026-05-19). 2 occurrences in scanned window (builds 1425947 and 1427615).

Error Message

{
  "ErrorMessage": ["HostTests", "System.IndexOutOfRangeException : Index was outside the bounds of the array."],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Note

🔒 Integrity filter blocked 1 item

The following item was blocked because it doesn't meet the GitHub integrity level.

  • #125825 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by CI Outer-Loop Failure Scanner · ● 22.5M ·

Report

Build Definition Test Pull Request
1429323 dotnet/runtime Microsoft.Extensions.Hosting.Unit.Tests.WorkItemExecution
1428144 dotnet/runtime Microsoft.Extensions.Hosting.Unit.Tests.WorkItemExecution #125437

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 2 2

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