runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[Wasm][Test Failure] LoadLazyAssemblyBeforeItIsNeeded(lazyLoadingTestExtension: "wasm", allLazyLoadingTestExtensions: ["wasm", "dll", "NoExtension"])

Open CarnaViire opened this issue 1 year ago • 8 comments
trafficstars

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=769868 Build error leg or test failing: Wasm.Build.Tests.TestAppScenarios.LazyLoadingTests.LoadLazyAssemblyBeforeItIsNeeded Pull request: https://github.com/dotnet/runtime/pull/105841

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Could not find the pattern in the build output: '\\*\\* MicrosoftNetCoreAppRuntimePackDir : '([^ ']*)''.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=769868 Error message validated: [Could not find the pattern in the build output: '\*\* MicrosoftNetCoreAppRuntimePackDir : '([^ ']*)''.] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 8/8/2024 7:59:41 PM UTC

Report

Build Definition Test Pull Request
843683 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.SatelliteLoadingTests.LoadSatelliteAssembly

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

CarnaViire avatar Aug 08 '24 19:08 CarnaViire

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries See info in area-owners.md if you want to be subscribed.

cc @maraf

lewing avatar Aug 14 '24 16:08 lewing

Looking at offended builds, binlog always correctly contains PrintRuntimePackPath target and the message. Only the text output in log is missing it, including the standard dotnet build summary

Build succeeded. 0 Warning(s) 0 Error(s)

Time Elapsed 00:00:08.02

It checked for success exit code before. So, buffers in process wrapper?

maraf avatar Sep 03 '24 11:09 maraf

do we need to flush MSBuild stdout somehow ? Kill the process ?

pavelsavara avatar Sep 24 '24 08:09 pavelsavara

There is a library for reading binlog https://www.nuget.org/packages/MSBuild.StructuredLogger. Maybe if we don't get "Build finished" message from the build process output, we can try to read all messages from binlog

maraf avatar Sep 27 '24 10:09 maraf

It checked for success exit code before. So, buffers in process wrapper?

We keep seeing reports of the redirected output being truncated mysteriously. For example, https://github.com/dotnet/runtime/issues/108395 filled a few days ago or https://github.com/dotnet/runtime/issues/100114#issuecomment-2099934576 from a few months ago. Given the variety of the reports, it points to a bug (race condition?) in System.Diagnostics.Process implementation.

jkotas avatar Oct 04 '24 11:10 jkotas

Is it possible that we are dealing with "msbuild server" process ?

pavelsavara avatar Oct 04 '24 12:10 pavelsavara

Mitigated by reading the binlog

maraf avatar Oct 22 '24 11:10 maraf

@maraf could this be closed ?

pavelsavara avatar Jul 18 '25 11:07 pavelsavara