Skip to content

Enable static graph restore binlog generation - #46270

Merged
ViktorHofer merged 1 commit into
dotnet:masterfrom
ViktorHofer:BinLogRestore
Dec 21, 2020
Merged

ViktorHofer merged 1 commit into
dotnet:masterfrom
ViktorHofer:BinLogRestore

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Dec 20, 2020 •

Copy link
Copy Markdown
Member

Static graph restore runs out-of-proc outside of msbuild.exe. To be able to diagnose project evaluation issues during restore, setting the switch to tell Arcade to set an env var which tells NuGet's out-of-proc static graph console to generate a binlog. I tested this locally and couldn't notice a measurable perf impact.

In addition, setting the var to a different value in tasks.proj which runs in an extra restore invocation to avoid that binlog to be overwritten by the restore invocation that follows afterwards.

@ViktorHofer
ViktorHofer requested review from Anipik and safern December 20, 2020 16:05
@Dotnet-GitSync-Bot

Copy link
Copy Markdown
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost

ghost commented Dec 20, 2020

Copy link
Copy Markdown

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

Issue Details

Static graph restore runs out-of-proc outside of msbuild.exe. To be able to diagnose project evaluation issues during restore, setting the switch to tell Arcade to set an env var which tells NuGet's out-of-proc static graph console to generate a binlog. I tested this locally and couldn't notice a measurable perf impact.

In addition, setting the var to a different value in tasks.proj which runs in an extra restore invocation to avoid that binlog to be overwritten by the restore invocation that follows afterwards.

Author: ViktorHofer
Assignees: ViktorHofer
Labels:

area-Infrastructure

Milestone: -

@ViktorHofer
ViktorHofer merged commit b783c5b into dotnet:master Dec 21, 2020
@ViktorHofer
ViktorHofer deleted the BinLogRestore branch December 21, 2020 21:53

@safern safern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ghost ghost locked as resolved and limited conversation to collaborators Jan 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants