Skip to content

Conversation

@artidoro
Copy link
Contributor

@artidoro artidoro commented Oct 26, 2018

Fixes #1357.

As explained in more detail in the issue, a process must be leaking during one of the build jobs (the windows one), and is likely not terminating dotnet.exe. Subsequent attempts to clean the repo fail.

In this PR I implement the fix that is suggested in the issue: call dotnet build-server shutdown after the build process terminates.

I manually queued this change 10 times on VSTS, and the error that we were seeing has not appeared again. There 2 other errors that did show up 2 times, but seem to be unrelated to this.

@artidoro artidoro added the Build Build related issue label Oct 26, 2018
@artidoro artidoro changed the title Kill all dotnet processes after build WIP: Kill all dotnet processes after build Oct 26, 2018
@artidoro artidoro changed the title WIP: Kill all dotnet processes after build Kill all dotnet processes after build Oct 26, 2018
@artidoro artidoro requested a review from singlis October 26, 2018 03:06
@artidoro artidoro closed this Oct 26, 2018
@artidoro artidoro reopened this Oct 26, 2018
Copy link
Member

@sfilipi sfilipi left a comment

Choose a reason for hiding this comment

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

:shipit:

@artidoro artidoro merged commit e406d0c into dotnet:master Oct 26, 2018
call "%_dotnet%" "%_toolRuntime%\run.exe" "%_json%" %*

:: Terminate all dotnet build processes.
call "%_dotnet%" "build-server" "shutdown"
Copy link
Member

Choose a reason for hiding this comment

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

This is not where I would expect this line to go.

For things like this (that only affect official build, or CI, etc), we should be modifying the official build and/or CI .yml files. This kind of change affects EVERYONE who tries building our repo - even devs on their own boxes. Killing the build server after each time I call "build" on the command line slows down my dev workflow because it needs to spin the build server up again the next time I call "build".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok I will change that to the .yml file so that it only affects the official build.

@artidoro artidoro deleted the offbuild branch January 5, 2019 00:02
@ghost ghost locked as resolved and limited conversation to collaborators Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Build Build related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Official build fails occasionally during cleaning

4 participants