Skip to content

[wasm] Fix metadata test for precompressed runtime-pack assets - #138353

Merged
akoeplinger merged 1 commit into
mainfrom
akoeplinger-fix-wasm-pack-metadata-test
Nov 26, 2026
Merged

akoeplinger merged 1 commit into
mainfrom
akoeplinger-fix-wasm-pack-metadata-test

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Fix WasmMetadataSectionsTests.RuntimePack_ContainsProducersAssemblySource after #137939 by reading the ReadyToRun CoreLib and native WASM through RuntimePackAssets, which transparently handles raw and manifest-listed gzip entries.

The same Assert.NotNull failure at WasmMetadataSectionsTests.cs:242 already occurred in #137939's Azure DevOps build 1699652, but Build Analysis incorrectly matched it to #109653 (wasm-tools workload missing), causing the original PR's CI result to go green.

The direct assertions for dotnet-producers.s and the absence of dotnet-producers.o remain unchanged.

Validation:

  • ./build.sh clr+libs+host+packs -os browser -c Release /p:RuntimeFlavor=CoreCLR '/bl:{}' — passed.
  • ./dotnet.sh build ./src/mono/wasm/Wasm.Build.Tests/Wasm.Build.Tests.csproj -c Release -t:Test -p:TargetOS=browser -p:TargetArchitecture=wasm -p:RuntimeFlavor=CoreCLR -p:TestUsingWorkloads=false -p:XUnitMethodName=Wasm.Build.NativeRebuild.Tests.WasmMetadataSectionsTests.RuntimePack_ContainsProducersAssemblySource '/bl:{}' — reproduced the pre-fix failure at WasmMetadataSectionsTests.cs:242, then passed after the fix (1 test, 0 failures).

FYI @radekdoulik @maraf

Note

This pull request was created with GitHub Copilot.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@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.

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

@akoeplinger
akoeplinger merged commit 8eca064 into main Nov 26, 2026
32 of 34 checks passed
@akoeplinger
akoeplinger deleted the akoeplinger-fix-wasm-pack-metadata-test branch November 26, 2026 14:43
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 27, 2026
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.

3 participants