Skip to content

Fix CoreCLR WebAssembly build test configuration - #137527

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
akoeplinger:akoeplinger-fix-coreclr-wbt
Nov 14, 2026
Merged

akoeplinger merged 1 commit into
dotnet:mainfrom
akoeplinger:akoeplinger-fix-coreclr-wbt

Conversation

@akoeplinger

Copy link
Copy Markdown
Member

Follow-up to #137518, based on latest main (095f5e151e743e5b18db8004cb864da965857efe). Addresses the two WBT failure causes observed on Linux and Windows in build 1680523.

  • Align the current workload manifest's crossgen2 package version with the selected CoreCLR runtime version. The multi-client Blazor test otherwise combines runtime 12.0.0-ci with SDK crossgen2 12.0.0-alpha.1.26561.116, generating incompatible callhelpers and failing to link ResolveRuntimeHelperEntrypoint.
  • Make UnusedCoreLibEntryPointsAreTrimmed workload-only and remove its obsolete no-workload setup. It requires native relinking/Emscripten, which is not available in the no-workload lane. All four test data sources and native trimming assertions remain intact. This addresses the failure tracked in [ci-scan] Test failure: Wasm.Build.Tests.PInvokeTableGeneratorTests.UnusedCoreLibEntryPointsAreTrimmed #137492.

Validation

  • ./.dotnet/dotnet build src/mono/wasm/Wasm.Build.Tests/Wasm.Build.Tests.csproj -c Release -p:TargetOS=browser -p:TargetArchitecture=wasm -p:RuntimeFlavor=CoreCLR -p:InstallWorkloadForTesting=false -p:InstallChromeForTests=false -p:InstallFirefoxForTests=false -p:InstallV8ForTests=false — passed.
  • ./.dotnet/dotnet msbuild src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest.pkgproj -t:Build -p:TargetOS=browser -p:TargetArchitecture=wasm -p:RuntimeFlavor=CoreCLR — passed.
  • Inspected compiled test metadata: workload category retained, no-workload category absent, all four data sources retained.
  • Five MSBuild evaluations against the freshly extracted manifest package passed: browser/WASI compiler and runtime versions match; unaffected desktop and downlevel metadata remain unchanged. The mismatch was reproduced against the preceding package before the fix.
  • git diff --check — passed.

Full native publish/browser execution and hosted WBT were not rerun locally.

Note

This pull request was prepared with GitHub Copilot.

Align workload crossgen2 with the selected runtime pack and restrict native CoreLib entrypoint trimming coverage to workload-enabled test runs.

Co-authored-by: Copilot App <[email protected]>
@azure-pipelines

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

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