Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

Cc @dotnet/ilc-contrib

Copilot AI review requested due to automatic review settings November 18, 2025 22:45
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Copy link
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

This PR baselines failing async tests for NativeAOT compatibility by working around unsupported features. The changes address three main issues: the dynamic keyword is unsupported in NativeAOT, AssemblyLoadContext (ALC) collectible assemblies are not supported, and the GetInterfaceMap API has known issues that will cause test failures.

  • Replaced dynamic keyword usage with conditional reflection-based invocation for NativeAOT
  • Disabled GetInterfaceMap test on NativeAOT using [ActiveIssue] attribute
  • Converted collectible ALC test to conditional test that skips when collectible assemblies are not supported

Reviewed Changes

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

File Description
src/tests/async/reflection/reflection-simple.cs Adds NativeAOT workaround for dynamic keyword usage by using reflection when running on NativeAOT, and disables GetInterfaceMap test on NativeAOT with ActiveIssue attribute
src/tests/async/collectible-alc/collectible-alc.csproj Adds TestLibrary project reference needed for PlatformDetection API
src/tests/async/collectible-alc/collectible-alc.cs Converts test to ConditionalFact that skips when collectible assemblies are not supported (NativeAOT)

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

LGTM

@MichalStrehovsky
Copy link
Member Author

/ba-g osx legs didn't run due to brownout

@MichalStrehovsky MichalStrehovsky merged commit 5eedc2a into dotnet:main Nov 19, 2025
69 of 79 checks passed
@MichalStrehovsky MichalStrehovsky deleted the baseline branch November 19, 2025 07:27
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.

2 participants