From 8402e3f67ef30620a589a664f8a6a24430f67c8a Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Wed, 9 Dec 2020 13:20:38 +0000 Subject: [PATCH] [master] Update dependencies from dotnet/icu dotnet/arcade dotnet/runtime-assets dotnet/llvm-project (#45758) [master] Update dependencies from dotnet/icu dotnet/arcade dotnet/runtime-assets dotnet/llvm-project --- eng/Version.Details.xml | 140 +++++++++++++++--------------- eng/Versions.props | 60 ++++++------- eng/common/pipeline-logging-functions.ps1 | 104 +++++++++++++--------- eng/common/pipeline-logging-functions.sh | 26 +++++- eng/common/tools.ps1 | 15 +++- eng/common/tools.sh | 13 ++- global.json | 10 +-- 7 files changed, 214 insertions(+), 154 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 2fb0cbf..93afb81 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,78 +1,78 @@ - + https://github.com/dotnet/icu - a887f03bf2a71ceb83c28087c1a15c7086794d16 + 2f52599bc78b19f719bfdc28177cfc7ddefaffb6 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - 6d8efa00a7dd2d15e07df673a83cecb8a0a3031f + ea609b8e036359934332480de9336d98fcbb3f91 - + https://github.com/dotnet/arcade - d4dc3682cbad0314b6f138017411ee03ea51096b + ea609b8e036359934332480de9336d98fcbb3f91 https://dev.azure.com/dnceng/internal/_git/dotnet-optimization @@ -98,73 +98,73 @@ https://github.com/microsoft/vstest b195e2589980861425b331e73a859252c3f2b71a - + https://github.com/dotnet/runtime-assets - 4f95910cdb05e816e23fcdf7b17e81dddd97149c + ea4d3dabe3dacd4add6e4f8f36c116e7ceb1aaf9 - + https://github.com/dotnet/runtime-assets - 4f95910cdb05e816e23fcdf7b17e81dddd97149c + ea4d3dabe3dacd4add6e4f8f36c116e7ceb1aaf9 - + https://github.com/dotnet/runtime-assets - 4f95910cdb05e816e23fcdf7b17e81dddd97149c + ea4d3dabe3dacd4add6e4f8f36c116e7ceb1aaf9 - + https://github.com/dotnet/runtime-assets - 4f95910cdb05e816e23fcdf7b17e81dddd97149c + ea4d3dabe3dacd4add6e4f8f36c116e7ceb1aaf9 - + https://github.com/dotnet/runtime-assets - 4f95910cdb05e816e23fcdf7b17e81dddd97149c + ea4d3dabe3dacd4add6e4f8f36c116e7ceb1aaf9 - + https://github.com/dotnet/runtime-assets - 4f95910cdb05e816e23fcdf7b17e81dddd97149c + ea4d3dabe3dacd4add6e4f8f36c116e7ceb1aaf9 - + https://github.com/dotnet/runtime-assets - 4f95910cdb05e816e23fcdf7b17e81dddd97149c + ea4d3dabe3dacd4add6e4f8f36c116e7ceb1aaf9 - + https://github.com/dotnet/runtime-assets - 4f95910cdb05e816e23fcdf7b17e81dddd97149c + ea4d3dabe3dacd4add6e4f8f36c116e7ceb1aaf9 - + https://github.com/dotnet/runtime-assets - 4f95910cdb05e816e23fcdf7b17e81dddd97149c + ea4d3dabe3dacd4add6e4f8f36c116e7ceb1aaf9 - + https://github.com/dotnet/llvm-project - fb79a3140d977a6db43f88b60d1534091734e7f0 + c39dd941a9ae5891c06d97318d72a2217c855f33 - + https://github.com/dotnet/llvm-project - fb79a3140d977a6db43f88b60d1534091734e7f0 + c39dd941a9ae5891c06d97318d72a2217c855f33 - + https://github.com/dotnet/llvm-project - fb79a3140d977a6db43f88b60d1534091734e7f0 + c39dd941a9ae5891c06d97318d72a2217c855f33 - + https://github.com/dotnet/llvm-project - fb79a3140d977a6db43f88b60d1534091734e7f0 + c39dd941a9ae5891c06d97318d72a2217c855f33 - + https://github.com/dotnet/llvm-project - fb79a3140d977a6db43f88b60d1534091734e7f0 + c39dd941a9ae5891c06d97318d72a2217c855f33 - + https://github.com/dotnet/llvm-project - fb79a3140d977a6db43f88b60d1534091734e7f0 + c39dd941a9ae5891c06d97318d72a2217c855f33 - + https://github.com/dotnet/llvm-project - fb79a3140d977a6db43f88b60d1534091734e7f0 + c39dd941a9ae5891c06d97318d72a2217c855f33 - + https://github.com/dotnet/llvm-project - fb79a3140d977a6db43f88b60d1534091734e7f0 + c39dd941a9ae5891c06d97318d72a2217c855f33 https://github.com/dotnet/runtime diff --git a/eng/Versions.props b/eng/Versions.props index f5a923a..8799d3f 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -53,18 +53,18 @@ 6.0.0-preview1.20513.4 3.8.0-4.20503.2 - 6.0.0-beta.20601.2 - 6.0.0-beta.20601.2 - 6.0.0-beta.20601.2 - 6.0.0-beta.20601.2 - 6.0.0-beta.20601.2 - 6.0.0-beta.20601.2 - 2.5.1-beta.20601.2 - 6.0.0-beta.20601.2 - 6.0.0-beta.20601.2 - 6.0.0-beta.20601.2 - 6.0.0-beta.20601.2 - 6.0.0-beta.20601.2 + 6.0.0-beta.20604.2 + 6.0.0-beta.20604.2 + 6.0.0-beta.20604.2 + 6.0.0-beta.20604.2 + 6.0.0-beta.20604.2 + 6.0.0-beta.20604.2 + 2.5.1-beta.20604.2 + 6.0.0-beta.20604.2 + 6.0.0-beta.20604.2 + 6.0.0-beta.20604.2 + 6.0.0-beta.20604.2 + 6.0.0-beta.20604.2 5.0.0-rc.1.20451.14 6.0.0-alpha.1.20501.4 @@ -106,15 +106,15 @@ 4.3.0 5.0.0-alpha.1.19563.3 - 5.0.0-beta.20602.1 - 5.0.0-beta.20602.1 - 5.0.0-beta.20602.1 - 5.0.0-beta.20602.1 - 5.0.0-beta.20602.1 - 5.0.0-beta.20602.1 - 5.0.0-beta.20602.1 - 5.0.0-beta.20602.1 - 5.0.0-beta.20602.1 + 5.0.0-beta.20607.2 + 5.0.0-beta.20607.2 + 5.0.0-beta.20607.2 + 5.0.0-beta.20607.2 + 5.0.0-beta.20607.2 + 5.0.0-beta.20607.2 + 5.0.0-beta.20607.2 + 5.0.0-beta.20607.2 + 5.0.0-beta.20607.2 99.99.99-master-20200806.6 99.99.99-master-20200806.6 @@ -153,16 +153,16 @@ 6.0.0-alpha.1.20607.2 - 6.0.0-alpha.1.20580.2 + 6.0.0-alpha.1.20607.1 - 9.0.1-alpha.1.20580.1 - 9.0.1-alpha.1.20580.1 - 9.0.1-alpha.1.20580.1 - 9.0.1-alpha.1.20580.1 - 9.0.1-alpha.1.20580.1 - 9.0.1-alpha.1.20580.1 - 9.0.1-alpha.1.20580.1 - 9.0.1-alpha.1.20580.1 + 9.0.1-alpha.1.20607.1 + 9.0.1-alpha.1.20607.1 + 9.0.1-alpha.1.20607.1 + 9.0.1-alpha.1.20607.1 + 9.0.1-alpha.1.20607.1 + 9.0.1-alpha.1.20607.1 + 9.0.1-alpha.1.20607.1 + 9.0.1-alpha.1.20607.1 diff --git a/eng/common/pipeline-logging-functions.ps1 b/eng/common/pipeline-logging-functions.ps1 index 8484451..8e422c5 100644 --- a/eng/common/pipeline-logging-functions.ps1 +++ b/eng/common/pipeline-logging-functions.ps1 @@ -29,14 +29,14 @@ function Write-PipelineTelemetryError { [switch]$AsOutput, [switch]$Force) - $PSBoundParameters.Remove('Category') | Out-Null + $PSBoundParameters.Remove('Category') | Out-Null - if($Force -Or ((Test-Path variable:ci) -And $ci)) { - $Message = "(NETCORE_ENGINEERING_TELEMETRY=$Category) $Message" - } - $PSBoundParameters.Remove('Message') | Out-Null - $PSBoundParameters.Add('Message', $Message) - Write-PipelineTaskError @PSBoundParameters + if ($Force -Or ((Test-Path variable:ci) -And $ci)) { + $Message = "(NETCORE_ENGINEERING_TELEMETRY=$Category) $Message" + } + $PSBoundParameters.Remove('Message') | Out-Null + $PSBoundParameters.Add('Message', $Message) + Write-PipelineTaskError @PSBoundParameters } # Specify "-Force" to force pipeline formatted output even if "$ci" is false or not set @@ -55,8 +55,8 @@ function Write-PipelineTaskError { [switch]$Force ) - if(!$Force -And (-Not (Test-Path variable:ci) -Or !$ci)) { - if($Type -eq 'error') { + if (!$Force -And (-Not (Test-Path variable:ci) -Or !$ci)) { + if ($Type -eq 'error') { Write-Host $Message -ForegroundColor Red return } @@ -66,47 +66,61 @@ function Write-PipelineTaskError { } } - if(($Type -ne 'error') -and ($Type -ne 'warning')) { + if (($Type -ne 'error') -and ($Type -ne 'warning')) { Write-Host $Message return } $PSBoundParameters.Remove('Force') | Out-Null - if(-not $PSBoundParameters.ContainsKey('Type')) { + if (-not $PSBoundParameters.ContainsKey('Type')) { $PSBoundParameters.Add('Type', 'error') } Write-LogIssue @PSBoundParameters - } +} - function Write-PipelineSetVariable { +function Write-PipelineSetVariable { [CmdletBinding()] param( - [Parameter(Mandatory = $true)] - [string]$Name, - [string]$Value, - [switch]$Secret, - [switch]$AsOutput, - [bool]$IsMultiJobVariable=$true) - - if((Test-Path variable:ci) -And $ci) { + [Parameter(Mandatory = $true)] + [string]$Name, + [string]$Value, + [switch]$Secret, + [switch]$AsOutput, + [bool]$IsMultiJobVariable = $true) + + if ((Test-Path variable:ci) -And $ci) { Write-LoggingCommand -Area 'task' -Event 'setvariable' -Data $Value -Properties @{ - 'variable' = $Name - 'isSecret' = $Secret - 'isOutput' = $IsMultiJobVariable + 'variable' = $Name + 'isSecret' = $Secret + 'isOutput' = $IsMultiJobVariable } -AsOutput:$AsOutput - } - } + } +} - function Write-PipelinePrependPath { +function Write-PipelinePrependPath { [CmdletBinding()] param( - [Parameter(Mandatory=$true)] - [string]$Path, - [switch]$AsOutput) + [Parameter(Mandatory = $true)] + [string]$Path, + [switch]$AsOutput) - if((Test-Path variable:ci) -And $ci) { + if ((Test-Path variable:ci) -And $ci) { Write-LoggingCommand -Area 'task' -Event 'prependpath' -Data $Path -AsOutput:$AsOutput - } - } + } +} + +function Write-PipelineSetResult { + [CmdletBinding()] + param( + [ValidateSet("Succeeded", "SucceededWithIssues", "Failed", "Cancelled", "Skipped")] + [Parameter(Mandatory = $true)] + [string]$Result, + [string]$Message) + if ((Test-Path variable:ci) -And $ci) { + Write-LoggingCommand -Area 'task' -Event 'complete' -Data $Message -Properties @{ + 'result' = $Result + } + } +} <######################################## # Private functions. @@ -123,7 +137,8 @@ function Format-LoggingCommandData { foreach ($mapping in $script:loggingCommandEscapeMappings) { $Value = $Value.Replace($mapping.Token, $mapping.Replacement) } - } else { + } + else { for ($i = $script:loggingCommandEscapeMappings.Length - 1 ; $i -ge 0 ; $i--) { $mapping = $script:loggingCommandEscapeMappings[$i] $Value = $Value.Replace($mapping.Replacement, $mapping.Token) @@ -156,7 +171,8 @@ function Format-LoggingCommand { if ($first) { $null = $sb.Append(' ') $first = $false - } else { + } + else { $null = $sb.Append(';') } @@ -193,7 +209,8 @@ function Write-LoggingCommand { $command = Format-LoggingCommand -Area $Area -Event $Event -Data $Data -Properties $Properties if ($AsOutput) { $command - } else { + } + else { Write-Host $command } } @@ -212,12 +229,12 @@ function Write-LogIssue { [switch]$AsOutput) $command = Format-LoggingCommand -Area 'task' -Event 'logissue' -Data $Message -Properties @{ - 'type' = $Type - 'code' = $ErrCode - 'sourcepath' = $SourcePath - 'linenumber' = $LineNumber - 'columnnumber' = $ColumnNumber - } + 'type' = $Type + 'code' = $ErrCode + 'sourcepath' = $SourcePath + 'linenumber' = $LineNumber + 'columnnumber' = $ColumnNumber + } if ($AsOutput) { return $command } @@ -229,7 +246,8 @@ function Write-LogIssue { $foregroundColor = [System.ConsoleColor]::Red $backgroundColor = [System.ConsoleColor]::Black } - } else { + } + else { $foregroundColor = $host.PrivateData.WarningForegroundColor $backgroundColor = $host.PrivateData.WarningBackgroundColor if ($foregroundColor -isnot [System.ConsoleColor] -or $backgroundColor -isnot [System.ConsoleColor]) { diff --git a/eng/common/pipeline-logging-functions.sh b/eng/common/pipeline-logging-functions.sh index 6cd0a34..da5a7e6 100755 --- a/eng/common/pipeline-logging-functions.sh +++ b/eng/common/pipeline-logging-functions.sh @@ -179,4 +179,28 @@ function Write-PipelinePrependPath { if [[ "$ci" == true ]]; then echo "##vso[task.prependpath]$prepend_path" fi -} \ No newline at end of file +} + +function Write-PipelineSetResult { + local result='' + local message='' + + while [[ $# -gt 0 ]]; do + opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')" + case "$opt" in + -result|-r) + result=$2 + shift + ;; + -message|-m) + message=$2 + shift + ;; + esac + shift + done + + if [[ "$ci" == true ]]; then + echo "##vso[task.complete result=$result;]$message" + fi +} diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1 index fc09059..bc8b66e 100644 --- a/eng/common/tools.ps1 +++ b/eng/common/tools.ps1 @@ -677,14 +677,23 @@ function MSBuild-Core() { $exitCode = Exec-Process $buildTool.Path $cmdArgs if ($exitCode -ne 0) { - Write-PipelineTelemetryError -Category 'Build' -Message 'Build failed.' + # We should not Write-PipelineTaskError here because that message shows up in the build summary + # The build already logged an error, that's the reason it failed. Producing an error here only adds noise. + Write-Host "Build failed with exit code $exitCode. Check errors above." -ForegroundColor Red $buildLog = GetMSBuildBinaryLogCommandLineArgument $args - if ($buildLog -ne $null) { + if ($null -ne $buildLog) { Write-Host "See log: $buildLog" -ForegroundColor DarkGray } - ExitWithExitCode $exitCode + if ($ci) { + Write-PipelineSetResult -Result "Failed" -Message "msbuild execution failed." + # Exiting with an exit code causes the azure pipelines task to log yet another "noise" error + # The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error + ExitWithExitCode 0 + } else { + ExitWithExitCode $exitCode + } } } diff --git a/eng/common/tools.sh b/eng/common/tools.sh index 8715272..0295dd9 100755 --- a/eng/common/tools.sh +++ b/eng/common/tools.sh @@ -441,8 +441,17 @@ function MSBuild-Core { "$_InitializeBuildTool" "$@" || { local exit_code=$? - Write-PipelineTaskError "Build failed (exit code '$exit_code')." - ExitWithExitCode $exit_code + # We should not Write-PipelineTaskError here because that message shows up in the build summary + # The build already logged an error, that's the reason it failed. Producing an error here only adds noise. + echo "Build failed with exit code $exit_code. Check errors above." + if [[ "$ci" == "true" ]]; then + Write-PipelineSetResult -result "Failed" -message "msbuild execution failed." + # Exiting with an exit code causes the azure pipelines task to log yet another "noise" error + # The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error + ExitWithExitCode 0 + else + ExitWithExitCode $exit_code + fi } } diff --git a/global.json b/global.json index 929b35d..cacf10d 100644 --- a/global.json +++ b/global.json @@ -12,11 +12,11 @@ "python3": "3.7.1" }, "msbuild-sdks": { - "Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk": "6.0.0-beta.20601.2", - "Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.20601.2", - "Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk": "6.0.0-beta.20601.2", - "Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.20601.2", - "Microsoft.DotNet.SharedFramework.Sdk": "6.0.0-beta.20602.5", + "Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk": "6.0.0-beta.20604.2", + "Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.20604.2", + "Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk": "6.0.0-beta.20604.2", + "Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.20604.2", + "Microsoft.DotNet.SharedFramework.Sdk": "6.0.0-beta.20604.2", "Microsoft.NET.Sdk.IL": "6.0.0-alpha.1.20557.2", "Microsoft.Build.NoTargets": "2.0.1", "Microsoft.Build.Traversal": "2.1.1" -- 2.7.4