Skip to content

Commit fece470

Browse files
[master] Update Arcade dependency (#16716)
1 parent 0e40856 commit fece470

File tree

150 files changed

+3669
-3437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+3669
-3437
lines changed

eng/Version.Details.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,6 @@
293293
<Uri>https://github.com/aspnet/Extensions</Uri>
294294
<Sha>7642beec82008e7d0e719220e1cb2c3f5277276c</Sha>
295295
</Dependency>
296-
<Dependency Name="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" CoherentParentDependency="Microsoft.NETCore.App.Runtime.win-x64">
297-
<Uri>https://github.com/dotnet/corefx</Uri>
298-
<Sha>4ac4c0367003fe3973a3648eb0715ddb0e3bbcea</Sha>
299-
</Dependency>
300296
<Dependency Name="Microsoft.CSharp" Version="5.0.0-alpha1.19520.7" CoherentParentDependency="Microsoft.NETCore.App.Runtime.win-x64">
301297
<Uri>https://github.com/dotnet/corefx</Uri>
302298
<Sha>03453d9aae8e5d18e571699c5d2229b1ab5f4b9d</Sha>
@@ -401,6 +397,10 @@
401397
<Uri>https://github.com/dotnet/core-setup</Uri>
402398
<Sha>a3a9cb66e59909d03269f7c0024f10fe07f0a2d5</Sha>
403399
</Dependency>
400+
<Dependency Name="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" Pinned="true">
401+
<Uri>https://github.com/dotnet/corefx</Uri>
402+
<Sha>4ac4c0367003fe3973a3648eb0715ddb0e3bbcea</Sha>
403+
</Dependency>
404404
</ProductDependencies>
405405
<ToolsetDependencies>
406406
<!-- Listed explicitly to workaround https://github.com/dotnet/cli/issues/10528 -->
@@ -412,17 +412,17 @@
412412
<Uri>https://github.com/aspnet/Extensions</Uri>
413413
<Sha>7642beec82008e7d0e719220e1cb2c3f5277276c</Sha>
414414
</Dependency>
415-
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19517.3">
415+
<Dependency Name="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.19531.8">
416416
<Uri>https://github.com/dotnet/arcade</Uri>
417-
<Sha>a42a124635ce1a218309ecb31ec59d559cacb886</Sha>
417+
<Sha>cd7480090dc1c2f2ec7b6090faac7b634ef0b11b</Sha>
418418
</Dependency>
419-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19517.3">
419+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.19531.8">
420420
<Uri>https://github.com/dotnet/arcade</Uri>
421-
<Sha>a42a124635ce1a218309ecb31ec59d559cacb886</Sha>
421+
<Sha>cd7480090dc1c2f2ec7b6090faac7b634ef0b11b</Sha>
422422
</Dependency>
423-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19517.3">
423+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.19531.8">
424424
<Uri>https://github.com/dotnet/arcade</Uri>
425-
<Sha>a42a124635ce1a218309ecb31ec59d559cacb886</Sha>
425+
<Sha>cd7480090dc1c2f2ec7b6090faac7b634ef0b11b</Sha>
426426
</Dependency>
427427
<Dependency Name="Microsoft.AspNetCore.Testing" Version="5.0.0-alpha1.19530.2" CoherentParentDependency="Microsoft.EntityFrameworkCore">
428428
<Uri>https://github.com/aspnet/Extensions</Uri>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
-->
6161
<PropertyGroup Label="Automated">
6262
<!-- Packages from dotnet/arcade -->
63-
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19517.3</MicrosoftDotNetGenAPIPackageVersion>
63+
<MicrosoftDotNetGenAPIPackageVersion>5.0.0-beta.19531.8</MicrosoftDotNetGenAPIPackageVersion>
6464
<!-- Packages from dotnet/roslyn -->
6565
<MicrosoftNetCompilersToolsetPackageVersion>3.4.0-beta1-19456-03</MicrosoftNetCompilersToolsetPackageVersion>
6666
<!-- Packages from dotnet/core-setup -->

eng/common/PublishToSymbolServers.proj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
<PropertyGroup>
3838
<DotNetSymbolExpirationInDays Condition="'$(DotNetSymbolExpirationInDays)' == ''">3650</DotNetSymbolExpirationInDays>
3939
<PublishToSymbolServer>true</PublishToSymbolServer>
40+
<PublishToSymWeb Condition="'$(PublishToSymWeb)' == ''">true</PublishToSymWeb>
41+
<PublishToMSDL Condition="'$(PublishToMSDL)' == ''">true</PublishToMSDL>
4042
<PublishToSymbolServer Condition="'@(FilesToPublishToSymbolServer)' == '' and '@(PackagesToPublishToSymbolServer)' == ''">false</PublishToSymbolServer>
4143
</PropertyGroup>
4244

@@ -56,7 +58,7 @@
5658
DryRun="false"
5759
ConvertPortablePdbsToWindowsPdbs="false"
5860
PdbConversionTreatAsWarning=""
59-
Condition="$(PublishToSymbolServer)"/>
61+
Condition="$(PublishToSymbolServer) and $(PublishToMSDL)"/>
6062

6163
<!--
6264
Symbol Uploader: SymWeb
@@ -73,7 +75,7 @@
7375
DryRun="false"
7476
ConvertPortablePdbsToWindowsPdbs="false"
7577
PdbConversionTreatAsWarning=""
76-
Condition="$(PublishToSymbolServer)"/>
78+
Condition="$(PublishToSymbolServer) and $(PublishToSymWeb)"/>
7779
</Target>
7880

7981
<ItemGroup>

eng/common/build.ps1

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Param(
1818
[switch] $sign,
1919
[switch] $pack,
2020
[switch] $publish,
21+
[switch] $clean,
2122
[switch][Alias('bl')]$binaryLog,
2223
[switch] $ci,
2324
[switch] $prepareMachine,
@@ -48,6 +49,7 @@ function Print-Usage() {
4849
Write-Host " -pack Package build outputs into NuGet packages and Willow components"
4950
Write-Host " -sign Sign build outputs"
5051
Write-Host " -publish Publish artifacts (e.g. symbols)"
52+
Write-Host " -clean Clean the solution"
5153
Write-Host ""
5254

5355
Write-Host "Advanced settings:"
@@ -112,6 +114,14 @@ function Build {
112114
@properties
113115
}
114116

117+
if ($clean) {
118+
if(Test-Path $ArtifactsDir) {
119+
Remove-Item -Recurse -Force $ArtifactsDir
120+
Write-Host "Artifacts directory deleted."
121+
}
122+
exit 0
123+
}
124+
115125
try {
116126
if ($help -or (($null -ne $properties) -and ($properties.Contains("/help") -or $properties.Contains("/?")))) {
117127
Print-Usage
@@ -123,14 +133,7 @@ try {
123133
$nodeReuse = $false
124134
}
125135

126-
# Import custom tools configuration, if present in the repo.
127-
# Note: Import in global scope so that the script set top-level variables without qualification.
128-
$configureToolsetScript = Join-Path $EngRoot "configure-toolset.ps1"
129-
if (Test-Path $configureToolsetScript) {
130-
. $configureToolsetScript
131-
}
132-
133-
if (($restore) -and ($null -eq $env:DisableNativeToolsetInstalls)) {
136+
if ($restore) {
134137
InitializeNativeTools
135138
}
136139

eng/common/build.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ usage()
2626
echo " --pack Package build outputs into NuGet packages and Willow components"
2727
echo " --sign Sign build outputs"
2828
echo " --publish Publish artifacts (e.g. symbols)"
29+
echo " --clean Clean the solution"
2930
echo ""
3031

3132
echo "Advanced settings:"
@@ -62,6 +63,7 @@ publish=false
6263
sign=false
6364
public=false
6465
ci=false
66+
clean=false
6567

6668
warn_as_error=true
6769
node_reuse=true
@@ -82,6 +84,9 @@ while [[ $# > 0 ]]; do
8284
usage
8385
exit 0
8486
;;
87+
-clean)
88+
clean=true
89+
;;
8590
-configuration|-c)
8691
configuration=$2
8792
shift
@@ -196,20 +201,15 @@ function Build {
196201
ExitWithExitCode 0
197202
}
198203

199-
# Import custom tools configuration, if present in the repo.
200-
configure_toolset_script="$eng_root/configure-toolset.sh"
201-
if [[ -a "$configure_toolset_script" ]]; then
202-
. "$configure_toolset_script"
203-
fi
204-
205-
# TODO: https://github.com/dotnet/arcade/issues/1468
206-
# Temporary workaround to avoid breaking change.
207-
# Remove once repos are updated.
208-
if [[ -n "${useInstalledDotNetCli:-}" ]]; then
209-
use_installed_dotnet_cli="$useInstalledDotNetCli"
204+
if [[ "$clean" == true ]]; then
205+
if [ -d "$artifacts_dir" ]; then
206+
rm -rf $artifacts_dir
207+
echo "Artifacts directory deleted."
208+
fi
209+
exit 0
210210
fi
211211

212-
if [[ "$restore" == true && -z ${DisableNativeToolsetInstalls:-} ]]; then
212+
if [[ "$restore" == true ]]; then
213213
InitializeNativeTools
214214
fi
215215

eng/common/darc-init.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
param (
22
$darcVersion = $null,
33
$versionEndpoint = "https://maestro-prod.westus2.cloudapp.azure.com/api/assets/darc-version?api-version=2019-01-16",
4-
$verbosity = "m"
4+
$verbosity = "m",
5+
$toolpath = $null
56
)
67

78
. $PSScriptRoot\tools.ps1
@@ -23,11 +24,15 @@ function InstallDarcCli ($darcVersion) {
2324
$darcVersion = $(Invoke-WebRequest -Uri $versionEndpoint -UseBasicParsing).Content
2425
}
2526

26-
$arcadeServicesSource = 'https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json'
27+
$arcadeServicesSource = 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
2728

2829
Write-Host "Installing Darc CLI version $darcVersion..."
2930
Write-Host "You may need to restart your command window if this is the first dotnet tool you have installed."
30-
& "$dotnet" tool install $darcCliPackageName --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g
31+
if (-not $toolpath) {
32+
& "$dotnet" tool install $darcCliPackageName --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g
33+
}else {
34+
& "$dotnet" tool install $darcCliPackageName --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity --tool-path "$toolpath"
35+
}
3136
}
3237

3338
InstallDarcCli $darcVersion

eng/common/darc-init.sh

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ while [[ $# > 0 ]]; do
2020
verbosity=$2
2121
shift
2222
;;
23+
--toolpath)
24+
toolpath=$2
25+
shift
26+
;;
2327
*)
2428
echo "Invalid argument: $1"
2529
usage
@@ -52,17 +56,27 @@ function InstallDarcCli {
5256
InitializeDotNetCli
5357
local dotnet_root=$_InitializeDotNetCli
5458

55-
local uninstall_command=`$dotnet_root/dotnet tool uninstall $darc_cli_package_name -g`
56-
local tool_list=$($dotnet_root/dotnet tool list -g)
57-
if [[ $tool_list = *$darc_cli_package_name* ]]; then
58-
echo $($dotnet_root/dotnet tool uninstall $darc_cli_package_name -g)
59+
if [ -z "$toolpath" ]; then
60+
local tool_list=$($dotnet_root/dotnet tool list -g)
61+
if [[ $tool_list = *$darc_cli_package_name* ]]; then
62+
echo $($dotnet_root/dotnet tool uninstall $darc_cli_package_name -g)
63+
fi
64+
else
65+
local tool_list=$($dotnet_root/dotnet tool list --tool-path "$toolpath")
66+
if [[ $tool_list = *$darc_cli_package_name* ]]; then
67+
echo $($dotnet_root/dotnet tool uninstall $darc_cli_package_name --tool-path "$toolpath")
68+
fi
5969
fi
6070

61-
local arcadeServicesSource="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json"
71+
local arcadeServicesSource="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"
6272

6373
echo "Installing Darc CLI version $darcVersion..."
6474
echo "You may need to restart your command shell if this is the first dotnet tool you have installed."
65-
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g)
75+
if [ -z "$toolpath" ]; then
76+
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g)
77+
else
78+
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity --tool-path "$toolpath")
79+
fi
6680
}
6781

6882
InstallDarcCli

eng/common/dotnet-install.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ Param(
33
[string] $verbosity = "minimal",
44
[string] $architecture = "",
55
[string] $version = "Latest",
6-
[string] $runtime = "dotnet"
6+
[string] $runtime = "dotnet",
7+
[string] $RuntimeSourceFeed = "",
8+
[string] $RuntimeSourceFeedKey = ""
79
)
810

911
. $PSScriptRoot\tools.ps1
@@ -15,7 +17,7 @@ try {
1517
if ($architecture -and $architecture.Trim() -eq "x86") {
1618
$installdir = Join-Path $installdir "x86"
1719
}
18-
InstallDotNet $installdir $version $architecture $runtime $true
20+
InstallDotNet $installdir $version $architecture $runtime $true -RuntimeSourceFeed $RuntimeSourceFeed -RuntimeSourceFeedKey $RuntimeSourceFeedKey
1921
}
2022
catch {
2123
Write-Host $_

eng/common/dotnet-install.sh

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
1414
version='Latest'
1515
architecture=''
1616
runtime='dotnet'
17+
runtimeSourceFeed=''
18+
runtimeSourceFeedKey=''
1719
while [[ $# > 0 ]]; do
1820
opt="$(echo "$1" | awk '{print tolower($0)}')"
1921
case "$opt" in
@@ -29,18 +31,55 @@ while [[ $# > 0 ]]; do
2931
shift
3032
runtime="$1"
3133
;;
34+
-runtimesourcefeed)
35+
shift
36+
runtimeSourceFeed="$1"
37+
;;
38+
-runtimesourcefeedkey)
39+
shift
40+
runtimeSourceFeedKey="$1"
41+
;;
3242
*)
3343
echo "Invalid argument: $1"
34-
usage
3544
exit 1
3645
;;
3746
esac
3847
shift
3948
done
4049

50+
# Use uname to determine what the CPU is.
51+
cpuname=$(uname -p)
52+
# Some Linux platforms report unknown for platform, but the arch for machine.
53+
if [[ "$cpuname" == "unknown" ]]; then
54+
cpuname=$(uname -m)
55+
fi
56+
57+
case $cpuname in
58+
aarch64)
59+
buildarch=arm64
60+
;;
61+
amd64|x86_64)
62+
buildarch=x64
63+
;;
64+
armv7l)
65+
buildarch=arm
66+
;;
67+
i686)
68+
buildarch=x86
69+
;;
70+
*)
71+
echo "Unknown CPU $cpuname detected, treating it as x64"
72+
buildarch=x64
73+
;;
74+
esac
75+
4176
. "$scriptroot/tools.sh"
4277
dotnetRoot="$repo_root/.dotnet"
43-
InstallDotNet $dotnetRoot $version "$architecture" $runtime true || {
78+
if [[ $architecture != "" ]] && [[ $architecture != $buildarch ]]; then
79+
dotnetRoot="$dotnetRoot/$architecture"
80+
fi
81+
82+
InstallDotNet $dotnetRoot $version "$architecture" $runtime true $runtimeSourceFeed $runtimeSourceFeedKey || {
4483
local exit_code=$?
4584
echo "dotnet-install.sh failed (exit code '$exit_code')." >&2
4685
ExitWithExitCode $exit_code

eng/common/init-tools-native.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ try {
133133
if (Test-Path $InstallBin) {
134134
Write-Host "Native tools are available from" (Convert-Path -Path $InstallBin)
135135
Write-Host "##vso[task.prependpath]$(Convert-Path -Path $InstallBin)"
136+
return $InstallBin
136137
}
137138
else {
138139
Write-Error "Native tools install directory does not exist, installation failed"

eng/common/post-build/post-build-utils.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Set-StrictMode -Version 2.0
88
# scripts don't necessarily execute in the same agent that run the
99
# build.ps1/sh script this variable isn't automatically set.
1010
$ci = $true
11+
$disableConfigureToolsetImport = "true"
1112
. $PSScriptRoot\..\tools.ps1
1213

1314
function Create-MaestroApiRequestHeaders([string]$ContentType = "application/json") {

eng/common/post-build/setup-maestro-vars.ps1

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)