Update VMs for November Patch Tuesday (#21309)

* Apply VM updates for:

* https://github.com/microsoft/vcpkg/pull/13994
* https://github.com/microsoft/vcpkg/pull/20654
* https://github.com/microsoft/vcpkg/pull/20938

* Be more defensive in AzVmRunCommandWithRetries.

* Update Pools.
This commit is contained in:
Billy O'Neal 2021-11-10 14:07:00 -08:00 committed by GitHub
parent de88cc55c4
commit e46b12b825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 13 deletions

View File

@ -2,8 +2,8 @@
# SPDX-License-Identifier: MIT
#
variables:
windows-pool: 'PrWin-2021-10-13'
linux-pool: 'PrLin-2021-10-13'
windows-pool: 'PrWin-2021-11-10'
linux-pool: 'PrLin-2021-11-10'
osx-pool: 'PrOsx-2021-07-27'
jobs:

View File

@ -321,22 +321,26 @@ function Create-LockedDownNetwork {
}
function Invoke-AzVMRunCommandWithRetries {
try {
return Invoke-AzVMRunCommand @args
} catch {
for ($idx = 0; $idx -lt 5; $idx++) {
$result = $null
$success = $false
$attempt = 0
while ($success -eq $false) {
try {
++$attempt
Write-Host "Command attempt $attempt..."
$result = Invoke-AzVMRunCommand @args
$success = $true
} catch {
Write-Host "Running command failed. $_ Retrying after 10 seconds..."
Start-Sleep -Seconds 10
try {
return Invoke-AzVMRunCommand @args
} catch {
# ignore
if ($attempt -eq 5) {
Write-Error "Running command failed too many times. Giving up!"
throw $_
}
}
Write-Host "Running command failed too many times. Giving up!"
throw $_
}
return $result
}
Export-ModuleMember -Function Find-ResourceGroupName

View File

@ -48,6 +48,15 @@ APT_PACKAGES="$APT_PACKAGES libwayland-dev"
# Additionally required by all GN projects
APT_PACKAGES="$APT_PACKAGES python2 python-is-python3"
# Additionally required by libctl
APT_PACKAGES="$APT_PACKAGES guile-2.2-dev"
# Additionally required by gtk
APT_PACKAGES="$APT_PACKAGES libxdamage-dev"
# Additionally required by kf5kio
APT_PACKAGES="$APT_PACKAGES libmount-dev"
# Additionally required/installed by Azure DevOps Scale Set Agents
APT_PACKAGES="$APT_PACKAGES liblttng-ust0 libkrb5-3 zlib1g libicu66"