Skip to content

Commit

Permalink
Merge pull request #3807 from wli3/revert-node-reuse
Browse files Browse the repository at this point in the history
Revert node reuse
  • Loading branch information
William Li authored Oct 28, 2019
2 parents 34097cd + 90956bc commit 3348124
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ stages:
_SignType: real
_Test: ''

- ${{ if ne(variables['System.TeamProject'], 'public') }}:
- template: /eng/build.yml
parameters:
agentOs: Windows_Perf_Helix
pool:
name: Hosted VS2017
strategy:
matrix:
Build_Release:
_BuildConfig: Release
_PublishType: none
_SignType: test
_DotNetPublishToBlobFeed: false

- ${{ if ne(variables['System.TeamProject'], 'public') }}:
- template: /eng/build.yml
parameters:
Expand Down
1 change: 0 additions & 1 deletion eng/dogfood.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ try {
$env:NETCoreSdkBundledVersionsProps = Join-Path $env:DOTNET_INSTALL_DIR "sdk\$env:SDK_CLI_VERSION\Microsoft.NETCoreSdk.BundledVersions.props"
$env:MicrosoftNETBuildExtensionsTargets = Join-Path $env:MSBuildSDKsPath "Microsoft.NET.Build.Extensions\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.targets"
$env:DOTNET_ROOT = $env:DOTNET_INSTALL_DIR
$env:MSBUILDNODEHANDSHAKESALT = "Test Environment for dotnet/sdk"

if ($command -eq $null -and $env:DOTNET_SDK_DOGFOOD_SHELL -ne $null) {
$command = , $env:DOTNET_SDK_DOGFOOD_SHELL
Expand Down
1 change: 0 additions & 1 deletion eng/dogfood.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ export MSBuildSDKsPath="$artifacts_dir/bin/$configuration/Sdks"
export DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR="$MSBuildSDKsPath"
export NETCoreSdkBundledVersionsProps="$DOTNET_INSTALL_DIR/sdk/$dotnet_sdk_version/Microsoft.NETCoreSdk.BundledVersions.props"
export MicrosoftNETBuildExtensionsTargets="$MSBuildSDKsPath/Microsoft.NET.Build.Extensions/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets"
export MSBUILDNODEHANDSHAKESALT="Test Environment for dotnet/sdk"
4 changes: 2 additions & 2 deletions src/Tests/Microsoft.NET.TestFramework/TestContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public void AddTestEnvironmentVariables(SdkCommandSpec command)
command.Environment["GenerateResourceMSBuildArchitecture"] = "CurrentArchitecture";
command.Environment["GenerateResourceMSBuildRuntime"] = "CurrentRuntime";

// Use distinct nodes for test environment
command.Environment["MSBUILDNODEHANDSHAKESALT"] = "Test Environment for dotnet/sdk";
// Prevent test MSBuild nodes from persisting
command.Environment["MSBUILDDISABLENODEREUSE"] = "1";

ToolsetUnderTest.AddTestEnvironmentVariables(command);
}
Expand Down

0 comments on commit 3348124

Please sign in to comment.