Repository navigation
ci: pin Windows runner to windows-2022 (VS2022) to unblock Windows CI - #9506
Conversation
The windows-2025 GitHub runner image moved from Visual Studio 2022 to
Visual Studio 2026 (VS18), which has no VS 2022 installed. The contrib
build step hardcoded `-G"Visual Studio 17 2022"`, so CMake configure
fails instantly ("could not find any instance of Visual Studio") on the
new image, breaking the Windows build-and-test job on every PR.
Drop the explicit generator so CMake uses the default (newest installed)
Visual Studio, which tracks whatever the runner image ships. -Ax64 still
selects the x64 platform; CMAKE_GENERATOR=Ninja is scoped to the
build-and-test step, not this contrib step, so the default remains a VS
generator here.
https://claude.ai/code/session_018EZ5DVWpC74wbXSo9utFBC
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-14 11:13:10.103633211 +0000
+++ AUTHORS.new 2026-06-14 11:13:14.878638333 +0000
@@ -22,8 +22,9 @@
- Chirag Dave
- Chris Bauer
- Chris Bielow
- - Christie Mathews
- Christian Ehrlich
+ - Christie Mathews
+ - Claude
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Windows runner in the ChangesWindows CI Runner Pin
Suggested Reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Dropping the VS2022 generator pin let CMake correctly select the
installed Visual Studio 2026 ("Building for: Visual Studio 18 2026"),
but the contrib's own CMakeLists guards the generator to VS {14..17}
and aborts on VS 2026 (18):
Please use 'Visual Studio ??' (??={14, 15, 16, 17}) as Generator ...
you can override this with -DOVERRIDE_GENERATOR=On.
Pass the contrib's documented OVERRIDE_GENERATOR=On escape hatch. It is
safe here because the chosen generator (VS 2026) matches the MSVC
toolchain used for the build, so the guard's generator/toolchain-mismatch
concern does not apply.
https://claude.ai/code/session_018EZ5DVWpC74wbXSo9utFBC
The windows-2025 GitHub runner image moved from Visual Studio 2022 to
Visual Studio 2026 (VS18). The contrib build's CMake generator guard
accepts only VS {14..17} and rejects VS2026 even with OVERRIDE_GENERATOR
(it errors on the override path too), so the Windows build-and-test job
fails at contrib configure on every PR. The whole Windows setup also
assumes VS2022 (Qt is pinned to win64_msvc2022_64).
Pin the Windows matrix runner to windows-2022 (which still ships VS2022)
to keep the toolchain consistent and unblock CI. This also reverts the
earlier generator-unpin attempts in the dependencies action -- the
VS2022 generator pin is correct again on this runner. Revisit once
contrib supports VS2026.
https://claude.ai/code/session_018EZ5DVWpC74wbXSo9utFBC
Problem
The Windows
build-and-testjob fails on every PR at the CMake configure step:GitHub's
windows-2025runner image rolled from Visual Studio 2022 to Visual Studio 2026 (VS18), and VS2022 is no longer installed.Why not just update the generator
I tried that first (see this branch's earlier commits, now reverted):
-G"Visual Studio 17 2022"pin → CMake correctly picks VS2026 (Building for: Visual Studio 18 2026), but the contrib build's ownCMakeLists.txtallowlists only VS{14..17}and aborts on VS2026.-DOVERRIDE_GENERATOR=On→ the contrib's override path also errors (message(SEND_ERROR "...proceed with caution")), so configure still fails.That guard lives in the separate
OpenMS/contribsubmodule, and the whole Windows setup assumes VS2022 anyway (Qt is pinned towin64_msvc2022_64). So anaction.yml-only fix can't work.Fix
Pin the Windows matrix runner to
windows-2022(which still ships VS2022), keeping the toolchain self-consistent (VS2022 generator + msvc2022 Qt). Net change is one line inopenms_ci_matrix_full.yml; the dependencies action is reverted to its original VS2022 pin.Revisit / proper follow-up: move back to
windows-2025onceOpenMS/contribaccepts VS2026 (update its generator guard) and thewin64_msvc2022_64Qt arch is bumped to match.Verification
windows-2022is an older image and may itself be near retirement; if it's no longer offered, this approach needs rethinking (the run will say so quickly).https://claude.ai/code/session_018EZ5DVWpC74wbXSo9utFBC
Summary by CodeRabbit
Release Notes