Skip to content

Exclude unsupported NativeAOT WASM native-library tests - #135950

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:nativeaot-wasm-unsupported-tests
Oct 16, 2026
Merged

MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:nativeaot-wasm-unsupported-tests

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Summary

Mark four currently unsupported NativeAOT WASM test configurations with CLRTestTargetUnsupported.

  • AggregateLibrary, CustomMainWithStubExe, and SharedLibrary require shared-library support, which NativeAOT WASM does not currently provide.
  • CustomMain needs a native archive that the existing WASM native-test CMake traversal does not build.

Condition the exclusions on TargetsWasm, covering WASI and browser without changing desktop coverage. This does not modify the native-test CMake traversal or exclude PInvoke and unrelated tests.

Validation

On the combined local NativeAOT WASI bringup tree, including other unmerged enablement:

  • MSBuild property evaluation confirmed all four projects are excluded for WASI/wasm and browser/wasm, and remain enabled for Windows/x64.
  • .\src\tests\build.cmd nativeaot checked tree nativeaot wasm wasi no longer reported these shared-library and missing-CustomMain-archive failures.
  • The latest combined-tree run still failed on the existing UnitTests lowering assertion, with C math ABI warnings remaining.

This branch contains only this cherry-picked commit from main; it was not built independently. Browser and desktop execution were not performed.

Note

This PR description was generated by GitHub Copilot.

Mark shared-library-dependent tests and CustomMain unsupported on WASM. Shared libraries are not supported, and CustomMain native test assets are not built by the WASM test traversal.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: a6f3a617-acae-4f4f-95d3-20b2a0bac43c
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

@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.

1 similar comment
@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.

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

/ba-g widespread mutex failures; this change is not covered by CI

@MichalStrehovsky
MichalStrehovsky enabled auto-merge (squash) October 16, 2026 22:46
@MichalStrehovsky
MichalStrehovsky merged commit 81287bb into dotnet:main Oct 16, 2026
94 of 99 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the nativeaot-wasm-unsupported-tests branch October 16, 2026 22:46
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 19, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 980b526a Deployed Oct 16, 2026 by MichalStrehovsky via conclusion #10549
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-NativeAOT-coreclr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants