Skip to content

[ios-clr] Update IsMetadataUpdateSupported to aggressive trimming instead of NativeAOT#127055

Open
kotlarmilos wants to merge 1 commit intodotnet:mainfrom
kotlarmilos:ios-clr/pr-d-metadata-update
Open

[ios-clr] Update IsMetadataUpdateSupported to aggressive trimming instead of NativeAOT#127055
kotlarmilos wants to merge 1 commit intodotnet:mainfrom
kotlarmilos:ios-clr/pr-d-metadata-update

Conversation

@kotlarmilos
Copy link
Copy Markdown
Member

@kotlarmilos kotlarmilos commented Apr 17, 2026

Description

This PR updates IsMetadataUpdateSupported to aggressive trimming instead of Native AOT to avoid using ActiveIssue for Apple mobile tests that are not supported.

…d of NativeAOT

update (EnC / hot reload) actually relies on reflection metadata
preserved by the trimmer. Aggressively-trimmed CoreCLR apps on Apple
mobile hit the same limitation. Base the check on
ReflectionCacheTests.InvokeClearCache_NoExceptions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts library test gating so metadata update–dependent tests are skipped on platforms where aggressive trimming makes metadata updates unsupported (not just on NativeAOT). This helps stabilize CoreCLR test runs on Apple mobile targets as part of the larger iOS CLR test-fix effort.

Changes:

  • Update PlatformDetection.IsMetadataUpdateSupported to depend on !IsBuiltWithAggressiveTrimming.
  • Remove a now-redundant ActiveIssue skip in ReflectionCacheTests (Apple mobile + CoreCLR), relying on the updated conditional skip instead.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs Re-defines IsMetadataUpdateSupported to reflect aggressive trimming (covers Apple mobile) rather than only NativeAOT.
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/ReflectionCacheTests.cs Removes an ActiveIssue attribute now superseded by ConditionalFact(IsMetadataUpdateSupported).

@kotlarmilos kotlarmilos changed the title [ios-clr] Tie IsMetadataUpdateSupported to aggressive trimming instead of NativeAOT [ios-clr] Update IsMetadataUpdateSupported to aggressive trimming instead of NativeAOT Apr 17, 2026
@kotlarmilos kotlarmilos added the os-ios Apple iOS label Apr 17, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

@kotlarmilos kotlarmilos requested a review from matouskozak April 17, 2026 10:12
@kotlarmilos kotlarmilos added this to the 11.0.0 milestone Apr 17, 2026
@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).

This was referenced Apr 17, 2026
Sign up for free to 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.

3 participants