Skip to content

ci: pin Windows runner to windows-2022 (VS2022) to unblock Windows CI - #9506

Merged
timosachsenberg merged 3 commits into
developfrom
claude/fix-windows-contrib-vs-generator
Jun 14, 2026
Merged

timosachsenberg merged 3 commits into
developfrom
claude/fix-windows-contrib-vs-generator

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The Windows build-and-test job fails on every PR at the CMake configure step:

CMake Error at CMakeLists.txt:342 (message):
  Generator  Visual Studio 17 2022  could not find any instance of Visual Studio.

GitHub's windows-2025 runner 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):

  1. Dropping the -G"Visual Studio 17 2022" pin → CMake correctly picks VS2026 (Building for: Visual Studio 18 2026), but the contrib build's own CMakeLists.txt allowlists only VS {14..17} and aborts on VS2026.
  2. Adding -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/contrib submodule, and the whole Windows setup assumes VS2022 anyway (Qt is pinned to win64_msvc2022_64). So an action.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 in openms_ci_matrix_full.yml; the dependencies action is reverted to its original VS2022 pin.

-          - os: windows-2025
+          - os: windows-2022

Revisit / proper follow-up: move back to windows-2025 once OpenMS/contrib accepts VS2026 (update its generator guard) and the win64_msvc2022_64 Qt arch is bumped to match.

Verification

⚠️ CI-only change, not verifiable locally — needs a CI round-trip. Note windows-2022 is 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

  • Chores
    • Updated continuous integration configuration to maintain compatibility with current development tools and ensure reliable Windows builds.

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
@github-actions

Copy link
Copy Markdown
Contributor

@timosachsenberg The following names might be missing from the AUTHORS file:

  • Claude

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

@coderabbitai

coderabbitai Bot commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bc35cf92-d97c-4e31-bcc9-06c206117f68

📥 Commits

Reviewing files that changed from the base of the PR and between 4bd5340 and b1e4b88.

📒 Files selected for processing (1)
  • .github/workflows/openms_ci_matrix_full.yml

📝 Walkthrough

Walkthrough

The Windows runner in the build-and-test CI matrix job is changed from windows-2025 to windows-2022. Comments are added explaining that the windows-2025 image now ships VS2026, which is rejected by the contrib build's CMake generator guard, with a note to revert once contrib supports VS2026.

Changes

Windows CI Runner Pin

Layer / File(s) Summary
Switch Windows runner to windows-2022
.github/workflows/openms_ci_matrix_full.yml
Matrix entry OS changed from windows-2025 to windows-2022; inline comments document the VS2026 incompatibility with the contrib CMake generator guard and the intent to revert once support is added.

Suggested Reviewers

  • pjones

Poem

🐇 Hop, hop, the runner must wait,
VS2026 slammed the gate!
Back to 2022 we go,
CMake guard says "no, no, no!"
When contrib catches up, we'll cheer—
The bunny will update next year! 🌟

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and specifically describes the main change: pinning the Windows runner to windows-2022 to address the CI failure, which is the core objective of this PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/fix-windows-contrib-vs-generator

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

claude added 2 commits June 14, 2026 11:20
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
@timosachsenberg timosachsenberg changed the title ci: unpin Windows contrib Visual Studio generator (fix VS2026 runner image) ci: pin Windows runner to windows-2022 (VS2022) to unblock Windows CI Jun 14, 2026
@timosachsenberg
timosachsenberg merged commit 3165184 into develop Jun 14, 2026
41 checks passed
@timosachsenberg
timosachsenberg deleted the claude/fix-windows-contrib-vs-generator branch June 14, 2026 19:43
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.

2 participants