Repository navigation
Revert Windows VS 2026 (msvc145) toolchain migration - #18156
Merged
Merged
Conversation
Restore the Windows build configuration to e4e2b13, the last commit with a green Windows build, backing out the VS 2026 / MSVC 14.5 toolchain migration that landed alongside the setlocale fix in #18141 (the #17986 work). The migration bumped the Windows Docker base image to windowsservercore-ltsc2022, but the Jenkins Windows agents run Windows Server 2019 (10.0.17763). A 2022-based (10.0.20348) container cannot run there under process isolation, so the image rebuild fails at the FROM step, the jenkins/ide:windows-x86_64-pacific-dogwood tag in ECR stays at the pre-migration image, and downstream builds pull that stale VS 2022 image -- which windows-checks.cmake then rejects for reporting toolset 143. main has been red on Windows since the migration merged. Only the toolchain hunks are reverted. The #18139 setlocale fix and its test fixes from #18141 are preserved, as are the unrelated e2e cache changes from #18151. The migration can reland once the Windows CI fleet is upgraded to Server 2022.
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 |
kevinushey
added a commit
that referenced
this pull request
Jul 11, 2026
…2022 Jenkins agents (#18190) * Revert "Revert Windows VS 2026 (msvc145) toolchain migration (#18156)" This reverts commit 724a7ca. * target windows2022 Jenkins agents 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. * address code review feedback 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). * harden Jenkins pipeline against toolchain/label drift 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restores the Windows build configuration to
e4e2b13-- the last commit with a green Windows build -- backing out the VS 2026 / MSVC 14.5 (msvc145) toolchain migration that landed alongside the setlocale fix in #18141 (the #17986 work). Only the toolchain hunks are reverted: the #18139 setlocale fix and its test fixes are preserved, as are the unrelated e2e cache changes from #18151.Why
#18141 bumped
docker/jenkins/Dockerfile.windowstowindowsservercore-ltsc2022, but the Jenkins Windows agents run Windows Server 2019 (build 10.0.17763). A 2022-based (10.0.20348) container cannot run there under process isolation, so thejenkins/ide:windows-x86_64-pacific-dogwoodimage rebuild fails at theFROMstep. The ECR tag stayed at the pre-migration image, and every later Windows build pulled that stale VS 2022 image -- which the newwindows-checks.cmakethen rejected for reporting toolset 143.mainhas been red on Windows since the migration merged.What's in the diff
cmake/windows-checks.cmakeand itsCMakeLists.txtinclude.src/cpp/CMakeLists.txtandsrc/cpp/ext/CMakeLists.txt.docker/jenkins/Dockerfile.windows(ltsc2019 / VS 2022) andjenkins/Jenkinsfile.windows(VS 2022 VsDevCmd path).dependencies/windows/*installers,INSTALL, and both Windows GitHub Actions workflows to their pre-migration state.Because this touches
docker/, merging re-triggers theRebuild Docker Imagesstage -- now buildable on the Server 2019 agent -- refreshing the ECR image and unblocking downstream builds.Reland
The migration can reland once the Windows CI fleet (both the image-builder and the runner agents) is upgraded to Windows Server 2022.