runtime: `dotnet build` returns exit code `1` even when the build passes

This has resulted in a number of failures in the Installer and wasm tests.

Frequency of failures:

Day Run OS Details
9/29 Rolling run 35838 (7.0) Installer-coreclr-OSX_x64-Release 2x failures - Microsoft.DotNet.CoreSetup.Test
9/28 Rolling run 33975 (7.0) Installer-coreclr-Linux_musl_x64-Release 18x failures - Microsoft.DotNet.CoreSetup.Test
9/27 Rolling run 32807 (7.0) Installer-coreclr-OSX_x64-Release 10x failures - Microsoft.NET.HostModel
9/22 PR 27137 (7.0) Installer-coreclr-OSX_x64-Release
Installer-coreclr-Linux_musl_x64-Release
18x failures - AppHost.Bundle.Tests
17x - Microsoft.DotNet.CoreSetup.Test
9/22 PR 26733 (7.0) Installer-coreclr-OSX_x64-Release 9x failures - Microsoft.NET.HostModel
9/22 Rolling run 27252 (7.0) Installer-coreclr-OSX_x64-Release 6x failures - Microsoft.DotNet.CoreSetup.Test
9/22 Rolling run 25951 (7.0) Installer-coreclr-Linux_musl_x64-Release 4x failures - Microsoft.DotNet.CoreSetup.Test
9/20 PR 24381 (7.0-rc2) Installer-coreclr-Linux_musl_x64-Release
Installer-coreclr-OSX_x64-Release
20x failures - Microsoft.NET.HostModel
9/19 Rolling run 22992 (7.0) Installer-coreclr-Linux_musl_x64-Release 1x failure - Microsoft.DotNet.CoreSetup.Test
9/19 Rolling run 22463 (7.0-rc2) Installer-coreclr-Linux_x64-Release 17x failures - Microsoft.DotNet.CoreSetup.Test
9/16-9/21 More to be added later
9/16 Rolling run 20870 (7.0-rc2) Installer-coreclr-OSX_x64-Release 17x failures - Microsoft.DotNet.CoreSetup.Test
9/14 PR 17426 (7.0) Installer-coreclr-OSX_x64-Release 9x failures - Microsoft.NET.HostModel
23x failures - AppHost.Bundle.Tests
9/12 Rolling run 14258 (7.0) Installer-coreclr-Linux_x64-Release 9x failures - Microsoft.NET.HostModel
9/12 PR 13115 (7.0) - #75461 Installer-coreclr-Linux_x64-Release 19x failures - Microsoft.NET.HostModel
9/11 PR 12160 (7.0) Installer-coreclr-Linux_musl_x64-Release 17x failures - Microsoft.DotNet.CoreSetup.Test
9/10 PR 11802 (7.0) Installer-coreclr-Linux_x64-Release 34x failures - Microsoft.DotNet.CoreSetup.Test

Related Runfo queries:

Original Report

{
   "ErrorMessage":"Build process exited with non-zero exit code: 1"
}

This happens randomly. One example:

Build, and log:

Wasm.Build.Tests.BuildPublishTests.BuildThenPublishNoAOT(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = False, ProjectFileContents = placeholder, ExtraBuildArgs =  }, host: Chrome, id: "a2ixs4zc.rtn") [FAIL]
  Build process exited with non-zero exit code: 1
  Expected: True
  Actual:   False
  Stack Trace:
/_/src/tests/BuildWasmApps/Wasm.Build.Tests/BuildTestBase.cs(639,0): at Wasm.Build.Tests.BuildTestBase.AssertBuild(String args, String label, Boolean expectSuccess, IDictionary`2 envVars, Nullable`1 timeoutMs)
/_/src/tests/BuildWasmApps/Wasm.Build.Tests/BuildTestBase.cs(380,0): at Wasm.Build.Tests.BuildTestBase.BuildProject(BuildArgs buildArgs, String id, BuildProjectOptions options)
/_/src/tests/BuildWasmApps/Wasm.Build.Tests/BuildPublishTests.cs(56,0): at Wasm.Build.Tests.BuildPublishTests.BuildThenPublishNoAOT(BuildArgs buildArgs, RunHost host, String id)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
  Output:

...

-------- Building ---------
Binlog path: /datadisks/disk1/work/AC630921/w/B91B0982/uploads/xharness-output/logs/a2ixs4zc.rtn/build_publish_Release.binlog
Binlog path: /datadisks/disk1/work/AC630921/w/B91B0982/uploads/xharness-output/logs/a2ixs4zc.rtn/build_publish_Release.binlog
Building build_publish_Release in /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn
Running /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/dotnet publish -p:WasmBuildOnlyAfterPublish=true  /p:AppRefDir=/datadisks/disk1/work/AC630921/p/microsoft.netcore.app.ref /p:Configuration=Release /bl:"/datadisks/disk1/work/AC630921/w/B91B0982/uploads/xharness-output/logs/a2ixs4zc.rtn/build_publish_Release.binlog" /nologo /v:minimal  
WorkingDirectory: /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn
Setting environment variables for execution:
	DOTNET_INSTALL_DIR = /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload
	DOTNET_MULTILEVEL_LOOKUP = 0
	DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
	MSBuildSDKsPath = 
	PATH = /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload:./dotnet-workload:/datadisks/disk1/work/AC630921/p/dotnet-workload:/datadisks/disk1/work/AC630921/p/xharness-cli:/datadisks/disk1/work/AC630921/p/dotnet-cli:/datadisks/disk1/work/AC630921/p/build/emsdk-node/14.18.2_64bit/bin:/datadisks/disk1/work/AC630921/p/chrome-linux:/datadisks/disk1/work/AC630921/p/chromedriver_linux64:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
	EM_WORKAROUND_PYTHON_BUG_34780 = 1
	WasmNativeStrip = false
[a2ixs4zc.rtn] /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/sdk/7.0.100-rc.2.22419.24/MSBuild.dll /nologo -maxcpucount -property:_IsPublishing=true --property:WasmBuildOnlyAfterPublish=true --property:AppRefDir=/datadisks/disk1/work/AC630921/p/microsoft.netcore.app.ref --property:Configuration=Release -restore -target:Publish -verbosity:m /v:minimal /bl:
	/datadisks/disk1/work/AC630921/w/B91B0982/uploads/xharness-output/logs/a2ixs4zc.rtn/build_publish_Release.binlog ./build_publish_Release.csproj
[a2ixs4zc.rtn]   Determining projects to restore...
[a2ixs4zc.rtn]   All projects are up-to-date for restore.
[a2ixs4zc.rtn] /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/sdk/7.0.100-rc.2.22419.24/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(219,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/build_publish_Release.csproj]
[a2ixs4zc.rtn]   build_publish_Release -> /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/bin/Release/net7.0/browser-wasm/build_publish_Release.dll
[a2ixs4zc.rtn]   Optimizing assemblies for size. This process might take a while.
[a2ixs4zc.rtn]   ** MicrosoftNetCoreAppRuntimePackDir : /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci
[a2ixs4zc.rtn]   build_publish_Release -> /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/bin/Release/net7.0/browser-wasm/publish/
[a2ixs4zc.rtn]   build_publish_Release -> /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/bin/Release/net7.0/browser-wasm/build_publish_Release.dll
[a2ixs4zc.rtn]   ** MicrosoftNetCoreAppRuntimePackDir : /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci
[a2ixs4zc.rtn]   build_publish_Release -> /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/bin/Release/net7.0/browser-wasm/publish/
[a2ixs4zc.rtn]   Compiling native assets with emcc with -Oz. This may take a while ...
[a2ixs4zc.rtn]   [1/3] pinvoke.c -> pinvoke.o [took 0.236s]
[a2ixs4zc.rtn]   [2/3] driver.c -> driver.o [took 0.323s]
[a2ixs4zc.rtn]   [3/3] corebindings.c -> corebindings.o [took 0.162s]
[a2ixs4zc.rtn]   Linking for initial memory $(EmccInitialHeapSize)=536870912 bytes. Set this msbuild property to change the value.
[a2ixs4zc.rtn]   Linking with emcc with -O2. This may take a while ...
[a2ixs4zc.rtn]"/datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NET.Runtime.Emscripten.3.1.12.Sdk.linux-x64/8.0.0-alpha.1.22417.1/tools/bin/wasm-ld" -o /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/obj/Release/net7.0/browser-wasm/wasm/for-publish/dotnet.wasm --allow-undefined --allow-undefined /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/obj/Release/net7.0/browser-wasm/wasm/for-publish/pinvoke.o /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/obj/Release/net7.0/browser-wasm/wasm/for-publish/driver.o /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/obj/Release/net7.0/browser-wasm/wasm/for-publish/corebindings.o /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libicudata.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libicui18n.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libicuuc.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmono-component-debugger-stub-static.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmono-component-diagnostics_tracing-stub-static.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmono-component-hot_reload-stub-static.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmono-component-marshal-ilgen-static.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmono-ee-interp.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmono-icall-table.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmono-ilgen.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmono-profiler-aot.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmono-wasm-eh-js.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libmonosgen-2.0.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libSystem.IO.Compression.Native.a /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/8.0.0-ci/runtimes/browser-wasm/native/libSystem.Native.a -L/datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NET.Runtime.Emscripten.3.1.12.Sdk.linux-x64/8.0.0-alpha.1.22417.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten -lGL -lal -lhtml5 -lstubs -lnoexit -lc -ldlmalloc -lcompiler_rt -lc++ -lc++abi -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --import-undefined --export-if-defined=malloc --export-if-defined=memalign --export-if-defined=memset --export-if-defined=htons --export-if-defined=ntohs --export-if-defined=free --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export=stackSave --export=stackRestore --export=stackAlloc --export=__wasm_call_ctors --export=__errno_location --export=malloc --export=free --export=__cxa_is_pointer_type --export=__cxa_can_catch --export=setThrew --export=ntohs --export=htons --export=__dl_seterr --export=htonl --export=emscripten_builtin_memalign --export-table -z stack-size=5242880 --initial-memory=536870912 --no-entry --max-memory=2147483648 --global-base=1024
[a2ixs4zc.rtn]"/datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NET.Runtime.Emscripten.3.1.12.Sdk.linux-x64/8.0.0-alpha.1.22417.1/tools/bin/wasm-emscripten-finalize" -g --dyncalls-i64 --dwarf /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/obj/Release/net7.0/browser-wasm/wasm/for-publish/dotnet.wasm -o /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/obj/Release/net7.0/browser-wasm/wasm/for-publish/dotnet.wasm --detect-features
[a2ixs4zc.rtn]"/datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NET.Runtime.Emscripten.3.1.12.Node.linux-x64/8.0.0-alpha.1.22417.1/tools/bin/node" /datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NET.Runtime.Emscripten.3.1.12.Sdk.linux-x64/8.0.0-alpha.1.22417.1/tools/emscripten/src/compiler.js /datadisks/disk1/work/AC630921/t/tmpudqvnfoy.json
[a2ixs4zc.rtn]"/datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NET.Runtime.Emscripten.3.1.12.Sdk.linux-x64/8.0.0-alpha.1.22417.1/tools/bin/wasm-opt" --post-emscripten -O2 --low-memory-unused --zero-filled-memory --strip-producers /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/obj/Release/net7.0/browser-wasm/wasm/for-publish/dotnet.wasm -o /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/obj/Release/net7.0/browser-wasm/wasm/for-publish/dotnet.wasm -g --mvp-features --enable-mutable-globals
[a2ixs4zc.rtn]"/datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/packs/Microsoft.NET.Runtime.Emscripten.3.1.12.Sdk.linux-x64/8.0.0-alpha.1.22417.1/tools/bin/wasm-opt" --print-function-map --quiet /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/obj/Release/net7.0/browser-wasm/wasm/for-publish/dotnet.wasm --mvp-features --enable-mutable-globals
[a2ixs4zc.rtn]   Generated app bundle at /datadisks/disk1/work/AC630921/w/B91B0982/e/a2ixs4zc.rtn/bin/Release/net7.0/browser-wasm/AppBundle/
[a2ixs4zc.rtn] 
[a2ixs4zc.rtn] Workload updates are available. Run `dotnet workload list` for more information.

Report

Build Definition Test Pull Request
79473 dotnet/runtime Workloads-Wasm.Build.Tests.WasmSIMDTests.WorkItemExecution dotnet/runtime#78182

Summary

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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 32 (32 by maintainers)

Most upvoted comments

This probably needs a binlog