Skip to content

Skip GitHub_130545 on NativeAOT - #132342

Merged
jkotas merged 1 commit into
dotnet:mainfrom
agocke:skip-github-130545-nativeaot
Aug 15, 2026
Merged

Skip GitHub_130545 on NativeAOT#132342
jkotas merged 1 commit into
dotnet:mainfrom
agocke:skip-github-130545-nativeaot

Conversation

@agocke

@agocke agocke commented Aug 14, 2026

Copy link
Copy Markdown
Member

Tracks #132030

The GitHub_130545 regression test was added for Mono WASM AOT and relies on reflection to force the gsharedvt path. The exact reflected method and generic argument are statically known, but NativeAOT currently fails while resolving the generic constraint metadata with TypeLoadException.

Temporarily skip this test only under NativeAOT while preserving its CoreCLR and Mono coverage. The test project now references TestLibrary for the runtime detection condition. Issue #132030 remains open to track the underlying NativeAOT reflection-metadata bug.

Validation:

  • src/tests/build.sh -Test Loader/classloader/StaticVirtualMethods/Regression/GitHub_130545.csproj x64 Release
  • 1 test project built, 0 warnings, 0 errors

Note

This PR description was generated with GitHub Copilot.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4f7cffaf-a483-4932-9813-1fb349883986
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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

Skips the GitHub_130545 regression test specifically on NativeAOT, where the test’s reflection-based generic-constraint resolution currently fails with TypeLoadException, while preserving coverage on CoreCLR and Mono.

Changes:

  • Add a conditional [ActiveIssue] skip on the failing test method when TestLibrary.Utilities.IsNativeAot is true.
  • Reference TestLibrary from the test project so Utilities.IsNativeAot can be used for the runtime-detection condition.
Show a summary per file
File Description
src/tests/Loader/classloader/StaticVirtualMethods/Regression/GitHub_130545.csproj Adds TestLibrary project reference to enable runtime detection via Utilities.IsNativeAot.
src/tests/Loader/classloader/StaticVirtualMethods/Regression/GitHub_130545.cs Applies ActiveIssue conditional skip for NativeAOT only on the failing regression test.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

@jkotas

jkotas commented Aug 15, 2026

Copy link
Copy Markdown
Member

/ba-g build analysis misclassifying failures dotnet/arcade#17340

@jkotas
jkotas merged commit c99188c into dotnet:main Aug 15, 2026
86 of 88 checks passed
@github-project-automation github-project-automation Bot moved this to Done in AppModel Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants