Skip to content

[wasm][tests] Tracking issue for test failures with AOT #51251

Description

@radical

This is for tracking test failures when running with AOT.

To reproduce locally:

  1. use the branch from the second PR
  2. $ /dotnet.sh build /p:Configuration=Release /p:TargetOS=Browser /p:TargetArchitecture=wasm /t:Test /path/to/project/file /p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true
  3. If you are not able to reproduce it with the above, then try building with /p:BuildAOTTestsOnHelix=true to the above command line
  4. If you still cannot reproduce, then ask on the discord channel, as it might be a helix issue

tips:

  • make sure to assign the issue to yourself, if you are working on it
  • You can add /p:DebuggerSupport=true to get line numbers
  • Add /p:WasmNativeDebugSymbols=true /p:WasmNativeStrip=false for better traces
  • You can try /p:_WasmDevel=true for improving the build times (a bit)
  • It can be useful to run the tests in a browser. For that:
    • WasmXHarnessArgs="--no-headless --no-quit" Scenario=WasmTestOnBrowser - this will launch chrome in "headed" mode, and it won't quit after the tests are done
    • And adding WasmXHarnessMonoArgs="--runtime-arg=--trace=E" - will get you extra traces, but with v8 you will only see Native stacktrace (mono_llvm_cpp_throw_exception), but in the browser's js console, you can see the full trace for that
Name Issue crash/build-error
System.IO.Pipelines #50959 n
System.Runtime.Extensions.Tests #51676 n
System.Runtime.Serialization.Xml.ReflectionOnly.Tests #51679 n
System.Runtime.Tests #52393 n
System.Text.Json.Tests #51961 y

Tests that were failing till very recently

Name Issue crash/build-error
System.Reflection.Tests #51673 n
System.Runtime.Loader.DefaultContext.Tests #51680 y
System.Runtime.Loader.Tests #51678 n
System.Text.Encodings.Web.Tests #50965 y
System.CodeDom.Tests #51723 y

(not an exhaustive list. See label wasm-aot-test for all the issues)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions