Skip to content

Commit

Permalink
[release/6.0.4xx] Update dependencies from dotnet/arcade (#8236)
Browse files Browse the repository at this point in the history
* Update dependencies from https://github.com/dotnet/arcade build 20240717.5

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24367.5

* Update dependencies from https://github.com/dotnet/arcade build 20240718.8

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24368.8

* Update dependencies from https://github.com/dotnet/arcade build 20240718.8

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24368.8

* Update dependencies from https://github.com/dotnet/arcade build 20240718.8

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24368.8

* Update dependencies from https://github.com/dotnet/arcade build 20240718.8

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24368.8

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

* Update dependencies from https://github.com/dotnet/arcade build 20240719.2

Microsoft.DotNet.Arcade.Sdk
 From Version 6.0.0-beta.24360.7 -> To Version 6.0.0-beta.24369.2

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
  • Loading branch information
dotnet-maestro[bot] and dotnet-maestro[bot] authored Aug 6, 2024
1 parent 3c3b1ef commit d0e6006
Show file tree
Hide file tree
Showing 23 changed files with 221 additions and 337 deletions.
4 changes: 2 additions & 2 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.24360.7">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.24369.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>fbc993a9e8fb4926ce04c95ba2e48852c9d9df65</Sha>
<Sha>56d064c307141d83a237c18e3426e676777a1aca</Sha>
<SourceBuild RepoName="arcade" ManagedOnly="true" />
</Dependency>
</ToolsetDependencies>
Expand Down
48 changes: 0 additions & 48 deletions eng/common/post-build/add-build-to-channel.ps1

This file was deleted.

10 changes: 9 additions & 1 deletion eng/common/post-build/check-channel-consistency.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ param(
)

try {
. $PSScriptRoot\post-build-utils.ps1
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version 2.0

# `tools.ps1` checks $ci to perform some actions. Since the post-build
# scripts don't necessarily execute in the same agent that run the
# build.ps1/sh script this variable isn't automatically set.
$ci = $true
$disableConfigureToolsetImport = $true
. $PSScriptRoot\..\tools.ps1

if ($PromoteToChannels -eq "") {
Write-PipelineTaskError -Type 'warning' -Message "This build won't publish assets as it's not configured to any Maestro channel. If that wasn't intended use Darc to configure a default channel using add-default-channel for this branch or to promote it to a channel using add-build-to-channel. See https://github.com/dotnet/arcade/blob/master/Documentation/Darc.md#assigning-an-individual-build-to-a-channel for more info."
Expand Down
13 changes: 2 additions & 11 deletions eng/common/post-build/nuget-validation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,11 @@
# tool: https://github.com/NuGet/NuGetGallery/tree/jver-verify/src/VerifyMicrosoftPackage

param(
[Parameter(Mandatory=$true)][string] $PackagesPath, # Path to where the packages to be validated are
[Parameter(Mandatory=$true)][string] $ToolDestinationPath # Where the validation tool should be downloaded to
[Parameter(Mandatory=$true)][string] $PackagesPath # Path to where the packages to be validated are
)

try {
. $PSScriptRoot\post-build-utils.ps1

$url = 'https://raw.githubusercontent.com/NuGet/NuGetGallery/3e25ad135146676bcab0050a516939d9958bfa5d/src/VerifyMicrosoftPackage/verify.ps1'

New-Item -ItemType 'directory' -Path ${ToolDestinationPath} -Force

Invoke-WebRequest $url -OutFile ${ToolDestinationPath}\verify.ps1

& ${ToolDestinationPath}\verify.ps1 ${PackagesPath}\*.nupkg
& $PSScriptRoot\nuget-verification.ps1 ${PackagesPath}\*.nupkg
}
catch {
Write-Host $_.ScriptStackTrace
Expand Down
121 changes: 121 additions & 0 deletions eng/common/post-build/nuget-verification.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<#
.SYNOPSIS
Verifies that Microsoft NuGet packages have proper metadata.
.DESCRIPTION
Downloads a verification tool and runs metadata validation on the provided NuGet packages. This script writes an
error if any of the provided packages fail validation. All arguments provided to this PowerShell script that do not
match PowerShell parameters are passed on to the verification tool downloaded during the execution of this script.
.PARAMETER NuGetExePath
The path to the nuget.exe binary to use. If not provided, nuget.exe will be downloaded into the -DownloadPath
directory.
.PARAMETER PackageSource
The package source to use to download the verification tool. If not provided, nuget.org will be used.
.PARAMETER DownloadPath
The directory path to download the verification tool and nuget.exe to. If not provided,
%TEMP%\NuGet.VerifyNuGetPackage will be used.
.PARAMETER args
Arguments that will be passed to the verification tool.
.EXAMPLE
PS> .\verify.ps1 *.nupkg
Verifies the metadata of all .nupkg files in the currect working directory.
.EXAMPLE
PS> .\verify.ps1 --help
Displays the help text of the downloaded verifiction tool.
.LINK
https://github.com/NuGet/NuGetGallery/blob/master/src/VerifyMicrosoftPackage/README.md
#>

# This script was copied from https://github.com/NuGet/NuGetGallery/blob/3e25ad135146676bcab0050a516939d9958bfa5d/src/VerifyMicrosoftPackage/verify.ps1

[CmdletBinding(PositionalBinding = $false)]
param(
[string]$NuGetExePath,
[string]$PackageSource = "https://api.nuget.org/v3/index.json",
[string]$DownloadPath,
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$args
)

# The URL to download nuget.exe.
$nugetExeUrl = "https://dist.nuget.org/win-x86-commandline/v4.9.4/nuget.exe"

# The package ID of the verification tool.
$packageId = "NuGet.VerifyMicrosoftPackage"

# The location that nuget.exe and the verification tool will be downloaded to.
if (!$DownloadPath) {
$DownloadPath = (Join-Path $env:TEMP "NuGet.VerifyMicrosoftPackage")
}

$fence = New-Object -TypeName string -ArgumentList '=', 80

# Create the download directory, if it doesn't already exist.
if (!(Test-Path $DownloadPath)) {
New-Item -ItemType Directory $DownloadPath | Out-Null
}
Write-Host "Using download path: $DownloadPath"

if ($NuGetExePath) {
$nuget = $NuGetExePath
} else {
$downloadedNuGetExe = Join-Path $DownloadPath "nuget.exe"

# Download nuget.exe, if it doesn't already exist.
if (!(Test-Path $downloadedNuGetExe)) {
Write-Host "Downloading nuget.exe from $nugetExeUrl..."
$ProgressPreference = 'SilentlyContinue'
try {
Invoke-WebRequest $nugetExeUrl -OutFile $downloadedNuGetExe
$ProgressPreference = 'Continue'
} catch {
$ProgressPreference = 'Continue'
Write-Error $_
Write-Error "nuget.exe failed to download."
exit
}
}

$nuget = $downloadedNuGetExe
}

Write-Host "Using nuget.exe path: $nuget"
Write-Host " "

# Download the latest version of the verification tool.
Write-Host "Downloading the latest version of $packageId from $packageSource..."
Write-Host $fence
& $nuget install $packageId `
-Prerelease `
-OutputDirectory $DownloadPath `
-Source $PackageSource
Write-Host $fence
Write-Host " "

if ($LASTEXITCODE -ne 0) {
Write-Error "nuget.exe failed to fetch the verify tool."
exit
}

# Find the most recently downloaded tool
Write-Host "Finding the most recently downloaded verification tool."
$verifyProbePath = Join-Path $DownloadPath "$packageId.*"
$verifyPath = Get-ChildItem -Path $verifyProbePath -Directory `
| Sort-Object -Property LastWriteTime -Descending `
| Select-Object -First 1
$verify = Join-Path $verifyPath "tools\NuGet.VerifyMicrosoftPackage.exe"
Write-Host "Using verification tool: $verify"
Write-Host " "

# Execute the verification tool.
Write-Host "Executing the verify tool..."
Write-Host $fence
& $verify $args
Write-Host $fence
Write-Host " "

# Respond to the exit code.
if ($LASTEXITCODE -ne 0) {
Write-Error "The verify tool found some problems."
} else {
Write-Output "The verify tool succeeded."
}
91 changes: 0 additions & 91 deletions eng/common/post-build/post-build-utils.ps1

This file was deleted.

22 changes: 13 additions & 9 deletions eng/common/post-build/publish-using-darc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ param(
[Parameter(Mandatory=$true)][int] $BuildId,
[Parameter(Mandatory=$true)][int] $PublishingInfraVersion,
[Parameter(Mandatory=$true)][string] $AzdoToken,
[Parameter(Mandatory=$true)][string] $MaestroToken,
[Parameter(Mandatory=$false)][string] $MaestroApiEndPoint = 'https://maestro.dot.net',
[Parameter(Mandatory=$true)][string] $WaitPublishingFinish,
[Parameter(Mandatory=$false)][string] $ArtifactsPublishingAdditionalParameters,
[Parameter(Mandatory=$false)][string] $SymbolPublishingAdditionalParameters
)

try {
. $PSScriptRoot\post-build-utils.ps1
# `tools.ps1` checks $ci to perform some actions. Since the post-build
# scripts don't necessarily execute in the same agent that run the
# build.ps1/sh script this variable isn't automatically set.
$ci = $true
$disableConfigureToolsetImport = $true
. $PSScriptRoot\..\tools.ps1

$darc = Get-Darc

Expand All @@ -31,13 +35,13 @@ try {
}

& $darc add-build-to-channel `
--id $buildId `
--publishing-infra-version $PublishingInfraVersion `
--default-channels `
--source-branch main `
--azdev-pat $AzdoToken `
--bar-uri $MaestroApiEndPoint `
--password $MaestroToken `
--id $buildId `
--publishing-infra-version $PublishingInfraVersion `
--default-channels `
--source-branch main `
--azdev-pat "$AzdoToken" `
--bar-uri "$MaestroApiEndPoint" `
--ci `
@optionalParams

if ($LastExitCode -ne 0) {
Expand Down
10 changes: 9 additions & 1 deletion eng/common/post-build/sourcelink-validation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ param(
[Parameter(Mandatory=$true)][string] $SourcelinkCliVersion # Version of SourceLink CLI to use
)

. $PSScriptRoot\post-build-utils.ps1
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version 2.0

# `tools.ps1` checks $ci to perform some actions. Since the post-build
# scripts don't necessarily execute in the same agent that run the
# build.ps1/sh script this variable isn't automatically set.
$ci = $true
$disableConfigureToolsetImport = $true
. $PSScriptRoot\..\tools.ps1

# Cache/HashMap (File -> Exist flag) used to consult whether a file exist
# in the repository at a specific commit point. This is populated by inserting
Expand Down
2 changes: 0 additions & 2 deletions eng/common/post-build/symbols-validation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ function InstallDotnetSymbol {
}

try {
. $PSScriptRoot\post-build-utils.ps1

InstallDotnetSymbol

foreach ($Job in @(Get-Job)) {
Expand Down
Loading

0 comments on commit d0e6006

Please sign in to comment.