dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.18k stars 4.72k forks source link

[wasm] Blazor/AOT tests failing because `Microsoft.JSInterop.WebAssembly` is not getting skipped for AOT #85010

Closed radical closed 1 year ago

radical commented 1 year ago

WBT tests Workloads-Wasm.Build.Tests.Blazor.MiscTests breaking on rolling build. Log:

    Wasm.Build.Tests.Blazor.MiscTests.DefaultTemplate_AOT_InProjectFile(config: "Debug") [FAIL]
      Assert.DoesNotContain() Failure
      Found:    Microsoft.JSInterop.WebAssembly.dll -> Microsoft.JSInterop.WebAssembly.dll.bc
...

This is with sdk 8.0.100-preview.4.23218.17, and fails because of https://github.com/dotnet/sdk/blob/4ea3e8304c21022bbea72a29154b7602af4f9239/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets#L22 and https://github.com/dotnet/sdk/blob/4ea3e8304c21022bbea72a29154b7602af4f9239/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets#L60 . Removing the duplicate at line 60 fixes the issue.

Known Issue Error Message

Fill the error message using known issues guidance.

{
  "ErrorPattern": "Found: *Microsoft.JSInterop.WebAssembly.dll -> Microsoft.JSInterop.WebAssembly.dll.bc",
  "BuildRetry": false
}

Report

Build Definition Test Pull Request
243658 dotnet/runtime Workloads-Wasm.Build.Tests.Blazor.MiscTests.WorkItemExecution dotnet/runtime#85009
243508 dotnet/runtime Workloads-Wasm.Build.Tests.Blazor.MiscTests.WorkItemExecution dotnet/runtime#80154

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 2 2
ghost commented 1 year ago

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

Issue Details
WBT tests `Workloads-Wasm.Build.Tests.Blazor.MiscTests` breaking on [rolling build](https://dev.azure.com/dnceng-public/public/_build/results?buildId=243497&view=results). [Log](https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-heads-main-bd3adc99b88e4a0981/Workloads-Wasm.Build.Tests.Blazor.MiscTests/1/console.dd22e293.log?helixlogtype=result): ``` Wasm.Build.Tests.Blazor.MiscTests.DefaultTemplate_AOT_InProjectFile(config: "Debug") [FAIL] Assert.DoesNotContain() Failure Found: Microsoft.JSInterop.WebAssembly.dll -> Microsoft.JSInterop.WebAssembly.dll.bc ... ``` This is with sdk `8.0.100-preview.4.23218.17`, and fails because of https://github.com/dotnet/sdk/blob/4ea3e8304c21022bbea72a29154b7602af4f9239/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets#L22 and https://github.com/dotnet/sdk/blob/4ea3e8304c21022bbea72a29154b7602af4f9239/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets#L60 . Removing the duplicate at line 60 fixes the issue.
Author: radical
Assignees: -
Labels: `arch-wasm`, `area-Build-mono`, `test-failure`
Milestone: -