Skip to content

[clr-ios] Disable failing tests and fix trimming in Apple CoreCLR mobile test suites#129226

Open
kotlarmilos wants to merge 4 commits into
dotnet:mainfrom
kotlarmilos:clr-ios-disable-failing-tests
Open

[clr-ios] Disable failing tests and fix trimming in Apple CoreCLR mobile test suites#129226
kotlarmilos wants to merge 4 commits into
dotnet:mainfrom
kotlarmilos:clr-ios-disable-failing-tests

Conversation

@kotlarmilos

@kotlarmilos kotlarmilos commented Jun 10, 2026

Copy link
Copy Markdown
Member

Description

Disables three Apple CoreCLR mobile test failures against #124344 and fixes one via the trimmer descriptor:

  • InvokeWithRefLikeArgs.MethodTakesRefToRefStructAsArg_ThrowsNSE is disabled because Moq's RefEmit codegen breaks on iOS CoreCLR.
  • TensorPrimitives.SpanDestinationFunctions_ValueRange is disabled because Tan diverges by a few ULPs under FMA on arm64.
  • AssemblyTests.AssemblyGetForwardedTypesLoadFailure is disabled because GetForwardedTypes() does not resolve the forwarded System.Object/BadImageFormatException entries on trimmed Apple CoreCLR app bundles, even after rooting System.Runtime.
  • AssemblyTests.AssemblyLoadWithPublicKey is fixed by rooting the typeless System.Runtime facade in the trimmer descriptor so it is not dropped from the app bundle.

…ile test suites

Disable InvokeWithRefLikeArgs.MethodTakesRefToRefStructAsArg_ThrowsNSE and
TensorPrimitives SpanDestinationFunctions_ValueRange on Apple mobile CoreCLR
against dotnet#124344, and root the typeless System.Runtime facade in the trimmer
descriptor so AssemblyLoadWithPublicKey and AssemblyGetForwardedTypesLoadFailure
no longer fail to load it from the trimmed app bundle.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 10, 2026 10:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates several library test suites to improve reliability of Apple mobile CoreCLR test runs by conditionally disabling known failing tests and by ensuring trimming doesn’t remove a required facade assembly used by reflection tests.

Changes:

  • Add [ActiveIssue(...)] gating to skip a Moq/RefEmit-based reflection test on AppleMobile + CoreCLR.
  • Add [ActiveIssue(...)] gating to skip TensorPrimitives value-range coverage on AppleMobile + CoreCLR.
  • Update ILLink trimming descriptors to root the System.Runtime facade assembly so it isn’t trimmed away in the System.Reflection.Tests app.
Show a summary per file
File Description
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/InvokeWithRefLikeArgs.cs Adds an AppleMobile+CoreCLR ActiveIssue skip for a Moq/RefEmit test.
src/libraries/System.Runtime/tests/System.Reflection.Tests/ILLink.Descriptors.xml Roots System.Runtime in the linker descriptor to prevent it being trimmed from the test bundle.
src/libraries/System.Numerics.Tensors/tests/TensorPrimitives.Generic.cs Adds an AppleMobile+CoreCLR ActiveIssue skip for SpanDestinationFunctions_ValueRange.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

kotlarmilos and others added 2 commits June 10, 2026 13:09
Address review feedback: instead of [ActiveIssue] on the whole
SpanDestinationFunctions_ValueRange theory, omit only the Tan case from the
shared data provider on Apple mobile CoreCLR, preserving ValueRange coverage
for the other operations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ueRange

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 10, 2026 11:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

@kotlarmilos

Copy link
Copy Markdown
Member Author

/azp run runtime-extra-platforms

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

GetForwardedTypes() does not resolve the forwarded System.Object/BadImageFormatException
entries on trimmed Apple CoreCLR app bundles even after rooting the System.Runtime facade,
so gate the test against dotnet#124344 like the other Apple mobile CoreCLR failures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dotnet-policy-service dotnet-policy-service Bot added the linkable-framework Issues associated with delivering a linker friendly framework label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Infrastructure linkable-framework Issues associated with delivering a linker friendly framework os-ios Apple iOS

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants