Fix Windows CI: run build-windows-vs2022 on windows-2022 runner#14872
Fix Windows CI: run build-windows-vs2022 on windows-2022 runner#14872mszeszko-meta wants to merge 1 commit into
Conversation
Summary: ### Motivation The `build-windows-vs2022` job in `pr-jobs.yml` was running on the `windows-8-core` runner, whose image no longer provides a Visual Studio 2022 installation. The job sets `CMAKE_GENERATOR: Visual Studio 17 2022`, so CMake's generator probes for an installed VS 2022 instance and aborts the Snappy dependency configure with: ``` CMake Error: Generator Visual Studio 17 2022 could not find any instance of Visual Studio. ``` The failure surfaces during the thirdparty Snappy build, before any RocksDB code is compiled, so it blocks the entire Windows PR signal. ### Changes Switch the `build-windows-vs2022` job from `runs-on: windows-8-core` to `runs-on: windows-2022`. The GitHub-hosted `windows-2022` image ships VS 2022 with the Desktop C++ workload preinstalled, so the `Visual Studio 17 2022` generator resolves out of the box and the `CMAKE_GENERATOR` value stays consistent with the runner's installed toolchain. This also brings `pr-jobs.yml` in line with `nightly.yml`, whose `build-windows-vs2022-avx2` job already runs on `windows-2022`. NOTE: `windows-2022` is the standard 2-core hosted runner (vs. the larger `windows-8-core` pool), so Windows builds will be somewhat slower; ccache keeps the compile cost mostly in cache hits. Differential Revision: D109229258
|
@mszeszko-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D109229258. |
✅ clang-tidy: No findings on changed linesCompleted in 0.0s. |
🟡 Codex Code ReviewAuto-triggered after CI passed — reviewing commit 641e166 ❌ Codex review failed before producing findings. ℹ️ About this responseGenerated by Codex CLI. Limitations:
Commands:
|
✅ Claude Code ReviewAuto-triggered after CI passed — reviewing commit 641e166 SummaryThis is a correct, minimal CI fix. The change switches the No high-severity findings. Full review (click to expand)Findings🔴 HIGHNone. 🟡 MEDIUMNone. 🟢 LOW / NITL1. Performance regression from smaller runner —
|
|
This pull request has been merged in 2d13302. |
Summary:
Motivation
The
build-windows-vs2022job inpr-jobs.ymlwas running on thewindows-8-corerunner, whose image no longer provides a Visual Studio 2022 installation. The job setsCMAKE_GENERATOR: Visual Studio 17 2022, so CMake's generator probes for an installed VS 2022 instance and aborts the Snappy dependency configure with:The failure surfaces during the thirdparty Snappy build, before any RocksDB code is compiled, so it blocks the entire Windows PR signal.
Changes
Switch the
build-windows-vs2022job fromruns-on: windows-8-coretoruns-on: windows-2022. The GitHub-hostedwindows-2022image ships VS 2022 with the Desktop C++ workload preinstalled, so theVisual Studio 17 2022generator resolves out of the box and theCMAKE_GENERATORvalue stays consistent with the runner's installed toolchain. This also bringspr-jobs.ymlin line withnightly.yml, whosebuild-windows-vs2022-avx2job already runs onwindows-2022.Note
windows-2022is the standard 2-core hosted runner (vs. the largerwindows-8-corepool), so Windows builds will be somewhat slower; ccache keeps the compile cost mostly in cache hits.Differential Revision: D109229258