Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/9.0][wasi/wasm] Expected the multithreading runtime pack to be available when running on CI (after branch stabilization) #108937

Open
carlossanlop opened this issue Oct 16, 2024 · 1 comment
Assignees
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners os-browser Browser variant of arch-wasm os-wasi Related to WASI variant of arch-wasm
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Oct 16, 2024

Several tests in wasi/wasm started failing in the Stabilizing 9.0 PR because they're configured to throw an exception if they detect we're running in CI. The problem is that this is expected to happen in PRs.

This needs to be fixed in 9.0 and backported to main.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=844459
Build error leg or test failing: Several

Error Message

{
  "ErrorMessage" : "Expected the multithreading runtime pack to be available when running on CI",
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
  Starting:    Wasm.Build.Tests (parallel test collections = on [2 threads], stop on fail = off)
    Wasm.Build.Tests.Blazor.CleanTests.Blazor_BuildNoNative_ThenBuildNative_ThenClean(config: "Debug") [STARTING]
    Wasm.Build.Tests.Blazor.CleanTests.Blazor_BuildNoNative_ThenBuildNative_ThenClean(config: "Debug") [FAIL]
      System.TypeInitializationException : The type initializer for 'Wasm.Build.Tests.BuildTestBase' threw an exception.
      ---- System.Exception : Expected the multithreading runtime pack to be available when running on CI. IsRunningOnCI is true but IsWorkloadWithMultiThreadingForDefaultFramework is false.
      Stack Trace:
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
           at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
        ----- Inner Stack Trace -----
        /_/src/mono/wasm/Wasm.Build.Tests/Common/BuildEnvironment.cs(109,0): at Wasm.Build.Tests.BuildEnvironment..ctor()
        /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs(80,0): at Wasm.Build.Tests.BuildTestBase..cctor()

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=844459
Error message validated: [Expected the multithreading runtime pack to be available when running on CI]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/16/2024 6:40:29 PM UTC

Report

Build Definition Test Pull Request
848154 dotnet/runtime Wasm.Build.Tests.WasmTemplateTests.ConsoleBuildAndRunForSpecificTFM(config: "Debug", extraNewArgs: "-f net9.0", expectedTFM: "net9.0") #109048
848159 dotnet/runtime Wasm.Build.Tests.WasmSIMDTests.Build_NoAOT_ShouldNotRelink #109049
847977 dotnet/runtime Wasm.Build.Tests.WasmSIMDTests.Build_NoAOT_ShouldNotRelink
847880 dotnet/runtime Wasm.Build.Tests.Blazor.AppsettingsTests.FileInVfs
847627 dotnet/runtime Wasm.Build.NativeRebuild.Tests.FlagsChangeRebuildTests.ExtraEmccFlagsSetButNoRealChange
847485 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.LazyLoadingTests.FailOnMissingLazyAssembly
847042 dotnet/runtime Wasm.Build.Tests.WasmTemplateTests.ConsoleBuildAndRunForSpecificTFM(config: "Debug", extraNewArgs: "-f net9.0", expectedTFM: "net9.0")
846981 dotnet/runtime Wasm.Build.Tests.RebuildTests.NoOpRebuild
846875 dotnet/runtime Wasm.Build.Tests.WasmRunOutOfAppBundleTests.RunOutOfAppBundle
846663 dotnet/runtime Wasm.Build.Tests.Blazor.MiscTests.DefaultTemplate_AOT_InProjectFile(config: "Release") #108843
846660 dotnet/runtime Wasm.Build.Tests.MainWithArgsTests.TopLevelWithArgs #108751
846615 dotnet/runtime Wasm.Build.Tests.WasmTemplateTests.ConsoleBuildAndRunForSpecificTFM(config: "Debug", extraNewArgs: "-f net9.0", expectedTFM: "net9.0") #108516
846630 dotnet/runtime Wasm.Build.Tests.WasmBuildAppTest.PropertiesFromCsproj
846401 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.ModuleConfigTests.OutErrOverrideWorks #108482
846304 dotnet/runtime Wasm.Build.Tests.WasmTemplateTests.ConsoleBuildAndRunForSpecificTFM(config: "Debug", extraNewArgs: "-f net9.0", expectedTFM: "net9.0") #108910
846263 dotnet/runtime Wasm.Build.NativeRebuild.Tests.ReferenceNewAssemblyRebuildTest.ReferenceNewAssembly #108975
846047 dotnet/runtime Wasm.Build.Tests.WasmSIMDTests.Build_NoAOT_ShouldNotRelink #108877
845438 dotnet/runtime Wasm.Build.Tests.WasmRunOutOfAppBundleTests.RunOutOfAppBundle #108482
845291 dotnet/runtime Wasm.Build.NativeRebuild.Tests.FlagsChangeRebuildTests.ExtraEmccFlagsSetButNoRealChange
844459 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.MemoryTests.AllocateLargeHeapThenRepeatedlyInterop #108899

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
6 20 20
@carlossanlop carlossanlop added arch-wasm WebAssembly architecture blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm os-wasi Related to WASI variant of arch-wasm labels Oct 16, 2024
@carlossanlop carlossanlop added this to the 9.0.0 milestone Oct 16, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 16, 2024
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners os-browser Browser variant of arch-wasm os-wasi Related to WASI variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

4 participants