Skip to content

Enable SuppressGCTransition tests on NativeAOT - #133402

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fix/nativeaot-suppress-gc-transition
Sep 9, 2026
Merged

MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fix/nativeaot-suppress-gc-transition

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Account for the NativeAOT executable subdirectory when locating native test assets and remove the Assembly.Location-related exclusion.

Account for the NativeAOT executable subdirectory when locating native test assets and remove the Assembly.Location-related exclusion.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 3dea65e4-6bec-47a1-b938-b02f43d8a0bb
Copilot AI lite review requested due to automatic review settings September 8, 2026 08:10
@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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
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.

🟡 Changes recommended

The updated NativeAOT path logic likely needs to avoid Assembly.Location and be more robust/consistent by probing both AppContext.BaseDirectory and its parent to match other tests and prevent layout-dependent failures.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Enables SuppressGCTransition interop tests to run under NativeAOT by adjusting how the test locates its native library, and removes the NativeAOT-specific ActiveIssue exclusion now that the test is intended to run there.

Changes:

  • Adjust native library probing logic to account for NativeAOT output layout differences.
  • Remove the ActiveIssue gate that disabled the test on NativeAOT.
File summaries
File Description
src/tests/Interop/SuppressGCTransition/SuppressGCTransitionTest.cs Updates native library location logic for NativeAOT and removes the NativeAOT ActiveIssue skip.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

/ba-g mono crash was known and addressed

@MichalStrehovsky
MichalStrehovsky enabled auto-merge (squash) September 9, 2026 05:11
@MichalStrehovsky
MichalStrehovsky merged commit e118c36 into dotnet:main Sep 9, 2026
86 of 89 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the fix/nativeaot-suppress-gc-transition branch September 9, 2026 05:13
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 9, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 10, 2026
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.

4 participants