dotnet-core-freebsd-source-build icon indicating copy to clipboard operation
dotnet-core-freebsd-source-build copied to clipboard

Verbose logs during building

Open arrowd opened this issue 1 year ago • 3 comments

Hey @sec and @Thefrank

The dotnet port fails on some occasions when building on FreeBSD cluster due to 7200 timeout rule: https://pkg-status.freebsd.org/beefy22/data/140amd64-default/50625859d806/logs/dotnet-8.0.6.log

Is it possible to make the build more verbose thus avoiding triggering this failure? I tried passing various flags to MSBuild, but didn't get desired behavior when a line is printed for each file being compiled.

arrowd avatar Aug 08 '24 21:08 arrowd

The TASK.binlog file is debug level of verbose. Inspect that if you have access to it. Otherwise -v diag should give diagnostic level of logging in most cases for dotNET.

edit: all source build infrastructure creates .log files that should be in the artifacts/logs path

edit2: that stage should not take more than 1hr. Something else my have gone wrong.

Thefrank avatar Aug 08 '24 23:08 Thefrank

Those kind of timeout also I had - mainly it was becuase of crossgen2 issues, also on aarch64 it's libunwind bug in newest release, but can't recall if I had those on amd64 lately :/

sec avatar Aug 09 '24 07:08 sec

The TASK.binlog file is debug level of verbose. Inspect that if you have access to it. Otherwise -v diag should give diagnostic level of logging in most cases for dotNET.

I need logs to be printed on the console. Passing -v:diag to build.sh does indeed increase amount of stuff printed, but it is still printed at the beginning/end of each component's build. While building a component nothing is printed.

edit2: that stage should not take more than 1hr. Something else my have gone wrong.

FreeBSD cluster builds a lot of packages in parallel and only use one CPU core for each package. It may also starve for I/O throughput, so it might well possible for build taking a lot of time.

arrowd avatar Aug 09 '24 08:08 arrowd

Re-routed this issue upstream: https://github.com/dotnet/arcade/issues/16038

arrowd avatar Aug 29 '25 11:08 arrowd