Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Windows Fleet for December 2023 Patch Tuesday #35640

Merged
merged 31 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c821615
Update PowerShell to 7.3.9.
BillyONeal Nov 14, 2023
06ddcb9
Add storage account key rolling.
BillyONeal Nov 14, 2023
6851a19
Update android image.
BillyONeal Nov 14, 2023
040240f
whitespace
BillyONeal Nov 14, 2023
d46ce31
words
BillyONeal Nov 14, 2023
e0903a8
Update pool.
BillyONeal Nov 14, 2023
1d3e97f
Try to un-break UWP.
BillyONeal Nov 15, 2023
89b2519
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal Nov 20, 2023
27a52e4
Merge remote-tracking branch 'origin/master' into patch-tuesday-novem…
BillyONeal Nov 21, 2023
33783b1
[baresip-libre] Update to 3.6.2 and workaround missing <threads.h>
BillyONeal Nov 21, 2023
1785478
[folly] Workaround _Eos declaration changing.
BillyONeal Nov 22, 2023
98caca6
[libtorch] ci.baseline.txt on x64-windows due to ICE
BillyONeal Nov 22, 2023
bf2ff3d
Merge remote-tracking branch 'origin/master' into patch-tuesday-novem…
BillyONeal Nov 22, 2023
4897564
[tinyorm] Force use of qt6.
BillyONeal Nov 22, 2023
a057ff4
Make buildtrees shorter in order to try to debug qtwebengine.
BillyONeal Nov 22, 2023
e9dfa73
Fix folly patch line endings.
BillyONeal Nov 22, 2023
f95cde0
Skip cpptrace due to compiler bug.
BillyONeal Nov 22, 2023
e9d1951
[jkqtplotter] Force qt6.
BillyONeal Nov 22, 2023
37d9d66
Merge remote-tracking branch 'origin/master' into patch-tuesday-decem…
BillyONeal Dec 12, 2023
bae6729
Update pwsh to 7.4.0.
BillyONeal Dec 12, 2023
7918110
Update pool.
BillyONeal Dec 13, 2023
fc27310
Merge remote-tracking branch 'origin/master' into patch-tuesday-decem…
BillyONeal Dec 13, 2023
7b800ea
Revert UWP changes no longer necessary now that https://developercomm…
BillyONeal Dec 13, 2023
bb01cf8
Merge remote-tracking branch 'origin/master' into patch-tuesday-decem…
BillyONeal Dec 14, 2023
d2f4a11
[libtorch] Skip ICE
BillyONeal Dec 15, 2023
7ba011f
Merge remote-tracking branch 'origin/master' into patch-tuesday-decem…
BillyONeal Dec 15, 2023
1db2afc
[qtwebengine] fix debug builds
Neumann-A Dec 15, 2023
c43d0fa
v db
Neumann-A Dec 15, 2023
94f382b
remove comment
Neumann-A Dec 15, 2023
6425987
v db
Neumann-A Dec 15, 2023
cc9cf95
Merge remote-tracking branch 'Neumann-A/qtwebengine-fix-debug-builds'…
BillyONeal Dec 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions ports/folly/disable-uninitialized-resize-on-new-stl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
diff --git a/folly/memory/UninitializedMemoryHacks.h b/folly/memory/UninitializedMemoryHacks.h
index bd31c88..9f640a8 100644
--- a/folly/memory/UninitializedMemoryHacks.h
+++ b/folly/memory/UninitializedMemoryHacks.h
@@ -101,6 +101,9 @@ template <
typename std::enable_if<std::is_trivially_destructible<T>::value>::type>
inline void resizeWithoutInitialization(
std::basic_string<T>& s, std::size_t n) {
+#if defined(_MSVC_STL_UPDATE) && _MSVC_STL_UPDATE >= 202206L
+ s.resize(n);
+#else
if (n <= s.size()) {
s.resize(n);
} else {
@@ -111,6 +114,7 @@ inline void resizeWithoutInitialization(
}
detail::unsafeStringSetLargerSize(s, n);
}
+#endif // STL workaround
}

/**
@@ -244,6 +248,8 @@ struct MakeUnsafeStringSetLargerSize {
#elif defined(_MSC_VER)
// MSVC

+#if defined(_MSVC_STL_UPDATE) && _MSVC_STL_UPDATE >= 202206L
+#else
template <typename Tag, typename T, typename A, A Ptr_Eos>
struct MakeUnsafeStringSetLargerSize {
friend void unsafeStringSetLargerSizeImpl(
@@ -262,7 +268,7 @@ struct MakeUnsafeStringSetLargerSize {
void (std::basic_string<TYPE>::*)(std::size_t), \
&std::basic_string<TYPE>::_Eos>; \
FOLLY_DECLARE_STRING_RESIZE_WITHOUT_INIT_IMPL(TYPE)
-
+#endif // workaround
#else
#warning \
"No implementation for resizeWithoutInitialization of std::basic_string"
1 change: 1 addition & 0 deletions ports/folly/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ vcpkg_from_github(
fix-windows-minmax.patch
fix-deps.patch
openssl.patch # from https://github.com/facebook/folly/pull/2016
disable-uninitialized-resize-on-new-stl.patch
)

file(REMOVE "${SOURCE_PATH}/CMake/FindFmt.cmake")
Expand Down
1 change: 1 addition & 0 deletions ports/folly/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "folly",
"version-string": "2023.10.02.00",
"port-version": 1,
"description": "An open-source C++ library developed and used at Facebook. The library is UNSTABLE on Windows",
"homepage": "https://github.com/facebook/folly",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
variables:
android-pool: 'PrAnd-1ES-Pool'
linux-pool: 'PrLin-1ES-Pool'
windows-pool: 'PrWin-2023-10-11'
windows-pool: 'PrWin-2023-12-12'
osx-pool: 'PrOsx-2023-09-11'
linux-docker-image: 'andcontainerregistry.azurecr.io/vcpkg-android:2023-12-05'

Expand Down
12 changes: 8 additions & 4 deletions scripts/azure-pipelines/generate-sas-tokens.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Param(
[Parameter(Mandatory=$true)]
[int]$KeyNumber
)

function Get-SasToken {
Param(
Expand Down Expand Up @@ -28,13 +32,13 @@ function Get-SasToken {

# Asset Cache:
# Read, Create, List
$assetSas = Get-SasToken -KeyNumber 1 -ResourceGroupName vcpkg-asset-cache -StorageAccountName vcpkgassetcacheeastasia -ContainerName cache -Permission rcl
$assetSas = Get-SasToken -KeyNumber $KeyNumber -ResourceGroupName vcpkg-asset-cache -StorageAccountName vcpkgassetcacheeastasia -ContainerName cache -Permission rcl

# Binary Cache:
# Read, Create, List, Write
$binarySas = Get-SasToken -KeyNumber 1 -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycache -ContainerName cache -Permission rclw
$binaryEASas = Get-SasToken -KeyNumber 1 -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycacheeastasia -ContainerName cache -Permission rclw
$binaryWUS3as = Get-SasToken -KeyNumber 1 -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycachewus3 -ContainerName cache -Permission rclw
$binarySas = Get-SasToken -KeyNumber $KeyNumber -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycache -ContainerName cache -Permission rclw
$binaryEASas = Get-SasToken -KeyNumber $KeyNumber -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycacheeastasia -ContainerName cache -Permission rclw
$binaryWUS3as = Get-SasToken -KeyNumber $KeyNumber -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycachewus3 -ContainerName cache -Permission rclw

$response = "Asset Cache SAS: Update`n" + `
"https://dev.azure.com/vcpkg/public/_library?itemType=VariableGroups&view=VariableGroupView&variableGroupId=6&path=vcpkg-asset-caching-credentials`n" + `
Expand Down
7 changes: 5 additions & 2 deletions scripts/azure-pipelines/patch-tuesday-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
* West US 2, 1 Replica
* West US 3, 1 Replica
* [ ] After the last build finishes on the previous pool, delete it in the Azure Devops *Organization* UI and its Resource Group. ( https://dev.azure.com/vcpkg/_settings/agentpools ?)
* [ ] Run `generate-sas-tokens.ps1` and update the relevant libraries on dev.azure.com/vcpkg and
devdiv.visualstudio.com.
* [ ] Run `generate-sas-tokens.ps1 -KeyNumber N`, where N is whether the month is even
(Jan = 1, Feb = 2, Mar = 1, and so on) and update the relevant libraries on
dev.azure.com/vcpkg and devdiv.visualstudio.com
* [ ] After builds using previous SAS tokens complete, run `roll-sas-tokens.ps1 -KeyNumber N` where
this N is the other key. (Jan = 2, Feb = 1, Mar = 2, and so on)
* [ ] Mint a new macOS base box. (See instructions in `scripts/azure-pipelines/osx/README.md`)
* [ ] Deploy the new base box to all hosts.
15 changes: 15 additions & 0 deletions scripts/azure-pipelines/roll-sas-tokens.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

Param(
[Parameter(Mandatory=$true)]
[int]$KeyNumber
)

$keyName = "key$KeyNumber"

# Asset Cache:
New-AzStorageAccountKey -ResourceGroupName vcpkg-asset-cache -StorageAccountName vcpkgassetcacheeastasia -KeyName $keyName

# Binary Cache:
New-AzStorageAccountKey -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycache -KeyName $keyName
New-AzStorageAccountKey -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycacheeastasia -KeyName $keyName
New-AzStorageAccountKey -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycachewus3 -KeyName $keyName
5 changes: 2 additions & 3 deletions scripts/azure-pipelines/test-modified-ports.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ if ((-Not [string]::IsNullOrWhiteSpace($ArchivesRoot))) {
$BinarySourceStub = "files,$ArchivesRoot"
}

$env:VCPKG_DOWNLOADS = Join-Path $WorkingRoot 'downloads'
$buildtreesRoot = Join-Path $WorkingRoot 'buildtrees'
$buildtreesRoot = Join-Path $WorkingRoot 'b'
$installRoot = Join-Path $WorkingRoot 'installed'
$packagesRoot = Join-Path $WorkingRoot 'packages'
$packagesRoot = Join-Path $WorkingRoot 'p'
Comment on lines -77 to +76
Copy link
Contributor

@Neumann-A Neumann-A Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun fact I already had a case where I had to do this ;)


$commonArgs = @(
"--x-buildtrees-root=$buildtreesRoot",
Expand Down
2 changes: 1 addition & 1 deletion scripts/azure-pipelines/windows/deploy-pwsh.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

# REPLACE WITH UTILITY-PREFIX.ps1

$PwshUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.3.8/PowerShell-7.3.8-win-x64.msi'
$PwshUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.4.0/PowerShell-7.4.0-win-x64.msi'
InstallMSI -Url $PwshUrl -Name 'PowerShell Core'
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2718,7 +2718,7 @@
},
"folly": {
"baseline": "2023.10.02.00",
"port-version": 0
"port-version": 1
},
"font-chef": {
"baseline": "1.1.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/folly.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5d4dff9c56b8324d2e6b7ca2ba6ad0b60845de56",
"version-string": "2023.10.02.00",
"port-version": 1
},
{
"git-tree": "a909b9222ac4ded463976431d65b6b24fa486bd3",
"version-string": "2023.10.02.00",
Expand Down
Loading