Update dependencies from https://github.com/dotnet/arcade build 20200511.9 (#210)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk From Version 5.0.0-beta.20256.5 -> To Version 5.0.0-beta.20261.9 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
This commit is contained in:
Родитель
7f79598da0
Коммит
24cece3f55
|
@ -3,13 +3,13 @@
|
||||||
<ProductDependencies>
|
<ProductDependencies>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20256.5">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20261.9">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>8547938aefa24475a04877285553f0b2663ae249</Sha>
|
<Sha>898e51ed5fdcc4871087ac5754ca9056e58e575d</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.20256.5">
|
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.20261.9">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>8547938aefa24475a04877285553f0b2663ae249</Sha>
|
<Sha>898e51ed5fdcc4871087ac5754ca9056e58e575d</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -20,6 +20,7 @@ Param(
|
||||||
[switch] $publish,
|
[switch] $publish,
|
||||||
[switch] $clean,
|
[switch] $clean,
|
||||||
[switch][Alias('bl')]$binaryLog,
|
[switch][Alias('bl')]$binaryLog,
|
||||||
|
[switch][Alias('nobl')]$excludeCIBinarylog,
|
||||||
[switch] $ci,
|
[switch] $ci,
|
||||||
[switch] $prepareMachine,
|
[switch] $prepareMachine,
|
||||||
[switch] $help,
|
[switch] $help,
|
||||||
|
@ -58,6 +59,7 @@ function Print-Usage() {
|
||||||
Write-Host "Advanced settings:"
|
Write-Host "Advanced settings:"
|
||||||
Write-Host " -projects <value> Semi-colon delimited list of sln/proj's to build. Globbing is supported (*.sln)"
|
Write-Host " -projects <value> Semi-colon delimited list of sln/proj's to build. Globbing is supported (*.sln)"
|
||||||
Write-Host " -ci Set when running on CI server"
|
Write-Host " -ci Set when running on CI server"
|
||||||
|
Write-Host " -excludeCIBinarylog Don't output binary log (short: -nobl)"
|
||||||
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
|
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
|
||||||
Write-Host " -warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
|
Write-Host " -warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
|
||||||
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
|
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
|
||||||
|
@ -134,7 +136,9 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($ci) {
|
if ($ci) {
|
||||||
$binaryLog = $true
|
if (-not $excludeCIBinarylog) {
|
||||||
|
$binaryLog = $true
|
||||||
|
}
|
||||||
$nodeReuse = $false
|
$nodeReuse = $false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ usage()
|
||||||
echo "Advanced settings:"
|
echo "Advanced settings:"
|
||||||
echo " --projects <value> Project or solution file(s) to build"
|
echo " --projects <value> Project or solution file(s) to build"
|
||||||
echo " --ci Set when running on CI server"
|
echo " --ci Set when running on CI server"
|
||||||
|
echo " --excludeCIBinarylog Don't output binary log (short: -nobl)"
|
||||||
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
|
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
|
||||||
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
|
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
|
||||||
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
|
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
|
||||||
|
@ -68,6 +69,7 @@ clean=false
|
||||||
warn_as_error=true
|
warn_as_error=true
|
||||||
node_reuse=true
|
node_reuse=true
|
||||||
binary_log=false
|
binary_log=false
|
||||||
|
exclude_ci_binary_log=false
|
||||||
pipelines_log=false
|
pipelines_log=false
|
||||||
|
|
||||||
projects=''
|
projects=''
|
||||||
|
@ -98,6 +100,9 @@ while [[ $# > 0 ]]; do
|
||||||
-binarylog|-bl)
|
-binarylog|-bl)
|
||||||
binary_log=true
|
binary_log=true
|
||||||
;;
|
;;
|
||||||
|
-excludeCIBinarylog|-nobl)
|
||||||
|
exclude_ci_binary_log=true
|
||||||
|
;;
|
||||||
-pipelineslog|-pl)
|
-pipelineslog|-pl)
|
||||||
pipelines_log=true
|
pipelines_log=true
|
||||||
;;
|
;;
|
||||||
|
@ -156,8 +161,10 @@ done
|
||||||
|
|
||||||
if [[ "$ci" == true ]]; then
|
if [[ "$ci" == true ]]; then
|
||||||
pipelines_log=true
|
pipelines_log=true
|
||||||
binary_log=true
|
|
||||||
node_reuse=false
|
node_reuse=false
|
||||||
|
if [[ "$exclude_ci_binary_log" == false ]]; then
|
||||||
|
binary_log=true
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. "$scriptroot/tools.sh"
|
. "$scriptroot/tools.sh"
|
||||||
|
|
|
@ -145,9 +145,12 @@ function Get-File {
|
||||||
New-Item -path $DownloadDirectory -force -itemType "Directory" | Out-Null
|
New-Item -path $DownloadDirectory -force -itemType "Directory" | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$TempPath = "$Path.tmp"
|
||||||
if (Test-Path -IsValid -Path $Uri) {
|
if (Test-Path -IsValid -Path $Uri) {
|
||||||
Write-Verbose "'$Uri' is a file path, copying file to '$Path'"
|
Write-Verbose "'$Uri' is a file path, copying temporarily to '$TempPath'"
|
||||||
Copy-Item -Path $Uri -Destination $Path
|
Copy-Item -Path $Uri -Destination $TempPath
|
||||||
|
Write-Verbose "Moving temporary file to '$Path'"
|
||||||
|
Move-Item -Path $TempPath -Destination $Path
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -157,8 +160,10 @@ function Get-File {
|
||||||
while($Attempt -Lt $DownloadRetries)
|
while($Attempt -Lt $DownloadRetries)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
Invoke-WebRequest -UseBasicParsing -Uri $Uri -OutFile $Path
|
Invoke-WebRequest -UseBasicParsing -Uri $Uri -OutFile $TempPath
|
||||||
Write-Verbose "Downloaded to '$Path'"
|
Write-Verbose "Downloaded to temporary location '$TempPath'"
|
||||||
|
Move-Item -Path $TempPath -Destination $Path
|
||||||
|
Write-Verbose "Moved temporary file to '$Path'"
|
||||||
return $True
|
return $True
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
@ -359,16 +364,21 @@ function Expand-Zip {
|
||||||
return $False
|
return $False
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (-Not (Test-Path $OutputDirectory)) {
|
|
||||||
New-Item -path $OutputDirectory -Force -itemType "Directory" | Out-Null
|
$TempOutputDirectory = Join-Path "$(Split-Path -Parent $OutputDirectory)" "$(Split-Path -Leaf $OutputDirectory).tmp"
|
||||||
|
if (Test-Path $TempOutputDirectory) {
|
||||||
|
Remove-Item $TempOutputDirectory -Force -Recurse
|
||||||
}
|
}
|
||||||
|
New-Item -Path $TempOutputDirectory -Force -ItemType "Directory" | Out-Null
|
||||||
|
|
||||||
Add-Type -assembly "system.io.compression.filesystem"
|
Add-Type -assembly "system.io.compression.filesystem"
|
||||||
[io.compression.zipfile]::ExtractToDirectory("$ZipPath", "$OutputDirectory")
|
[io.compression.zipfile]::ExtractToDirectory("$ZipPath", "$TempOutputDirectory")
|
||||||
if ($? -Eq $False) {
|
if ($? -Eq $False) {
|
||||||
Write-Error "Unable to extract '$ZipPath'"
|
Write-Error "Unable to extract '$ZipPath'"
|
||||||
return $False
|
return $False
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Move-Item -Path $TempOutputDirectory -Destination $OutputDirectory
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host $_
|
Write-Host $_
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
<Python>py -3</Python>
|
<Python>py -3</Python>
|
||||||
<CoreRun>%HELIX_CORRELATION_PAYLOAD%\Core_Root\CoreRun.exe</CoreRun>
|
<CoreRun>%HELIX_CORRELATION_PAYLOAD%\Core_Root\CoreRun.exe</CoreRun>
|
||||||
<BaselineCoreRun>%HELIX_CORRELATION_PAYLOAD%\Baseline_Core_Root\CoreRun.exe</BaselineCoreRun>
|
<BaselineCoreRun>%HELIX_CORRELATION_PAYLOAD%\Baseline_Core_Root\CoreRun.exe</BaselineCoreRun>
|
||||||
|
|
||||||
<HelixPreCommands>$(HelixPreCommands);call %HELIX_CORRELATION_PAYLOAD%\performance\tools\machine-setup.cmd;set PYTHONPATH=%HELIX_WORKITEM_PAYLOAD%\scripts%3B%HELIX_WORKITEM_PAYLOAD%</HelixPreCommands>
|
<HelixPreCommands>$(HelixPreCommands);call %HELIX_CORRELATION_PAYLOAD%\performance\tools\machine-setup.cmd;set PYTHONPATH=%HELIX_WORKITEM_PAYLOAD%\scripts%3B%HELIX_WORKITEM_PAYLOAD%</HelixPreCommands>
|
||||||
<ArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts</ArtifactsDirectory>
|
<ArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts</ArtifactsDirectory>
|
||||||
<BaselineArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts_Baseline</BaselineArtifactsDirectory>
|
<BaselineArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts_Baseline</BaselineArtifactsDirectory>
|
||||||
|
@ -40,6 +41,13 @@
|
||||||
<XMLResults>$HELIX_WORKITEM_ROOT/testResults.xml</XMLResults>
|
<XMLResults>$HELIX_WORKITEM_ROOT/testResults.xml</XMLResults>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' == 'Windows_NT'">
|
||||||
|
<CoreRunArgument>--corerun %HELIX_CORRELATION_PAYLOAD%\dotnet-mono\shared\Microsoft.NETCore.App\5.0.0\corerun.exe</CoreRunArgument>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' != 'Windows_NT'">
|
||||||
|
<CoreRunArgument>--corerun $(BaseDirectory)/dotnet-mono/shared/Microsoft.NETCore.App/5.0.0/corerun</CoreRunArgument>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(UseCoreRun)' == 'true'">
|
<PropertyGroup Condition="'$(UseCoreRun)' == 'true'">
|
||||||
<CoreRunArgument>--corerun $(CoreRun)</CoreRunArgument>
|
<CoreRunArgument>--corerun $(CoreRun)</CoreRunArgument>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
@ -12,8 +12,12 @@ Param(
|
||||||
[string] $RunCategories="Libraries Runtime",
|
[string] $RunCategories="Libraries Runtime",
|
||||||
[string] $Csproj="src\benchmarks\micro\MicroBenchmarks.csproj",
|
[string] $Csproj="src\benchmarks\micro\MicroBenchmarks.csproj",
|
||||||
[string] $Kind="micro",
|
[string] $Kind="micro",
|
||||||
|
[switch] $LLVM,
|
||||||
|
[switch] $MonoInterpreter,
|
||||||
|
[switch] $MonoAOT,
|
||||||
[switch] $Internal,
|
[switch] $Internal,
|
||||||
[switch] $Compare,
|
[switch] $Compare,
|
||||||
|
[string] $MonoDotnet="",
|
||||||
[string] $Configurations="CompilationMode=$CompilationMode RunKind=$Kind"
|
[string] $Configurations="CompilationMode=$CompilationMode RunKind=$Kind"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -50,6 +54,21 @@ if ($Internal) {
|
||||||
$HelixSourcePrefix = "official"
|
$HelixSourcePrefix = "official"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($MonoDotnet -ne "")
|
||||||
|
{
|
||||||
|
$Configurations += " LLVM=$LLVM MonoInterpreter=$MonoInterpreter MonoAOT=$MonoAOT"
|
||||||
|
if($ExtraBenchmarkDotNetArguments -eq "")
|
||||||
|
{
|
||||||
|
#FIX ME: We need to block these tests as they don't run on mono for now
|
||||||
|
$ExtraBenchmarkDotNetArguments = "--exclusion-filter *Perf_Image* *Perf_NamedPipeStream*"
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#FIX ME: We need to block these tests as they don't run on mono for now
|
||||||
|
$ExtraBenchmarkDotNetArguments += " --exclusion-filter *Perf_Image* *Perf_NamedPipeStream*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# FIX ME: This is a workaround until we get this from the actual pipeline
|
# FIX ME: This is a workaround until we get this from the actual pipeline
|
||||||
$CommonSetupArguments="--channel master --queue $Queue --build-number $BuildNumber --build-configs $Configurations --architecture $Architecture"
|
$CommonSetupArguments="--channel master --queue $Queue --build-number $BuildNumber --build-configs $Configurations --architecture $Architecture"
|
||||||
$SetupArguments = "--repository https://github.com/$Repository --branch $Branch --get-perf-hash --commit-sha $CommitSha $CommonSetupArguments"
|
$SetupArguments = "--repository https://github.com/$Repository --branch $Branch --get-perf-hash --commit-sha $CommitSha $CommonSetupArguments"
|
||||||
|
@ -70,6 +89,13 @@ else {
|
||||||
git clone --branch master --depth 1 --quiet https://github.com/dotnet/performance $PerformanceDirectory
|
git clone --branch master --depth 1 --quiet https://github.com/dotnet/performance $PerformanceDirectory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($MonoDotnet -ne "")
|
||||||
|
{
|
||||||
|
$UsingMono = "true"
|
||||||
|
$MonoDotnetPath = (Join-Path $PayloadDirectory "dotnet-mono")
|
||||||
|
Move-Item -Path $MonoDotnet -Destination $MonoDotnetPath
|
||||||
|
}
|
||||||
|
|
||||||
if ($UseCoreRun) {
|
if ($UseCoreRun) {
|
||||||
$NewCoreRoot = (Join-Path $PayloadDirectory "Core_Root")
|
$NewCoreRoot = (Join-Path $PayloadDirectory "Core_Root")
|
||||||
Move-Item -Path $CoreRootDirectory -Destination $NewCoreRoot
|
Move-Item -Path $CoreRootDirectory -Destination $NewCoreRoot
|
||||||
|
@ -105,6 +131,7 @@ Write-PipelineSetVariable -Name 'UseCoreRun' -Value "$UseCoreRun" -IsMultiJobVar
|
||||||
Write-PipelineSetVariable -Name 'UseBaselineCoreRun' -Value "$UseBaselineCoreRun" -IsMultiJobVariable $false
|
Write-PipelineSetVariable -Name 'UseBaselineCoreRun' -Value "$UseBaselineCoreRun" -IsMultiJobVariable $false
|
||||||
Write-PipelineSetVariable -Name 'RunFromPerfRepo' -Value "$RunFromPerformanceRepo" -IsMultiJobVariable $false
|
Write-PipelineSetVariable -Name 'RunFromPerfRepo' -Value "$RunFromPerformanceRepo" -IsMultiJobVariable $false
|
||||||
Write-PipelineSetVariable -Name 'Compare' -Value "$Compare" -IsMultiJobVariable $false
|
Write-PipelineSetVariable -Name 'Compare' -Value "$Compare" -IsMultiJobVariable $false
|
||||||
|
Write-PipelineSetVariable -Name 'MonoDotnet' -Value "$UsingMono" -IsMultiJobVariable $false
|
||||||
|
|
||||||
# Helix Arguments
|
# Helix Arguments
|
||||||
Write-PipelineSetVariable -Name 'Creator' -Value "$Creator" -IsMultiJobVariable $false
|
Write-PipelineSetVariable -Name 'Creator' -Value "$Creator" -IsMultiJobVariable $false
|
||||||
|
|
|
@ -12,13 +12,18 @@ commit_sha=$BUILD_SOURCEVERSION
|
||||||
build_number=$BUILD_BUILDNUMBER
|
build_number=$BUILD_BUILDNUMBER
|
||||||
internal=false
|
internal=false
|
||||||
compare=false
|
compare=false
|
||||||
|
mono_dotnet=
|
||||||
kind="micro"
|
kind="micro"
|
||||||
|
llvm=false
|
||||||
|
monointerpreter=false
|
||||||
|
monoaot=false
|
||||||
run_categories="Libraries Runtime"
|
run_categories="Libraries Runtime"
|
||||||
csproj="src\benchmarks\micro\MicroBenchmarks.csproj"
|
csproj="src\benchmarks\micro\MicroBenchmarks.csproj"
|
||||||
configurations="CompliationMode=$compilation_mode RunKind=$kind"
|
configurations="CompliationMode=$compilation_mode RunKind=$kind"
|
||||||
run_from_perf_repo=false
|
run_from_perf_repo=false
|
||||||
use_core_run=true
|
use_core_run=true
|
||||||
use_baseline_core_run=true
|
use_baseline_core_run=true
|
||||||
|
using_mono=false
|
||||||
|
|
||||||
while (($# > 0)); do
|
while (($# > 0)); do
|
||||||
lowerI="$(echo $1 | awk '{print tolower($0)}')"
|
lowerI="$(echo $1 | awk '{print tolower($0)}')"
|
||||||
|
@ -65,6 +70,7 @@ while (($# > 0)); do
|
||||||
;;
|
;;
|
||||||
--kind)
|
--kind)
|
||||||
kind=$2
|
kind=$2
|
||||||
|
configurations="CompliationMode=$compilation_mode RunKind=$kind"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
--runcategories)
|
--runcategories)
|
||||||
|
@ -79,6 +85,22 @@ while (($# > 0)); do
|
||||||
internal=true
|
internal=true
|
||||||
shift 1
|
shift 1
|
||||||
;;
|
;;
|
||||||
|
--llvm)
|
||||||
|
llvm=true
|
||||||
|
shift 1
|
||||||
|
;;
|
||||||
|
--monointerpreter)
|
||||||
|
monointerpreter=true
|
||||||
|
shift 1
|
||||||
|
;;
|
||||||
|
--monoaot)
|
||||||
|
monoaot=true
|
||||||
|
shift 1
|
||||||
|
;;
|
||||||
|
--monodotnet)
|
||||||
|
mono_dotnet=$2
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
--compare)
|
--compare)
|
||||||
compare=true
|
compare=true
|
||||||
shift 1
|
shift 1
|
||||||
|
@ -107,6 +129,7 @@ while (($# > 0)); do
|
||||||
echo " --kind <value> Related to csproj. The kind of benchmarks that should be run. Defaults to micro"
|
echo " --kind <value> Related to csproj. The kind of benchmarks that should be run. Defaults to micro"
|
||||||
echo " --runcategories <value> Related to csproj. Categories of benchmarks to run. Defaults to \"coreclr corefx\""
|
echo " --runcategories <value> Related to csproj. Categories of benchmarks to run. Defaults to \"coreclr corefx\""
|
||||||
echo " --internal If the benchmarks are running as an official job."
|
echo " --internal If the benchmarks are running as an official job."
|
||||||
|
echo " --monodotnet Pass the path to the mono dotnet for mono performance testing."
|
||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
@ -164,6 +187,10 @@ if [[ "$internal" == true ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$mono_dotnet" != "" ]]; then
|
||||||
|
configurations="$configurations LLVM=$llvm MonoInterpreter=$monointerpreter MonoAOT=$monoaot"
|
||||||
|
fi
|
||||||
|
|
||||||
common_setup_arguments="--channel master --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
|
common_setup_arguments="--channel master --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
|
||||||
setup_arguments="--repository https://github.com/$repository --branch $branch --get-perf-hash --commit-sha $commit_sha $common_setup_arguments"
|
setup_arguments="--repository https://github.com/$repository --branch $branch --get-perf-hash --commit-sha $commit_sha $common_setup_arguments"
|
||||||
|
|
||||||
|
@ -186,6 +213,12 @@ else
|
||||||
mv $docs_directory $workitem_directory
|
mv $docs_directory $workitem_directory
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$mono_dotnet" != "" ]]; then
|
||||||
|
using_mono=true
|
||||||
|
mono_dotnet_path=$payload_directory/dotnet-mono
|
||||||
|
mv $mono_dotnet $mono_dotnet_path
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$use_core_run" = true ]]; then
|
if [[ "$use_core_run" = true ]]; then
|
||||||
new_core_root=$payload_directory/Core_Root
|
new_core_root=$payload_directory/Core_Root
|
||||||
mv $core_root_directory $new_core_root
|
mv $core_root_directory $new_core_root
|
||||||
|
@ -221,3 +254,4 @@ Write-PipelineSetVariable -name "HelixSourcePrefix" -value "$helix_source_prefix
|
||||||
Write-PipelineSetVariable -name "Kind" -value "$kind" -is_multi_job_variable false
|
Write-PipelineSetVariable -name "Kind" -value "$kind" -is_multi_job_variable false
|
||||||
Write-PipelineSetVariable -name "_BuildConfig" -value "$architecture.$kind.$framework" -is_multi_job_variable false
|
Write-PipelineSetVariable -name "_BuildConfig" -value "$architecture.$kind.$framework" -is_multi_job_variable false
|
||||||
Write-PipelineSetVariable -name "Compare" -value "$compare" -is_multi_job_variable false
|
Write-PipelineSetVariable -name "Compare" -value "$compare" -is_multi_job_variable false
|
||||||
|
Write-PipelineSetVariable -name "MonoDotnet" -value "$using_mono" -is_multi_job_variable false
|
||||||
|
|
|
@ -2,7 +2,8 @@ param(
|
||||||
[Parameter(Mandatory=$true)][string] $InputPath, # Full path to directory where NuGet packages to be checked are stored
|
[Parameter(Mandatory=$true)][string] $InputPath, # Full path to directory where NuGet packages to be checked are stored
|
||||||
[Parameter(Mandatory=$true)][string] $ExtractPath, # Full path to directory where the packages will be extracted during validation
|
[Parameter(Mandatory=$true)][string] $ExtractPath, # Full path to directory where the packages will be extracted during validation
|
||||||
[Parameter(Mandatory=$true)][string] $DotnetSymbolVersion, # Version of dotnet symbol to use
|
[Parameter(Mandatory=$true)][string] $DotnetSymbolVersion, # Version of dotnet symbol to use
|
||||||
[Parameter(Mandatory=$false)][switch] $ContinueOnError # If we should keep checking symbols after an error
|
[Parameter(Mandatory=$false)][switch] $ContinueOnError, # If we should keep checking symbols after an error
|
||||||
|
[Parameter(Mandatory=$false)][switch] $Clean # Clean extracted symbols directory after checking symbols
|
||||||
)
|
)
|
||||||
|
|
||||||
function FirstMatchingSymbolDescriptionOrDefault {
|
function FirstMatchingSymbolDescriptionOrDefault {
|
||||||
|
@ -81,7 +82,14 @@ function CountMissingSymbols {
|
||||||
$ExtractPath = Join-Path -Path $ExtractPath -ChildPath $PackageGuid
|
$ExtractPath = Join-Path -Path $ExtractPath -ChildPath $PackageGuid
|
||||||
$SymbolsPath = Join-Path -Path $ExtractPath -ChildPath 'Symbols'
|
$SymbolsPath = Join-Path -Path $ExtractPath -ChildPath 'Symbols'
|
||||||
|
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory($PackagePath, $ExtractPath)
|
try {
|
||||||
|
[System.IO.Compression.ZipFile]::ExtractToDirectory($PackagePath, $ExtractPath)
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Host "Something went wrong extracting $PackagePath"
|
||||||
|
Write-Host $_
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
Get-ChildItem -Recurse $ExtractPath |
|
Get-ChildItem -Recurse $ExtractPath |
|
||||||
Where-Object {$RelevantExtensions -contains $_.Extension} |
|
Where-Object {$RelevantExtensions -contains $_.Extension} |
|
||||||
|
@ -116,6 +124,10 @@ function CountMissingSymbols {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($Clean) {
|
||||||
|
Remove-Item $ExtractPath -Recurse -Force
|
||||||
|
}
|
||||||
|
|
||||||
Pop-Location
|
Pop-Location
|
||||||
|
|
||||||
return $MissingSymbols
|
return $MissingSymbols
|
||||||
|
@ -151,7 +163,7 @@ function CheckSymbolsAvailable {
|
||||||
|
|
||||||
if ($Status -ne 0) {
|
if ($Status -ne 0) {
|
||||||
Write-PipelineTelemetryError -Category 'CheckSymbols' -Message "Missing symbols for $Status modules in the package $FileName"
|
Write-PipelineTelemetryError -Category 'CheckSymbols' -Message "Missing symbols for $Status modules in the package $FileName"
|
||||||
|
|
||||||
if ($ContinueOnError) {
|
if ($ContinueOnError) {
|
||||||
$TotalFailures++
|
$TotalFailures++
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,8 @@ parameters:
|
||||||
Net5Preview3ChannelId: 739
|
Net5Preview3ChannelId: 739
|
||||||
Net5Preview4ChannelId: 856
|
Net5Preview4ChannelId: 856
|
||||||
Net5Preview5ChannelId: 857
|
Net5Preview5ChannelId: 857
|
||||||
|
NetCoreSDK313xxChannelId: 759
|
||||||
|
NetCoreSDK313xxInternalChannelId: 760
|
||||||
NetCoreSDK314xxChannelId: 921
|
NetCoreSDK314xxChannelId: 921
|
||||||
NetCoreSDK314xxInternalChannelId: 922
|
NetCoreSDK314xxInternalChannelId: 922
|
||||||
|
|
||||||
|
@ -66,7 +68,7 @@ stages:
|
||||||
inputs:
|
inputs:
|
||||||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/check-channel-consistency.ps1
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/check-channel-consistency.ps1
|
||||||
arguments: -PromoteToChannels "$(TargetChannels)"
|
arguments: -PromoteToChannels "$(TargetChannels)"
|
||||||
-AvailableChannelIds ${{parameters.NetEngLatestChannelId}},${{parameters.NetEngValidationChannelId}},${{parameters.NetDev5ChannelId}},${{parameters.GeneralTestingChannelId}},${{parameters.NETCoreToolingDevChannelId}},${{parameters.NETCoreToolingReleaseChannelId}},${{parameters.NETInternalToolingChannelId}},${{parameters.NETCoreExperimentalChannelId}},${{parameters.NetEngServicesIntChannelId}},${{parameters.NetEngServicesProdChannelId}},${{parameters.Net5Preview3ChannelId}},${{parameters.Net5Preview4ChannelId}},${{parameters.Net5Preview5ChannelId}},${{parameters.NetCoreSDK314xxChannelId}},${{parameters.NetCoreSDK314xxInternalChannelId}}
|
-AvailableChannelIds ${{parameters.NetEngLatestChannelId}},${{parameters.NetEngValidationChannelId}},${{parameters.NetDev5ChannelId}},${{parameters.GeneralTestingChannelId}},${{parameters.NETCoreToolingDevChannelId}},${{parameters.NETCoreToolingReleaseChannelId}},${{parameters.NETInternalToolingChannelId}},${{parameters.NETCoreExperimentalChannelId}},${{parameters.NetEngServicesIntChannelId}},${{parameters.NetEngServicesProdChannelId}},${{parameters.Net5Preview3ChannelId}},${{parameters.Net5Preview4ChannelId}},${{parameters.Net5Preview5ChannelId}},${{parameters.NetCoreSDK313xxChannelId}},${{parameters.NetCoreSDK313xxInternalChannelId}},${{parameters.NetCoreSDK314xxChannelId}},${{parameters.NetCoreSDK314xxInternalChannelId}}
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: NuGet Validation
|
displayName: NuGet Validation
|
||||||
|
@ -408,3 +410,29 @@ stages:
|
||||||
transportFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v3/index.json'
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v3/index.json'
|
||||||
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v3/index.json'
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v3/index.json'
|
||||||
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-symbols/nuget/v3/index.json'
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-symbols/nuget/v3/index.json'
|
||||||
|
|
||||||
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
||||||
|
parameters:
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
dependsOn: ${{ parameters.publishDependsOn }}
|
||||||
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
||||||
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
stageName: 'NETCore_SDK_313xx_Publishing'
|
||||||
|
channelName: '.NET Core SDK 3.1.3xx'
|
||||||
|
channelId: ${{ parameters.NetCoreSDK313xxChannelId }}
|
||||||
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-transport/nuget/v3/index.json'
|
||||||
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1/nuget/v3/index.json'
|
||||||
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-symbols/nuget/v3/index.json'
|
||||||
|
|
||||||
|
- template: \eng\common\templates\post-build\channels\generic-internal-channel.yml
|
||||||
|
parameters:
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
dependsOn: ${{ parameters.publishDependsOn }}
|
||||||
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
||||||
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
stageName: 'NETCore_SDK_313xx_Internal_Publishing'
|
||||||
|
channelName: '.NET Core SDK 3.1.3xx Internal'
|
||||||
|
channelId: ${{ parameters.NetCoreSDK313xxInternalChannelId }}
|
||||||
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v3/index.json'
|
||||||
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v3/index.json'
|
||||||
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-symbols/nuget/v3/index.json'
|
||||||
|
|
|
@ -7,9 +7,11 @@
|
||||||
# Build configuration. Common values include 'Debug' and 'Release', but the repository may use other names.
|
# Build configuration. Common values include 'Debug' and 'Release', but the repository may use other names.
|
||||||
[string]$configuration = if (Test-Path variable:configuration) { $configuration } else { 'Debug' }
|
[string]$configuration = if (Test-Path variable:configuration) { $configuration } else { 'Debug' }
|
||||||
|
|
||||||
|
# Set to true to opt out of outputting binary log while running in CI
|
||||||
|
[bool]$excludeCIBinarylog = if (Test-Path variable:excludeCIBinarylog) { $excludeCIBinarylog } else { $false }
|
||||||
|
|
||||||
# Set to true to output binary log from msbuild. Note that emitting binary log slows down the build.
|
# Set to true to output binary log from msbuild. Note that emitting binary log slows down the build.
|
||||||
# Binary log must be enabled on CI.
|
[bool]$binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $ci -and !$excludeCIBinarylog }
|
||||||
[bool]$binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $ci }
|
|
||||||
|
|
||||||
# Set to true to use the pipelines logger which will enable Azure logging output.
|
# Set to true to use the pipelines logger which will enable Azure logging output.
|
||||||
# https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md
|
# https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md
|
||||||
|
@ -55,10 +57,8 @@ set-strictmode -version 2.0
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
|
||||||
function Create-Directory([string[]] $path) {
|
function Create-Directory ([string[]] $path) {
|
||||||
if (!(Test-Path $path)) {
|
New-Item -Path $path -Force -ItemType 'Directory' | Out-Null
|
||||||
New-Item -path $path -force -itemType 'Directory' | Out-Null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Unzip([string]$zipfile, [string]$outpath) {
|
function Unzip([string]$zipfile, [string]$outpath) {
|
||||||
|
@ -605,8 +605,8 @@ function MSBuild() {
|
||||||
#
|
#
|
||||||
function MSBuild-Core() {
|
function MSBuild-Core() {
|
||||||
if ($ci) {
|
if ($ci) {
|
||||||
if (!$binaryLog) {
|
if (!$binaryLog -and !$excludeCIBinarylog) {
|
||||||
Write-PipelineTelemetryError -Category 'Build' -Message 'Binary log must be enabled in CI build.'
|
Write-PipelineTelemetryError -Category 'Build' -Message 'Binary log must be enabled in CI build, or explicitly opted-out from with the -excludeCIBinarylog switch.'
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,17 @@ fi
|
||||||
# Build configuration. Common values include 'Debug' and 'Release', but the repository may use other names.
|
# Build configuration. Common values include 'Debug' and 'Release', but the repository may use other names.
|
||||||
configuration=${configuration:-'Debug'}
|
configuration=${configuration:-'Debug'}
|
||||||
|
|
||||||
|
# Set to true to opt out of outputting binary log while running in CI
|
||||||
|
exclude_ci_binary_log=${exclude_ci_binary_log:-false}
|
||||||
|
|
||||||
|
if [[ "$ci" == true && "$exclude_ci_binary_log" == false ]]; then
|
||||||
|
binary_log_default=true
|
||||||
|
else
|
||||||
|
binary_log_default=false
|
||||||
|
fi
|
||||||
|
|
||||||
# Set to true to output binary log from msbuild. Note that emitting binary log slows down the build.
|
# Set to true to output binary log from msbuild. Note that emitting binary log slows down the build.
|
||||||
# Binary log must be enabled on CI.
|
binary_log=${binary_log:-$binary_log_default}
|
||||||
binary_log=${binary_log:-$ci}
|
|
||||||
|
|
||||||
# Turns on machine preparation/clean up code that changes the machine state (e.g. kills build processes).
|
# Turns on machine preparation/clean up code that changes the machine state (e.g. kills build processes).
|
||||||
prepare_machine=${prepare_machine:-false}
|
prepare_machine=${prepare_machine:-false}
|
||||||
|
@ -404,8 +412,8 @@ function MSBuild {
|
||||||
|
|
||||||
function MSBuild-Core {
|
function MSBuild-Core {
|
||||||
if [[ "$ci" == true ]]; then
|
if [[ "$ci" == true ]]; then
|
||||||
if [[ "$binary_log" != true ]]; then
|
if [[ "$binary_log" != true && "$exclude_ci_binary_log" != true ]]; then
|
||||||
Write-PipelineTelemetryError -category 'Build' "Binary log must be enabled in CI build."
|
Write-PipelineTelemetryError -category 'Build' "Binary log must be enabled in CI build, or explicitly opted-out from with the -noBinaryLog switch."
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20256.5",
|
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20261.9",
|
||||||
"Microsoft.DotNet.Helix.Sdk": "5.0.0-beta.20256.5"
|
"Microsoft.DotNet.Helix.Sdk": "5.0.0-beta.20261.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче