Skip to content

Revert Windows VS 2026 (msvc145) toolchain migration - #18156

Merged
gtritchie merged 1 commit into
mainfrom
bugfix/revert-windows-vs2026-toolchain
Jul 6, 2026
Merged

gtritchie merged 1 commit into
mainfrom
bugfix/revert-windows-vs2026-toolchain

Conversation

@gtritchie

Copy link
Copy Markdown
Member

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.windows to windowsservercore-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 the jenkins/ide:windows-x86_64-pacific-dogwood image rebuild fails at the FROM step. The ECR tag stayed at the pre-migration image, and every later Windows build pulled that stale VS 2022 image -- which the new windows-checks.cmake then rejected for reporting toolset 143. main has been red on Windows since the migration merged.

What's in the diff

  • Delete cmake/windows-checks.cmake and its CMakeLists.txt include.
  • Restore the msvc143 boost/SOCI prebuilt handling in src/cpp/CMakeLists.txt and src/cpp/ext/CMakeLists.txt.
  • Restore docker/jenkins/Dockerfile.windows (ltsc2019 / VS 2022) and jenkins/Jenkinsfile.windows (VS 2022 VsDevCmd path).
  • Restore the dependencies/windows/* installers, INSTALL, and both Windows GitHub Actions workflows to their pre-migration state.

Because this touches docker/, merging re-triggers the Rebuild Docker Images stage -- 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.

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.
@gtritchie gtritchie added this to the 2026.07 (Pacific Dogwood) milestone Jul 6, 2026
@gtritchie
gtritchie requested a review from kevinushey July 6, 2026 18:21
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
1805 0 54 2
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ desktop-linux 456 0 10 0
✅ desktop-macos 455 0 10 1
✅ desktop-windows 456 0 12 0
✅ server-linux 438 0 22 1
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit 83685a9e1ee8ba8254b780c4b51542cc6100bdf8 - Run #99

@gtritchie
gtritchie merged commit 724a7ca into main Jul 6, 2026
24 checks passed
@gtritchie
gtritchie deleted the bugfix/revert-windows-vs2026-toolchain branch July 6, 2026 20:16
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant