Skip to content

[ci-scan] Skip HostTests Moq tests on iossimulator (refs #128405) - #86

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
ci-scan/disable-hosttests-ios-128405-7150751097d722a0
Draft

[ci-scan] Skip HostTests Moq tests on iossimulator (refs #128405)#86
github-actions[bot] wants to merge 1 commit into
mainfrom
ci-scan/disable-hosttests-ios-128405-7150751097d722a0

Conversation

@github-actions

Copy link
Copy Markdown

Reasoning

Multiple HostTests tests fail on iossimulator-arm64 CoreCLR with System.IndexOutOfRangeException inside Castle.DynamicProxy.Generators.MethodWithInvocationGenerator.BuildProxiedMethodBody. This is a Castle.DynamicProxy/Moq code-generation bug specific to the iOS simulator CoreCLR environment. The existing IsReflectionEmitSupported condition passes on iossimulator (RefEmit is supported there), but Castle's internal codegen hits an array bounds issue.

Adding [ActiveIssue] with TestPlatforms.iOS is the narrowest scope that matches the observed failure.

Linked KBE: dotnet#128405

Match verification (from Step 4.8):

  1. Same test/family: Yes - all 7 tests are in Microsoft.Extensions.Hosting.Internal.HostTests and use Moq
  2. Same failure signature: Yes - System.IndexOutOfRangeException : Index was outside the bounds of the array. in Castle.DynamicProxy.Generators.MethodWithInvocationGenerator.BuildProxiedMethodBody
  3. Same OS: Yes - iossimulator (maps to TestPlatforms.iOS)
  4. Same architecture: Yes - arm64

Impact on platforms

  • runtime-extra-platforms (def 154) / iossimulator-arm64 Release AllSubsets_CoreCLR / ubuntu2204-amd64 queue / no stress mode / exit code 1

Errors log

[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)
at Castle.DynamicProxy.Contributors.CompositeTypeContributor.ImplementMethod(MetaMethod method, ClassEmitter class, OverrideMethodDelegate overrideMethod)

First build it occurred

Linked issue

dotnet#128405

Note

🔒 Integrity filter blocked 1 item

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

  • #125825search_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 · ● 81.2M ·

Castle.DynamicProxy throws IndexOutOfRangeException in
BuildProxiedMethodBody on iossimulator-arm64 CoreCLR. These Moq-based
tests consistently fail on that platform.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants