Skip to content

Commit

Permalink
Merge pull request #105 from Lombiq/issue/OSOE-464
Browse files Browse the repository at this point in the history
OSOE-464: Disabling node reuse during dotnet build and test
  • Loading branch information
sarahelsaig authored Nov 17, 2022
2 parents c97e72d + 13f034c commit 536282a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ dotnet build $SolutionOrProject @buildSwitches 2>&1 | ForEach-Object {
if ($noErrors) { Write-Output "::error file=$file,line=$line,col=$column::$message" }
}

# With node reuse, dotnet build spawns processes that while speed up build, they can cause dotnest test and other dotnet
# tools to randomly hang. So, here we shut down those processes for later actions.
# For details see: https://github.com/Lombiq/UI-Testing-Toolbox/issues/228.
Write-Output "Shutting down .NET build servers."
dotnet build-server shutdown

if ($expectedErrorCodes)
{
$errorCodes = $errorCodes | Sort-Object
Expand Down

0 comments on commit 536282a

Please sign in to comment.