From 96ec3cdbca86144fdffe1f8ad7896a3c5e73fb32 Mon Sep 17 00:00:00 2001
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Sat, 8 May 2021 19:59:25 -0700
Subject: [PATCH 1/3] Remove unused `$(HelixUseArchive)` property
---
eng/targets/Helix.props | 1 -
eng/targets/Helix.targets | 10 ++--------
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/eng/targets/Helix.props b/eng/targets/Helix.props
index b35af95b413a..1b47d9935872 100644
--- a/eng/targets/Helix.props
+++ b/eng/targets/Helix.props
@@ -19,7 +19,6 @@
false
true
$(MSBuildProjectName)--$(TargetFramework)
- false
false
10.15.3
false
diff --git a/eng/targets/Helix.targets b/eng/targets/Helix.targets
index 1441f132126d..9440d643fbb6 100644
--- a/eng/targets/Helix.targets
+++ b/eng/targets/Helix.targets
@@ -120,11 +120,6 @@
-
-
-
-
-
@@ -133,7 +128,7 @@
-
+
- $(PublishAbsoluteDir)../$(HelixTestName).zip
- $(PublishAbsoluteDir)
+ $(PublishAbsoluteDir)
$(TargetFileName)
@(HelixPreCommand)
@(HelixPostCommand)
From 4db1fe836f025b0740661bff614ba5e1fb0a7e9a Mon Sep 17 00:00:00 2001
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Sat, 8 May 2021 20:19:57 -0700
Subject: [PATCH 2/3] Move helix.proj output into artifacts/bin/helix/ - remove
`$(Configuration)` and `$(PlatformName)` from output path - other layouts
aren't that specific - properties weren't available anyhow in some cases
nits:
- provide the .version file expected in .dotnet/shared/…
- rename `AspNetCoreAppRuntimeHelix/` -> `SharedFx.Layout/`; same for the correlation payload archive
- rename `AspNetCoreAppRuntimeHelixRaw/` -> `SharedFx.Unzip/`
---
eng/helix/helix.proj | 53 +++++++++++++++++++++++---------------------
1 file changed, 28 insertions(+), 25 deletions(-)
diff --git a/eng/helix/helix.proj b/eng/helix/helix.proj
index 74a0dace16e2..e56c8741aa82 100644
--- a/eng/helix/helix.proj
+++ b/eng/helix/helix.proj
@@ -11,7 +11,7 @@
-
+
@@ -26,13 +26,11 @@
$(HelixApiAccessToken)
true
sdk
- $(NETCoreSdkVersion)
+ $(NETCoreSdkVersion)
Current
-
- bin\
- $(BaseOutputPath)$(Configuration)\
- $(BaseOutputPath)$(PlatformName)\$(Configuration)\
+
+ $(RepoRoot)artifacts\bin\$(MSBuildProjectName)\
@@ -44,7 +42,7 @@
runtime
-
+
ci
@@ -86,30 +84,35 @@
@(_ResolvedProductVersionInfo->'%(PackageVersion)')
-
-
+
+
+
+ SourceFiles="$(RepoRoot)artifacts\packages\$(Configuration)\Shipping\Microsoft.AspNetCore.App.Runtime.$(TargetRuntimeIdentifier).$(SharedFxVersion).nupkg"
+ DestinationFolder="$(OutputPath)\SharedFx.Unzip" />
- <_appRuntimeFiles Include="$(OutputPath)\AspNetCoreAppRuntimeHelixRaw\**\*.txt" />
- <_appRuntimeFiles Include="$(OutputPath)\AspNetCoreAppRuntimeHelixRaw\**\*.json" />
- <_appRuntimeFiles Include="$(OutputPath)\AspNetCoreAppRuntimeHelixRaw\**\*.dll" />
- <_appRuntimeFiles Include="$(OutputPath)\AspNetCoreAppRuntimeHelixRaw\**\*.xml" />
+ <_appRuntimeFiles Include="$(OutputPath)\SharedFx.Unzip\**\*.txt" />
+ <_appRuntimeFiles Include="$(OutputPath)\SharedFx.Unzip\**\*.json" />
+ <_appRuntimeFiles Include="$(OutputPath)\SharedFx.Unzip\**\*.dll" />
+ <_appRuntimeFiles Include="$(OutputPath)\SharedFx.Unzip\**\RuntimeList.xml" />
-
-
-
-
+
+
+
+
+
+
-
+
-
+
Date: Sun, 9 May 2021 19:03:57 -0700
Subject: [PATCH 3/3] Support added `msbuild` arguments in RunHelix.ps1
nit: use `[switch]` instead of `[bool]`
---
eng/scripts/RunHelix.ps1 | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/eng/scripts/RunHelix.ps1 b/eng/scripts/RunHelix.ps1
index 777077b4214b..1b84421b6942 100644
--- a/eng/scripts/RunHelix.ps1
+++ b/eng/scripts/RunHelix.ps1
@@ -19,14 +19,27 @@
Redhat.7.Amd64.Open
.PARAMETER RunQuarantinedTests
By default quarantined tests are not run. Set this to $true to run only the quarantined tests.
+.PARAMETER TargetArchitecture
+ The CPU architecture to build for (x64, x86, arm). Default=x64
+.PARAMETER MSBuildArguments
+ Additional MSBuild arguments to be passed through.
#>
+[CmdletBinding(PositionalBinding = $false)]
param(
[Parameter(Mandatory=$true)]
[string]$Project,
+
[string]$HelixQueues = "Windows.10.Amd64.Open",
+ [switch]$RunQuarantinedTests,
+
+ [ValidateSet('x64', 'x86', 'arm', 'arm64')]
[string]$TargetArchitecture = "x64",
- [bool]$RunQuarantinedTests = $false
+
+ # Capture the rest
+ [Parameter(ValueFromRemainingArguments = $true)]
+ [string[]]$MSBuildArguments
)
+
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue' # Workaround PowerShell/PowerShell#2138
@@ -43,4 +56,5 @@ Write-Host -ForegroundColor Yellow "And if packing for a different platform, add
$HelixQueues = $HelixQueues -replace ";", "%3B"
dotnet msbuild $Project /t:Helix /p:TargetArchitecture="$TargetArchitecture" /p:IsRequiredCheck=true `
/p:IsHelixDaily=true /p:HelixTargetQueues=$HelixQueues /p:RunQuarantinedTests=$RunQuarantinedTests `
- /p:_UseHelixOpenQueues=true /p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
+ /p:_UseHelixOpenQueues=true /p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log `
+ @MSBuildArguments