From e3b632894da23ce276925f8afc8e2fc884b55f50 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Sun, 13 Sep 2020 21:45:23 -0700 Subject: [PATCH] Fix Helix testing issues with stable versions and local builds (#25865) - include all shipping packages in Helix payloads that need runtime - remove hard-coded `-ci` that broke Helix tests with stable versions or local builds - for local builds, do not assume `$(Configuration)` is Release - support `$(HelixTargetQueues)` property used in RunHelix.ps1 - lost somewhere along the lines; script ran full matrix nits: - clean up redundant addition of runtime and ref/ packages - `@(HelixContent)` additions in `_CreateHelixWorkItem` target are ignored - mention '+' separation of `-HelixQueues` argument to RunHelix.ps1 - allow `$(IsUnitTestProject)` override in case we need it in the future --- Directory.Build.props | 2 +- eng/helix/helix.proj | 3 +- eng/scripts/RunHelix.ps1 | 2 +- eng/targets/Helix.targets | 37 ++++++++----------- .../Microsoft.AspNetCore.App.UnitTests.csproj | 1 - 5 files changed, 19 insertions(+), 26 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 224d84c781..258a01d388 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -13,7 +13,7 @@ true true - false + false true true true diff --git a/eng/helix/helix.proj b/eng/helix/helix.proj index 250b2fb9b2..65e47db274 100644 --- a/eng/helix/helix.proj +++ b/eng/helix/helix.proj @@ -11,7 +11,8 @@ - + + diff --git a/eng/scripts/RunHelix.ps1 b/eng/scripts/RunHelix.ps1 index 2a20580c3a..0bad5574a4 100644 --- a/eng/scripts/RunHelix.ps1 +++ b/eng/scripts/RunHelix.ps1 @@ -6,7 +6,7 @@ .PARAMETER Project The test project to publish and send to Helix. .PARAMETER HelixQueues - Set the Helix queues to use, the list is ';' separated. + Set the Helix queues to use. The list is '+' or ';'-separated. Some supported queues: Ubuntu.1604.Amd64.Open Ubuntu.1804.Amd64.Open diff --git a/eng/targets/Helix.targets b/eng/targets/Helix.targets index c4a943a280..ba28388707 100644 --- a/eng/targets/Helix.targets +++ b/eng/targets/Helix.targets @@ -16,8 +16,17 @@ - - + + + + + + + + + @@ -40,13 +49,10 @@ - + @@ -101,19 +107,6 @@ Usage: dotnet msbuild /t:Helix src/MyTestProject.csproj - - - - - - - - - - - - - <_HelixFriendlyNameTargetQueue>$(HelixTargetQueue) diff --git a/src/Framework/test/Microsoft.AspNetCore.App.UnitTests.csproj b/src/Framework/test/Microsoft.AspNetCore.App.UnitTests.csproj index c40284c6df..dc1d583fa0 100644 --- a/src/Framework/test/Microsoft.AspNetCore.App.UnitTests.csproj +++ b/src/Framework/test/Microsoft.AspNetCore.App.UnitTests.csproj @@ -5,7 +5,6 @@ Microsoft.AspNetCore true true - true true