You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The failures reproduced in PR #133656, Azure DevOps build 1603190, Helix job 3158c862-61f5-4cf9-bb24-6ecdf2cfe895, work items WasmTestOnChrome-CLR-ST-Batch-10 and Batch-13.
Expected behavior
MetadataLoadContext preserves the expected MarshalAsAttribute pseudo-attribute fields, and GetForwardedTypes reports the expected loader exception behavior.
Unknown. Broad trimmed ReadyToRun library coverage is newly enabled. Related historical Mono/EAT reflection trimming issue: #50715, but these failures are different tests and runtime configuration.
Known Workarounds
Keep System.Reflection.MetadataLoadContext.Tests.dll interpreted and temporarily exclude only AssemblyGetForwardedTypesLoadFailure under aggressively trimmed browser tests. Product reflection assemblies remain ReadyToRun compiled.
Description
Trimmed browser-Wasm CoreCLR ReadyToRun exposes reflection metadata differences in two test assemblies:
System.Reflection.MetadataLoadContext.Tests: threeMarshalAsAttributepseudo-custom-attribute cases lose expected metadata values.System.Reflection.Tests:AssemblyGetForwardedTypesLoadFailureno longer observes the expected forwarded-type load failure shape.Found while bringing up #133193.
Reproduction Steps
Build and run the affected library tests for browser-Wasm CoreCLR with:
The failures reproduced in PR #133656, Azure DevOps build 1603190, Helix job
3158c862-61f5-4cf9-bb24-6ecdf2cfe895, work itemsWasmTestOnChrome-CLR-ST-Batch-10andBatch-13.Expected behavior
MetadataLoadContext preserves the expected
MarshalAsAttributepseudo-attribute fields, andGetForwardedTypesreports the expected loader exception behavior.Actual behavior
Examples:
F11andF12also report differing pseudo-attribute values.Regression?
Unknown. Broad trimmed ReadyToRun library coverage is newly enabled. Related historical Mono/EAT reflection trimming issue: #50715, but these failures are different tests and runtime configuration.
Known Workarounds
Keep
System.Reflection.MetadataLoadContext.Tests.dllinterpreted and temporarily exclude onlyAssemblyGetForwardedTypesLoadFailureunder aggressively trimmed browser tests. Product reflection assemblies remain ReadyToRun compiled.Configuration
Browser-Wasm CoreCLR Release, aggressively trimmed per-app ReadyToRun, Linux Helix host, Chrome 153.
Other information
Re-enable when the required pseudo-attribute and forwarded-type metadata survives this publish configuration.
Note
This issue was generated with GitHub Copilot assistance and reviewed as part of the #133193 bring-up.