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

Escape hatch: share stdout with node children #3130

Merged

Conversation

rainersigwald
Copy link
Member

The VSTest runner emits log messages to its stdout. So far, in .NET
Core, that has resulted in them getting piped all the way up through
the worker MSBuild that launched the task, the entry-point MSBuild
coordinating the build, and the dotnet test invocation that started
it all.

The introduction of node reuse for .NET Core makes this untenable:
worker nodes should not share stdout with the process that happened to
launch them, because they will be long-lived and may do entirely
unrelated builds.

But for now, this breaks the dotnet test scenario. This commit creates
an escape hatch environment variable
MSBUILDENSURESTDOUTFORTASKPROCESSES that can be used in combination
with /nodereuse:false to create a cone of MSBuild processes that all
share std handles.

Enables workaround for microsoft/vstest#1503.

The VSTest runner emits log messages to its stdout. So far, in .NET
Core, that has resulted in them getting piped all the way up through
the worker MSBuild that launched the task, the entry-point MSBuild
coordinating the build, and the `dotnet test` invocation that started
it all.

The introduction of node reuse for .NET Core makes this untenable:
worker nodes should not share stdout with the process that happened to
launch them, because they will be long-lived and may do entirely
unrelated builds.

But for now, this breaks the `dotnet test` scenario. This commit creates
an escape hatch environment variable
`MSBUILDENSURESTDOUTFORTASKPROCESSES` that can be used in combination
with `/nodereuse:false` to create a cone of MSBuild processes that all
share std handles.

Enables workaround for microsoft/vstest#1503.
@rainersigwald
Copy link
Member Author

@AndyGerlicher
Copy link
Contributor

Looks good, but I want #3131 before we do a build.

@AndyGerlicher AndyGerlicher merged commit afc81fa into dotnet:vs15.7 Mar 25, 2018
@rainersigwald rainersigwald deleted the vstest-stdout-escape-hatch branch March 25, 2018 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants