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

dotnet build returns exit code 1 even when the build passes #74328

Closed
radical opened this issue Aug 22, 2022 · 32 comments
Closed

dotnet build returns exit code 1 even when the build passes #74328

radical opened this issue Aug 22, 2022 · 32 comments
Labels
area-Infrastructure 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
Milestone

Comments

@radical
Copy link
Member

radical commented Aug 22, 2022

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 #78182

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 22, 2022
@radical radical added the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Aug 22, 2022
@lewing
Copy link
Member

lewing commented Aug 22, 2022

cc @rainersigwald

@danmoseley
Copy link
Member

This probably needs a binlog

@radical
Copy link
Member Author

radical commented Aug 24, 2022

Here's the binlog referenced in the log Binlog path: /datadisks/disk1/work/AC630921/w/B91B0982/uploads/xharness-output/logs/a2ixs4zc.rtn/build_publish_Release.binlog:
binlog.zip

@radical
Copy link
Member Author

radical commented Aug 26, 2022

This is being hit frequently - two new instances.

@ghost
Copy link

ghost commented Aug 26, 2022

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

Issue Details

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.
Author: radical
Assignees: -
Labels:

area-Meta, blocking-clean-ci, untriaged, area-Build-mono

Milestone: -

@jkotas jkotas added the Known Build Error Use this to report build issues in the .NET Helix tab label Aug 27, 2022
@jkotas
Copy link
Member

jkotas commented Aug 27, 2022

Added ErrorMessage signature to get this issue auto-detected by Build analysis

@pavelsavara
Copy link
Member

Another ? Build Log

@benvillalobos
Copy link
Member

It looks like this is specifically happening during dotnet publish, not dotnet build. It's tough to parse from the logs since I don't look at helix logs often.

If you look at the binlogs, the arguments passed, Command line arguments = "/datadisks/disk1/work/AC630921/w/B91B0982/e/dotnet-workload/sdk/7.0.100-rc.2.22419.24/MSBuild.dll -maxcpucount -verbosity:m -restore -target:Publish -property:_IsPublishing=true --property:WasmBuildOnlyAfterPublish=true --property:AppRefDir=/datadisks/disk1/work/AC630921/p/microsoft.netcore.app.ref --property:Configuration=Release /bl:/datadisks/disk1/work/AC630921/w/B91B0982/uploads/xharness-output/logs/a2ixs4zc.rtn/build_publish_Release.binlog /nologo /v:minimal", match more closely the dotnet publish command than build.

I don't know what might cause this, it could be an SDK or MSBuild issue.

@benvillalobos
Copy link
Member

Here's the tree of msbuild commits this scenario is working with: https://github.com/dotnet/msbuild/commits/5d102ae37

@benvillalobos
Copy link
Member

Is there a minimal repro someone can provide for this?

@pavelsavara
Copy link
Member

Another Build Log

@ilonatommy
Copy link
Member

ilonatommy commented Sep 8, 2022

Is there a minimal repro someone can provide for this?

I am hitting it every time on main, HEAD: cc9d465, running: WasmBuildTests InvariantGlobalizationTests for Browser, wasm.
If we add result.buildOutput to BuildTestBase's error:
throw new XunitException($"Build process exited with non-zero exit code: {result.exitCode} {result.buildOutput}");
we are getting the reason:

Build process exited with non-zero exit code: 1
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/MSBuild.dll /nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/dotnet.dll -maxcpucount -property:_IsPublishing=true --property:WasmBuildOnlyAfterPublish=true --property:AppRefDir=/workspaces/runtime/artifacts/bin//microsoft.netcore.app.ref --property:Configuration=Debug -restore -target:Publish -verbosity:m /v:minimal /bl:/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/xharness-output/logs/ffara5vp.bda/invariant_unset.binlog ./invariant_unset.csproj
Determining projects to restore...
Restored /workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/ffara5vp.bda/invariant_unset.csproj (in 3 ms).
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/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 [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/ffara5vp.bda/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(448,5): error NETSDK1109: Runtime list file '/workspaces/runtime/artifacts/bin/dotnet-workload/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/data/RuntimeList.xml' was not found. Report this error to the .NET team here: https://aka.ms/dotnet-sdk-issue. [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/ffara5vp.bda/invariant_unset.csproj]

So we're looking for RuntimeList.xml in the wrong path, it's one level deeper, in
...artifacts\bin\dotnet-workload\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\7.0.0-rc.2.22451.11\data\RuntimeList.xml.

After fixing this one, we are getting new errors.

        Build process exited with non-zero exit code: 1 [imyocskk.3qv] /workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/MSBuild.dll /nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/dotnet.dll -maxcpucount -property:_IsPublishing=true --property:WasmBuildOnlyAfterPublish=true --property:AppRefDir=/workspaces/runtime/artifacts/bin//microsoft.netcore.app.ref --property:Configuration=Debug -restore -target:Publish -verbosity:m /v:minimal /bl:/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/xharness-output/logs/imyocskk.3qv/invariant_unset.binlog ./invariant_unset.csproj
Determining projects to restore...
Restored /workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj (in 3 ms).
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/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 [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(192,5): error MSB4018: The "GenerateDepsFile" task failed unexpectedly. [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(192,5): error MSB4018: System.ArgumentException: Value cannot be null or an empty string. (Parameter 'value') [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(192,5): error MSB4018:    at NuGet.Versioning.NuGetVersion.Parse(String value) [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(192,5): error MSB4018:    at Microsoft.NET.Build.Tasks.DependencyContextBuilder.WithRuntimePackAssets(IEnumerable`1 runtimePackAssets) [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(192,5): error MSB4018:    at Microsoft.NET.Build.Tasks.GenerateDepsFile.WriteDepsFile(String depsFilePath) [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(192,5): error MSB4018:    at Microsoft.NET.Build.Tasks.GenerateDepsFile.ExecuteCore() [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(192,5): error MSB4018:    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(192,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]
/workspaces/runtime/artifacts/bin/dotnet-workload/sdk/7.0.100-rc.2.22457.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(192,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/workspaces/runtime/artifacts/bin/Wasm.Build.Tests/Release/net7.0/browser-wasm/imyocskk.3qv/invariant_unset.csproj]

Workload updates are available. Run `dotnet workload list` for more information.

[imyocskk.3qv-stderr] 
Stack Trace:
  /workspaces/runtime/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs(652,0): at Wasm.Build.Tests.BuildTestBase.AssertBuild(String args, String label, Boolean expectSuccess, IDictionary`2 envVars, Nullable`1 timeoutMs)
  /workspaces/runtime/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs(393,0): at Wasm.Build.Tests.BuildTestBase.BuildProject(BuildArgs buildArgs, String id, BuildProjectOptions options)
  /workspaces/runtime/src/mono/wasm/Wasm.Build.Tests/InvariantGlobalizationTests.cs(76,0): at Wasm.Build.Tests.InvariantGlobalizationTests.TestInvariantGlobalization(BuildArgs buildArgs, Nullable`1 invariantGlobalization, RunHost host, String id, String extraProperties, Nullable`1 dotnetWasmFromRuntimePack)
  /workspaces/runtime/src/mono/wasm/Wasm.Build.Tests/InvariantGlobalizationTests.cs(40,0): at Wasm.Build.Tests.InvariantGlobalizationTests.RelinkingWithoutAOT(BuildArgs buildArgs, Nullable`1 invariantGlobalization, 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)

When we check GenerateDepsFile input: IntermediateSatelliteAssembliesWithTargetPath, ReferenceDependencyPaths, ReferenceSatellitePaths, MicrosoftNETPlatformLibrary, DependencyFileCompilerOptions, ResolvedCompileFileDefinitions, UserRuntimeAssembly, RuntimeTargetsCopyLocalItems, NativeCopyLocalItems, ResourceCopyLocalItems, RuntimeCopyLocalItems are the only empty values.

invariant_unset.binlog.zip

EDIT:
the same scenario outside of WBT passes without any errors.

@danmoseley danmoseley added the arch-wasm WebAssembly architecture label Sep 12, 2022
@ghost
Copy link

ghost commented Sep 12, 2022

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

Issue Details
{
   "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

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
Author: radical
Assignees: -
Labels:

arch-wasm, area-Meta, blocking-clean-ci, untriaged, Known Build Error

Milestone: -

@danmoseley
Copy link
Member

this is specific to WASM, right?

@radical
Copy link
Member Author

radical commented Sep 12, 2022

@ilonatommy The RuntimeList.xml issue was because WBT on main was broken. Could you please try it again now?

@radical
Copy link
Member Author

radical commented Sep 12, 2022

@ilonatommy Also, yours is a different issue. This one is about dotnet build exiting with code 1, with no errors at all.

@carlossanlop
Copy link
Member

Seen in this release/7.0-rc2 PR: #75675

Note that the actual failure message is #75429 but it was closed as dupe of this one.

Queue: Installer Build and Test coreclr Linux_musl_x64 Release
Job results: https://dev.azure.com/dnceng-public/public/_build/results?buildId=22359&view=logs&j=fcbd3ad6-b1a4-55f2-40cc-7db598750d43&t=0fc7de3b-e85e-5109-ff09-70d9e625d9be

Error:

##[error]VSTest(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Tests failed: /root/runtime/artifacts/TestResults/Release/HostActivation.Tests_net7.0_x64.html [net7.0|x64]

@rokonec
Copy link
Contributor

rokonec commented Sep 23, 2022

I really need local repro. Does anyone knows how to?

@karelz
Copy link
Member

karelz commented Sep 23, 2022

I don't have a local repro, but I see lots of 7.0 rolling runs failing Microsoft.DotNet.CoreSetup.Test.*
This is significantly affecting CI and 7.0 release :(

Frequency of Microsoft.DotNet.CoreSetup.Test.* failures -- moved to top post.

@lewing
Copy link
Member

lewing commented Sep 23, 2022

see also #76091

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Sep 23, 2022
@rokonec
Copy link
Contributor

rokonec commented Sep 23, 2022

I guess there are multiple failure modes.

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Sep 24, 2022
@carlossanlop
Copy link
Member

Seen in a release/7.0 unrelated PR: #76073

##[error]VSTest(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Tests failed:
/root/runtime/artifacts/TestResults/Release/HostActivation.Tests_net7.0_x64.html [net7.0|x64]
``

@elinor-fung
Copy link
Member

Some other failures there are missing uploaded test fail artifacts, like binlogs, which is leaving me blind.

The binlogs are in a non-obvious place for the Installer tests. They get uploaded as a build artifact - for example, for the failure you linked, you can find the binlog in the Installer-Logs-coreclr--OSX_x64-Release artifact of the build under a subdirectory matching the test project that was being built or published (in that example, artifacts\tests\Release\ha\qbekymrp.3g5\RuntimeProperties).

@carlossanlop
Copy link
Member

carlossanlop commented Nov 2, 2022

@jkotas
Copy link
Member

jkotas commented Nov 30, 2022

Fixed by updating to .NET 7 GA that has msbuild server disabled.

@jkotas jkotas closed this as completed Nov 30, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Dec 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure 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
Projects
None yet
Development

No branches or pull requests