Skip to content

CoreCLR Wasm.Build.Tests lack non-WebCIL matrix coverage #138132

Closed as not planned

Description

@akoeplinger

Description

The Browser CoreCLR BuildWasmApps matrix cannot currently run with WasmEnableWebcil=false. Enabling a no-WebCIL permutation causes broad Wasm.Build.Tests failures instead of exercising DLL-resource coverage.

Reproduction Steps

  1. Run the Browser CoreCLR Wasm.Build.Tests matrix with WASM_ENABLE_WEBCIL=false / WasmEnableWebcil=false.
  2. Run tests such as SatelliteLoadingTests.SatelliteAssembliesFromPackageReference, ReadyToRunTests.PublishPartialProfileRunsAllPages, or the Blazor asset-caching tests.
  3. Observe build failures from the WebAssembly SDK.

CI evidence is available in #138114, Azure DevOps build 1694812, Helix work items WBT-NoWebcil-CLR-Wasm.Build.Tests and WBT-NoFingerprint-CLR-Wasm.Build.Tests.

Expected behavior

CoreCLR Wasm.Build.Tests should either support a no-WebCIL matrix permutation and exercise DLL resources, or clearly define which scenarios require WebCIL and provide focused coverage for the supported no-WebCIL scenarios.

Actual behavior

The no-WebCIL permutations fail broadly. Representative errors include:

  • The resource 'Microsoft.CSharp.wasm' is not recognized as any native asset
  • PublishReadyToRunComposite for CoreCLR browser-wasm requires WebCIL-in-Wasm assemblies; enable WasmEnableWebcil

Regression?

No. The CoreCLR matrix did not previously create WasmEnableWebcil=false permutations.

Known Workarounds

Keep the CoreCLR BuildWasmApps matrix on its default WebCIL configuration and retain only focused tests that explicitly cover supported WasmEnableWebcil=false behavior.

Configuration

  • Runtime: CoreCLR
  • Target OS: browser
  • Architecture: wasm
  • Configuration: Release
  • CI: Azure DevOps build 1694812

Other information

This was identified while reviewing the removal of the Mono-only library-test matrix. The old full WebCIL/DLL permutation was conditioned on RuntimeFlavor == Mono; extending it to CoreCLR exposed the unsupported scenarios.

Note

This issue was generated with GitHub Copilot.

Activity

  1. added
    untriaged
    on Nov 23, 2026
  2. added this to the 12.0.0 milestone on Nov 23, 2026
  3. added
    arch-wasm
    os-browser
    and removed
    untriaged
    on Nov 23, 2026
  4. dotnet-policy-service commented on Nov 23, 2026

    @dotnet-policy-service
    Contributor

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

  5. pavelsavara commented on Nov 23, 2026

    @pavelsavara
    Member

    @maraf we need to decide if we support WasmEnableWebcil=false at all for Net12

  6. maraf commented on Nov 23, 2026

    @maraf
    Member

    AFAIK we already had this discussion and decided to not support webcil=false. Let me know if you see a reason to support it

  7. pavelsavara commented on Nov 23, 2026

    @pavelsavara
    Member

    In that case, we need to drop WasmEnableWebcil feature and tests, except for compatibility of WASM SDK, right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmarea-Build-monoos-browser

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions