Skip to content

[build] Generate separate .binlog files for tests. - #2001

Merged
jonpryor merged 1 commit into
dotnet:masterfrom
jonpryor:jonp-tests-binlog
Oct 11, 2018
Merged

jonpryor merged 1 commit into
dotnet:masterfrom
jonpryor:jonp-tests-binlog

Conversation

@jonpryor

@jonpryor jonpryor commented Jul 25, 2018 •

Copy link
Copy Markdown
Contributor

Context: #1792
Context: 987a05f

Commit 987a05f updated the "normal" build log process, as used by
Jenkins/etc., so that Console output received "normal" build verbosity
messages, while MSBuild .binlog files would be generated so that
"diagnostic" build logs could be produced "later," as necessary.

Unfortunately, commit 987a05f didn't update unit test builds.
Consequently, make run-apk-tests/etc. would emit diagnostic build
logs to the Console, meaning instead of the previous ~1GB log file, we
instead had a "mere" ~400MB instead.

Update test execution so that they follow the spirit of 987a05f:
.binlog files for diagnostic output, with "normal" output printed to
the console, resulting in smaller Jenkins log files.

Context: dotnet#1792
Context: 987a05f

Commit 987a05f updated the "normal" build log process, as used by
Jenkins/etc., so that Console output received "normal" build verbosity
messages, while MSBuild `.binlog` files would be generated so that
"diagnostic" build logs could be produced "later," as necessary.

Unfortunately, commit 987a05f didn't update unit test builds.
Consequently, `make run-apk-tests`/etc. would emit *diagnostic* build
logs to the Console, meaning instead of the previous ~1GB log file, we
instead had a "mere" ~400MB instead.

Update test execution so that they follow the spirit of 987a05f:
`.binlog` files for diagnostic output, with "normal" output printed to
the console, resulting in smaller Jenkins log files.
@jonpryor
jonpryor force-pushed the jonp-tests-binlog branch from 4140d59 to d9d4261 Compare July 26, 2018 01:23
@jonpryor jonpryor added the do-not-merge PR should not be merged. label Jul 26, 2018
@jonpryor

Copy link
Copy Markdown
Contributor Author

This is better; the resulting log file is now ~26MB for a PR build, not ~168MB.

However, it's not complete: the log file still contains diagnostic-looking output:

RunJavaInteropTests:
  ...
  msbuild /p:Configuration=Debug  /v:d

This can be improved further.

@jonpryor

Copy link
Copy Markdown
Contributor Author

@jonpryor wrote:

This can be improved further.

Undoubtedly true, but the mentioned msbuild /p:Configuration=Debug /v:d is coming from the Java.Interop build, e.g.:

https://github.com/xamarin/java.interop/blob/8ee34a353f35021e8639bec3c4b64415462e8b43/Makefile#L110

For simplicity and sanity's sake, that's outside the scope of this PR. :-)

The Java.Interop build steps are the only instances of /v:d in the 26MB build log, so I think this is actually good to go.

@jonpryor
jonpryor merged commit 319158f into dotnet:master Oct 11, 2018
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

do-not-merge PR should not be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants