Skip to content

Baseline failing async tests#121761

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:baseline
Nov 19, 2025
Merged

Baseline failing async tests#121761
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:baseline

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Cc @dotnet/ilc-contrib

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

Copy link
Copy Markdown
Contributor

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

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 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)

@jkotas jkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@MichalStrehovsky

Copy link
Copy Markdown
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
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants