Repository navigation
Re-land Windows VS 2026 (msvc145) toolchain migration; target windows2022 Jenkins agents - #18190
Conversation
This reverts commit 724a7ca.
The Windows Jenkins agents have been upgraded to Windows Server 2022 and are now labeled windows2022 / x86_64 / amd64. Update the Windows build pipelines to select agents via the new windows2022 label.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
Code review findingsActionable items from an automated multi-agent review. Scope focused on the genuinely new content (the two Jenkinsfiles and the Important
Suggestions
|
Fix the Build Windows dispatch guard in Jenkinsfile.build to compare OS_FILTER directly (labelForOS[windows] is now windows2022, so the old comparison silently skipped the stage for targeted Windows builds). Hardcode MSVC_TOOLSET_VERSION=145 in install-dependencies.cmd since the environment override was a dead path (install-soci.R and windows-checks.cmake require 145). Fix a stale comment in os-build-dependencies-windows.yml to reference the actual vcvarsall.bat consumer, and correct the vc_redist README redist paths (x86 folder, BuildTools under Program Files).
Address findings from a build-pipeline review of the VS 2026 re-land. Include the MSVC toolset in the Windows docker image tag (getDockerTag) so a toolchain upgrade mints a new tag and stale images from a previous toolchain fail the pull loudly instead of being silently delivered to builds. Centralize the windows2022 agent label in a new utils.getAgentLabelForOS() helper and restore labelForOS (now familyForOS) to a pure OS-family map so all three build-dispatch guards share one idiom again. Enumerate all MSVC toolset pin sites in windows-checks.cmake, and deduplicate the vswhere MSVC setup step shared by the two Windows GitHub workflows into a composite action.
Re-review: findings addressedConfirmed against
The additional hardening in
No further changes needed from my side. |
Re-lands the Windows VS 2026 (MSVC 14.5) toolchain migration, and points the Windows build pipelines at the upgraded Jenkins agents.
The migration was backed out in 724a7ca (#18156) because the Jenkins Windows agents were still running Windows Server 2019, which cannot run the
windowsservercore-ltsc2022-based build image under process isolation. The agents have since been upgraded to Windows Server 2022, so the migration can now re-land.This PR:
windowsservercore-ltsc2022, VS 2026 Build Tools,windows-checks.cmake, msvc145 Boost/SOCI prebuilts, and the associated GHA workflow changes). The one conflict was independencies/windows/install-dependencies.cmd, where theMSVC_TOOLSET_VERSIONdefault is restored to 145 while keeping the environment-override support and theNSISMULTIUSER_VERSIONpin that landed after the revert.jenkins/Jenkinsfile.windowsandjenkins/Jenkinsfile.buildto target the upgraded agents (labeledwindows2022 x86_64 amd64) viawindows2022 && x86_64, instead of the oldwindowslabel.Addresses #17986.