Skip to content

Commit 3348124

Browse files
author
William Li
authored
Merge pull request #3807 from wli3/revert-node-reuse
Revert node reuse
2 parents 34097cd + 90956bc commit 3348124

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.vsts-ci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ stages:
5252
_SignType: real
5353
_Test: ''
5454

55+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
56+
- template: /eng/build.yml
57+
parameters:
58+
agentOs: Windows_Perf_Helix
59+
pool:
60+
name: Hosted VS2017
61+
strategy:
62+
matrix:
63+
Build_Release:
64+
_BuildConfig: Release
65+
_PublishType: none
66+
_SignType: test
67+
_DotNetPublishToBlobFeed: false
68+
5569
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
5670
- template: /eng/build.yml
5771
parameters:

eng/dogfood.ps1

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ try {
4242
$env:NETCoreSdkBundledVersionsProps = Join-Path $env:DOTNET_INSTALL_DIR "sdk\$env:SDK_CLI_VERSION\Microsoft.NETCoreSdk.BundledVersions.props"
4343
$env:MicrosoftNETBuildExtensionsTargets = Join-Path $env:MSBuildSDKsPath "Microsoft.NET.Build.Extensions\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.targets"
4444
$env:DOTNET_ROOT = $env:DOTNET_INSTALL_DIR
45-
$env:MSBUILDNODEHANDSHAKESALT = "Test Environment for dotnet/sdk"
4645

4746
if ($command -eq $null -and $env:DOTNET_SDK_DOGFOOD_SHELL -ne $null) {
4847
$command = , $env:DOTNET_SDK_DOGFOOD_SHELL

eng/dogfood.sh

-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ export MSBuildSDKsPath="$artifacts_dir/bin/$configuration/Sdks"
2222
export DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR="$MSBuildSDKsPath"
2323
export NETCoreSdkBundledVersionsProps="$DOTNET_INSTALL_DIR/sdk/$dotnet_sdk_version/Microsoft.NETCoreSdk.BundledVersions.props"
2424
export MicrosoftNETBuildExtensionsTargets="$MSBuildSDKsPath/Microsoft.NET.Build.Extensions/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets"
25-
export MSBUILDNODEHANDSHAKESALT="Test Environment for dotnet/sdk"

src/Tests/Microsoft.NET.TestFramework/TestContext.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public void AddTestEnvironmentVariables(SdkCommandSpec command)
5959
command.Environment["GenerateResourceMSBuildArchitecture"] = "CurrentArchitecture";
6060
command.Environment["GenerateResourceMSBuildRuntime"] = "CurrentRuntime";
6161

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

6565
ToolsetUnderTest.AddTestEnvironmentVariables(command);
6666
}

0 commit comments

Comments
 (0)