Skip to content

CI: migrate Windows build to Visual Studio 2026 (windows-2025) - #9514

Merged
timosachsenberg merged 5 commits into
OpenMS:developfrom
timosachsenberg:ci-vs2026-migration
Jun 17, 2026
Merged

timosachsenberg merged 5 commits into
OpenMS:developfrom
timosachsenberg:ci-vs2026-migration

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Why

GitHub Actions' windows-2025 / windows-latest runner images migrated to Visual Studio 2026 (MSVC v145) during June 2026, and VS2022 is no longer installed. windows-2022 now also resolves to that VS2026 image, so the previous pin (#9506) no longer helps. The hardcoded -G"Visual Studio 17 2022" in the contrib build step fails immediately:

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

This broke the nightly openms-ci-full run.

What

This repo:

  • Run the Windows matrix job on windows-2025.
  • Build contrib with -G"Visual Studio 18 2026" (the runner ships CMake ≥ 4.3, which the VS18 generator requires).
  • Refresh compiler_ver to 14.51 (v145) — on Windows this only feeds the ccache key / build name (the compiler is cl.exe from the VS shell), and bumping it forces a clean rebuild on the new toolchain.
  • Bump the contrib submodule to pick up VS2026 generator support.

Depends on OpenMS/contrib#184 (generator guard accepts Visual Studio 18 2026; CoinMP v17 solution reused with PlatformToolset retargeted to v145). The submodule currently points at that PR's branch commit so this PR's CI can be validated; it should be re-pointed to the contrib master SHA once #184 merges.

Notes

  • Qt stays on win64_msvc2022_64 — Qt 6.8.3 ships no msvc2026 build and the v14x ABI is binary compatible with v145.
  • The OpenMS build itself uses Ninja + the VS shell (egor-tensin/vs-shell), which picks up cl.exe v145 automatically — no generator change needed there.
  • The pyOpenMS wheels workflow already runs on windows-latest with Ninja and downloads a prebuilt contrib, so it is unaffected.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the Windows build setup to better align with the Visual Studio 2026 toolchain and revised related configuration.
    • Upgraded the Windows CI matrix to run on Windows 2025 with updated compiler settings.
    • Refreshed the external dependency used by the contrib component by advancing its referenced revision.
    • Improved Windows documentation tooling installation consistency by installing Doxygen and Ghostscript via conda-forge and adjusting the remaining Windows package list accordingly.

GitHub Actions' windows-2025 / windows-latest images moved to Visual Studio
2026 (MSVC v145) in June 2026, removing VS2022. windows-2022 now also maps
to that image, so pinning it no longer helps and the hardcoded
"Visual Studio 17 2022" contrib generator fails with
"could not find any instance of Visual Studio", breaking the nightly full CI.

- Bump contrib submodule to pick up the "Visual Studio 18 2026" generator
  support (OpenMS/contrib#184).
- dependencies action: build contrib with -G"Visual Studio 18 2026"
  (runner CMake is >=4.3, which the VS18 generator requires).
- full CI matrix: run the Windows job on windows-2025; refresh the
  compiler_ver (14.51 / v145) used for the ccache key and build name.

Qt stays on win64_msvc2022_64 (no msvc2026 build exists; ABI-compatible
with v145). The OpenMS build itself uses Ninja + the VS shell, which now
picks up cl.exe v145 automatically.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

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

  • Timo Sachsenberg

Please consider applying the following patch:

--- AUTHORS	2026-06-15 06:35:42.650948985 +0000
+++ AUTHORS.new	2026-06-15 06:35:47.688433213 +0000
@@ -22,8 +22,8 @@
  - Chirag Dave
  - Chris Bauer
  - Chris Bielow
- - Christie Mathews
  - Christian Ehrlich
+ - Christie Mathews
  - Clemens Groepl
  - Cornelia Friedle
  - Daniel Jameson

@coderabbitai

coderabbitai Bot commented Jun 15, 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: 87a19071-d65a-4691-8996-399a43fe334e

📥 Commits

Reviewing files that changed from the base of the PR and between dab33e3 and 2dc925c.

📒 Files selected for processing (1)
  • contrib
🚧 Files skipped from review as they are similar to previous changes (1)
  • contrib

📝 Walkthrough

Walkthrough

The Windows CI configuration is upgraded from windows-2022 to windows-2025, updating the CMake generator to Visual Studio 18 2026, the compiler version to 14.51, reorganizing documentation tooling from Chocolatey to Conda, and adding a comment clarifying Qt 6.8.3 ABI compatibility with VS2026. The contrib submodule pointer is also advanced to a new commit.

Changes

Windows CI Upgrade to VS2026

Layer / File(s) Summary
CI matrix: windows-2025 runner and compiler_ver 14.51
.github/workflows/openms_ci_matrix_full.yml
Replaces the os: windows-2022 matrix entry with os: windows-2025 and updates compiler_ver from 14.44 to 14.51 for the cl.exe toolchain.
Dependency action: CMake, tooling, and Qt updates for VS2026
.github/actions/dependencies/action.yml
Switches the CMake generator on the contrib cache-miss path from Visual Studio 17 2022 to Visual Studio 18 2026; moves doxygen and ghostscript installation to the Conda step from Chocolatey; updates the Qt step comment to note that win64_msvc2022_64 binaries are ABI-compatible with the VS2026 (v145) toolchain.
contrib submodule pointer bump
contrib
Advances the contrib submodule reference to a new commit hash.

Possibly related PRs

  • OpenMS/OpenMS#9506: Addresses the same Windows runner/toolchain configuration path by pinning the Windows runner back to windows-2022 for VS2022 compatibility.
  • OpenMS/OpenMS#9444: Reorganizes Doxygen and Ghostscript installation from Chocolatey to conda-forge in .github/actions/dependencies/action.yml.
  • OpenMS/OpenMS#7996: Adjusts Windows CI/installer tooling to align Qt 6 with the MSVC toolset.

Suggested reviewers

  • jpfeuffer
  • pjones

Poem

🐇 Hoppin' through the CI lane,
Old VS 2022 is hard to maintain.
Now windows-2025 takes the stage,
CMake 18 turns a shiny new page!
Doxygen hops to Conda's embrace—
Qt's ABI compat? Still keeps pace! 🎉

🚥 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 accurately captures the main objective: migrating Windows CI to Visual Studio 2026 using the windows-2025 runner, which is the primary change across the modified files.
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

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@contrib`:
- Line 1: The contrib submodule is referencing commit hash
1d341d717ddd7e4911558ca708cb8699cf1cdbdd which cannot be verified in the public
OpenMS/contrib repository. Verify that the commit hash is correct and has been
pushed to the OpenMS/contrib repository by checking the commit exists in the
public repository. If the commit is correct, confirm that PR `#184` (VS2026
generator support) has been properly merged into the contrib repository. If the
commit hash or PR number is incorrect, update the submodule reference to point
to the correct verified revision in the OpenMS/contrib repository to prevent CI
failures during submodule checkout.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5aa4c2da-ca56-4a42-b5a9-a91b4b606cd2

