Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit ee03254

Browse files
authored
Merge pull request #380 from dotnet/darc-master-7deaf64f-6f01-48ab-be08-8ff44376cb2d
[master] Update dependencies from dotnet/arcade
2 parents 2a955fb + aeada49 commit ee03254

File tree

12 files changed

+48
-114
lines changed

12 files changed

+48
-114
lines changed

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<ProductDependencies>
44
</ProductDependencies>
55
<ToolsetDependencies>
6-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21105.12">
6+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21125.5">
77
<Uri>https://github.com/dotnet/arcade</Uri>
8-
<Sha>938b3e8b4edcd96ca0f0cbbae63c87b3f51f7afe</Sha>
8+
<Sha>15246f4af00a1cb2e580783d32ec2937b1878a64</Sha>
99
</Dependency>
10-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.21105.12">
10+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.21125.5">
1111
<Uri>https://github.com/dotnet/arcade</Uri>
12-
<Sha>938b3e8b4edcd96ca0f0cbbae63c87b3f51f7afe</Sha>
12+
<Sha>15246f4af00a1cb2e580783d32ec2937b1878a64</Sha>
1313
</Dependency>
1414
</ToolsetDependencies>
1515
</Dependencies>

eng/common/cross/build-rootfs.sh

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ usage()
66
{
77
echo "Usage: $0 [BuildArch] [CodeName] [lldbx.y] [--skipunmount] --rootfsdir <directory>]"
88
echo "BuildArch can be: arm(default), armel, arm64, x86"
9-
echo "CodeName - optional, Code name for Linux, can be: trusty, xenial(default), zesty, bionic, alpine. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
9+
echo "CodeName - optional, Code name for Linux, can be: trusty, xenial(default), zesty, bionic, alpine, alpine3.9 or alpine3.13. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
1010
echo " for FreeBSD can be: freebsd11 or freebsd12."
1111
echo " for illumos can be: illumos."
1212
echo "lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine and FReeBSD"
@@ -183,9 +183,20 @@ while :; do
183183
__UbuntuRepo=
184184
__Tizen=tizen
185185
;;
186-
alpine)
186+
alpine|alpine3.9)
187187
__CodeName=alpine
188188
__UbuntuRepo=
189+
__AlpineVersion=3.9
190+
;;
191+
alpine3.13)
192+
__CodeName=alpine
193+
__UbuntuRepo=
194+
__AlpineVersion=3.13
195+
# Alpine 3.13 has all the packages we need in the 3.13 repository
196+
__AlpinePackages+=$__AlpinePackagesEdgeCommunity
197+
__AlpinePackagesEdgeCommunity=
198+
__AlpinePackages+=$__AlpinePackagesEdgeMain
199+
__AlpinePackagesEdgeMain=
189200
;;
190201
freebsd11)
191202
__FreeBSDBase="11.3-RELEASE"
@@ -243,7 +254,6 @@ __RootfsDir="$( cd "$__RootfsDir" && pwd )"
243254

244255
if [[ "$__CodeName" == "alpine" ]]; then
245256
__ApkToolsVersion=2.9.1
246-
__AlpineVersion=3.9
247257
__ApkToolsDir=$(mktemp -d)
248258
wget https://github.com/alpinelinux/apk-tools/releases/download/v$__ApkToolsVersion/apk-tools-$__ApkToolsVersion-x86_64-linux.tar.gz -P $__ApkToolsDir
249259
tar -xf $__ApkToolsDir/apk-tools-$__ApkToolsVersion-x86_64-linux.tar.gz -C $__ApkToolsDir
@@ -256,15 +266,19 @@ if [[ "$__CodeName" == "alpine" ]]; then
256266
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
257267
add $__AlpinePackages
258268

259-
$__ApkToolsDir/apk-tools-$__ApkToolsVersion/apk \
260-
-X http://dl-cdn.alpinelinux.org/alpine/edge/main \
261-
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
262-
add $__AlpinePackagesEdgeMain
269+
if [[ -n "$__AlpinePackagesEdgeMain" ]]; then
270+
$__ApkToolsDir/apk-tools-$__ApkToolsVersion/apk \
271+
-X http://dl-cdn.alpinelinux.org/alpine/edge/main \
272+
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
273+
add $__AlpinePackagesEdgeMain
274+
fi
263275

264-
$__ApkToolsDir/apk-tools-$__ApkToolsVersion/apk \
265-
-X http://dl-cdn.alpinelinux.org/alpine/edge/community \
266-
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
267-
add $__AlpinePackagesEdgeCommunity
276+
if [[ -n "$__AlpinePackagesEdgeCommunity" ]]; then
277+
$__ApkToolsDir/apk-tools-$__ApkToolsVersion/apk \
278+
-X http://dl-cdn.alpinelinux.org/alpine/edge/community \
279+
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
280+
add $__AlpinePackagesEdgeCommunity
281+
fi
268282

269283
rm -r $__ApkToolsDir
270284
elif [[ "$__CodeName" == "freebsd" ]]; then

eng/common/performance/performance-setup.ps1

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,6 @@ $CommonSetupArguments="--channel master --queue $Queue --build-number $BuildNumb
7979
$SetupArguments = "--repository https://github.com/$Repository --branch $Branch --get-perf-hash --commit-sha $CommitSha $CommonSetupArguments"
8080

8181

82-
#This grabs the LKG version number of dotnet and passes it to our scripts
83-
$VersionJSON = Get-Content global.json | ConvertFrom-Json
84-
$DotNetVersion = $VersionJSON.tools.dotnet
85-
# TODO: Change this back to parsing when we have a good story for dealing with TFM changes or when the LKG in runtime gets updated to include net6.0
86-
# $SetupArguments = "--dotnet-versions $DotNetVersion $SetupArguments"
87-
$SetupArguments = "--dotnet-versions 6.0.100-alpha.1.20553.6 $SetupArguments"
88-
89-
9082
if ($RunFromPerformanceRepo) {
9183
$SetupArguments = "--perf-hash $CommitSha $CommonSetupArguments"
9284

eng/common/performance/performance-setup.sh

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ while (($# > 0)); do
8888
internal=true
8989
shift 1
9090
;;
91+
--alpine)
92+
alpine=true
93+
shift 1
94+
;;
9195
--llvm)
9296
llvm=true
9397
shift 1
@@ -143,6 +147,7 @@ while (($# > 0)); do
143147
echo " --monodotnet Pass the path to the mono dotnet for mono performance testing."
144148
echo " --wasm Path to the unpacked wasm runtime pack."
145149
echo " --latestdotnet --dotnet-versions will not be specified. --dotnet-versions defaults to LKG version in global.json "
150+
echo " --alpine Set for runs on Alpine"
146151
echo ""
147152
exit 0
148153
;;
@@ -198,12 +203,20 @@ if [[ "$internal" == true ]]; then
198203
else
199204
queue=Ubuntu.1804.Amd64.Tiger.Perf
200205
fi
206+
207+
if [[ "$alpine" = "true" ]]; then
208+
queue=alpine.amd64.tiger.perf
209+
fi
201210
else
202211
if [[ "$architecture" = "arm64" ]]; then
203212
queue=ubuntu.1804.armarch.open
204213
else
205214
queue=Ubuntu.1804.Amd64.Open
206215
fi
216+
217+
if [[ "$alpine" = "true" ]]; then
218+
queue=alpine.amd64.tiger.perf
219+
fi
207220
fi
208221

209222
if [[ "$mono_dotnet" != "" ]] && [[ "$monointerpreter" == "false" ]]; then
@@ -224,16 +237,6 @@ fi
224237
common_setup_arguments="--channel master --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
225238
setup_arguments="--repository https://github.com/$repository --branch $branch --get-perf-hash --commit-sha $commit_sha $common_setup_arguments"
226239

227-
228-
if [[ "$use_latest_dotnet" = false ]]; then
229-
# Get the tools section from the global.json.
230-
# This grabs the LKG version number of dotnet and passes it to our scripts
231-
dotnet_version=`cat global.json | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["tools"]["dotnet"])'`
232-
# TODO: Change this back to parsing when we have a good story for dealing with TFM changes or when the LKG in runtime gets updated to include net6.0
233-
# setup_arguments="--dotnet-versions $dotnet_version $setup_arguments"
234-
setup_arguments="--dotnet-versions 6.0.100-alpha.1.20553.6 $setup_arguments"
235-
fi
236-
237240
if [[ "$run_from_perf_repo" = true ]]; then
238241
payload_directory=
239242
workitem_directory=$source_directory

eng/common/sdl/execute-all-sdl-tools.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ try {
8787
& $(Join-Path $PSScriptRoot 'run-sdl.ps1') -GuardianCliLocation $guardianCliLocation -WorkingDirectory $workingDirectory -TargetDirectory $SourceDirectory -GdnFolder $gdnFolder -ToolsList $SourceToolsList -AzureDevOpsAccessToken $AzureDevOpsAccessToken -UpdateBaseline $UpdateBaseline -GuardianLoggerLevel $GuardianLoggerLevel -CrScanAdditionalRunConfigParams $CrScanAdditionalRunConfigParams -PoliCheckAdditionalRunConfigParams $PoliCheckAdditionalRunConfigParams
8888
}
8989

90-
if ($UpdateBaseline) {
91-
& (Join-Path $PSScriptRoot 'push-gdn.ps1') -Repository $RepoName -BranchName $BranchName -GdnFolder $GdnFolder -AzureDevOpsAccessToken $AzureDevOpsAccessToken -PushReason 'Update baseline'
92-
}
93-
9490
if ($TsaPublish) {
9591
if ($TsaBranchName -and $BuildNumber) {
9692
if (-not $TsaRepositoryName) {

eng/common/sdl/init-sdl.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ try {
4646
Write-PipelineTelemetryError -Force -Category 'Build' -Message "Guardian baseline failed with exit code $LASTEXITCODE."
4747
ExitWithExitCode $LASTEXITCODE
4848
}
49-
& $(Join-Path $PSScriptRoot 'push-gdn.ps1') -Repository $Repository -BranchName $BranchName -GdnFolder $gdnFolder -AzureDevOpsAccessToken $AzureDevOpsAccessToken -PushReason 'Initialize gdn folder'
5049
ExitWithExitCode 0
5150
}
5251
catch {

eng/common/sdl/push-gdn.ps1

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

eng/common/templates/job/source-index-stage1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
parameters:
22
runAsPublic: false
3-
sourceIndexPackageVersion: 1.0.0-beta5
3+
sourceIndexPackageVersion: 1.0.1-20210225.1
44
sourceIndexPackageSource: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
55
sourceIndexBuildCommand: powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "eng/common/build.ps1 -restore -build -binarylog -ci"
66
preSteps: []

eng/common/templates/post-build/post-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ stages:
128128
- job:
129129
displayName: Signing Validation
130130
dependsOn: setupMaestroVars
131-
condition: eq( ${{ parameters.enableSigningValidation }}, 'true')
131+
condition: and( eq( ${{ parameters.enableSigningValidation }}, 'true'), ne( variables['PostBuildSign'], 'true'))
132132
variables:
133133
- template: common-variables.yml
134134
- name: AzDOProjectName

eng/common/tools.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) {
169169
Set-Content -Path $sdkCacheFileTemp -Value $dotnetRoot
170170

171171
try {
172-
Rename-Item -Force -Path $sdkCacheFileTemp 'sdk.txt'
172+
Move-Item -Force $sdkCacheFileTemp (Join-Path $ToolsetDir 'sdk.txt')
173173
} catch {
174174
# Somebody beat us
175175
Remove-Item -Path $sdkCacheFileTemp

eng/common/tools.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,7 @@ function GetDotNetInstallScript {
273273
if command -v curl > /dev/null; then
274274
# first, try directly, if this fails we will retry with verbose logging
275275
curl "$install_script_url" -sSL --retry 10 --create-dirs -o "$install_script" || {
276-
if command -v openssl &> /dev/null
277-
then
276+
if command -v openssl &> /dev/null; then
278277
echo "Curl failed; dumping some information about dotnet.microsoft.com for later investigation"
279278
echo | openssl s_client -showcerts -servername dotnet.microsoft.com -connect dotnet.microsoft.com:443
280279
fi

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"rollForward": "major"
1414
},
1515
"msbuild-sdks": {
16-
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21105.12",
17-
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.21105.12"
16+
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21125.5",
17+
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.21125.5"
1818
}
1919
}

0 commit comments

Comments
 (0)