📥 Commits

Reviewing files that changed from the base of the PR and between 54a8d3a and 1c3e88c.

📒 Files selected for processing (3)
  • .github/actions/dependencies/action.yml
  • .github/workflows/openms_ci_matrix_full.yml
  • contrib

Comment thread contrib Resolved
timosachsenberg and others added 4 commits June 15, 2026 10:54
Advances contrib from 1d341d7 to a867776 (OpenMS/contrib#184, all platforms
green), which additionally builds Boost via its CMake superproject on Windows
(the b2 engine bootstrap cannot target the VS2026 / vc145 toolset). Lets this
PR's Windows job exercise the complete contrib build on windows-2025.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
… hang)

On the windows-2025 (Server 2025 / VS2026) image, the chocolatey 'ghostscript'
package's installer (gs10071w64.exe) hangs for the full 2700s execution
timeout and fails the job in the dependencies step -- before OpenMS is even
built. (Seen on PR OpenMS#9514's windows job: contrib built fine, then the deps step
died on Ghostscript.)

Move ghostscript to the conda-forge install alongside doxygen (which was moved
earlier for the same class of choco unreliability). conda-forge ships it into
Library/bin, already on PATH, so the docs build (enable_docs=ON) still finds it.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
contrib's ci-vs2026-migration was rebased onto current contrib/master
(integrating the concurrent Arrow debug-build, cmake-minimum 3.26 and
Boost.filesystem fixes) and squashed to two commits; bump the submodule from
the pre-rebase a867776 to the rebased tip 7504732. The Windows full-Boost build
already installs filesystem, so the new Boost.filesystem requirement is covered.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
contrib#184 was squash-merged; advance the submodule from the PR-branch commit
7504732 to the resulting master commit e127dea (identical tree). This makes the
submodule reference contrib/master rather than the now-merged PR branch.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@timosachsenberg
timosachsenberg merged commit 11e5e76 into OpenMS:develop Jun 17, 2026
38 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 17, 2026
timosachsenberg added a commit that referenced this pull request Jun 19, 2026
Add entries for all substantive non-test PRs merged since the last
changelog update:

- #9623 ThermoRawFile full mzML metadata extraction + polarity fix
- #9602 New FileInfo library class usable from C++ and pyOpenMS
- #9521 IMAGING multi-region support (add missing PR reference)
- #9620 Deisotoper::isToleranceSupported + ProSE/SSE crash fix on low-res data
- #9610 DistanceMatrix::setValue cached-minimum guard fix
- #9497 DistanceMatrix::operator==, ClusteringGrid, File path guard fixes
- #9583 LogStreamBuf thread-safety fix
- #9514 CI Windows migration to Visual Studio 2026


Claude-Session: https://claude.ai/code/session_01YLg6pWyjyTxpWAU6mgrDzC

Co-authored-by: Claude <[email protected]>
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