Skip to content

[GSOC] Vcpkg Integration in OpenMS - #9511

Merged
pjones merged 39 commits into
OpenMS:developfrom
castorNova2:vcpkg_linux_integration
Jun 29, 2026
Merged

pjones merged 39 commits into
OpenMS:developfrom
castorNova2:vcpkg_linux_integration

Conversation

@castorNova2

@castorNova2 castorNova2 commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR is for the Vcpkg Integration in OpenMS which is a GSOC 2026 project titled "Unify development dependencies using vcpkg".

Completed Task:

1. Adding and editing vcpkg.json and vcpkg-configuration.json

Vcpkg.json is responsible for defining number of dependency to install in a configure step. vcpkg-configuration.json is another file defining the baseline commit through which package to be installed version are decided. It is also used to add registries and overlay triplets and overlay ports array which tells vcpkg where to look for custom changes. The vcpkg submodule is also updated and pinned to f9ffbaa commit id.

2. Adding CMakePresets.json

A trivial but often recommended file for vcpkg integration which ensures constency across builds, remove the need of hardcoding and passing large number of flags, and provides one destination for adding configurations. For now only linux preset is added, in future other system presets and other configuration will also be added or changed.

3. CI workflow file

Added a vcpkg integration workflow file vcpkg-integration.yml to test the OpenMS build through vcpkg. It also helpful to create our custom binary cache backend using GitHub releases, and testing configure and build steps,etc.

Note: The files added or edited above are in provisional state and are subjected to change in future. For example, adding mac and Windows presets, defining overlay port location in configuration file, or adding more features in vcpkg.json, etc.

Ongoing work:

1. Solving Linking issue

Solving linking issue of vcpkg version of OpenMS depedencies. For example FindLibSVM.cmake where OpenMS could not find the vcpkg libsvm causing mismatch and end up using vcpkg header of libsvm but library path of system libsvm version.

2. Cache Backend

Checking the number and size of archives created by vcpkg for dependecies during configure phase. And building the custom cache backend. There are three scripts which will achive this. First is download.sh which will download the cache from github releases, and other two scripts are upload.sh and prune.sh where former will upload the new cache as github release and latter will prune the old releases.

3. Testing on other platforms

Testing on other Linux OSes like Ubuntu arm64 and Ubuntu x64 with clang.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

Advanced commands (admins / reviewer only)

Click to expand
  • /reformat (experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.
  • setting the label "NoJenkins" will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)
  • commenting with rebuild jenkins will retrigger Jenkins-based CI builds

⚠️ Note: Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

Summary by CodeRabbit

  • New Features
    • Added an OPENMS_USE_VCPKG CMake option to enable vcpkg toolchain setup during configuration.
    • Expanded CMake Linux x64/ARM64 presets (configure/build/test) with additional CI variants.
    • Added an “OpenMS Vcpkg CI” GitHub workflow for Ubuntu x64 (GCC/Clang) and Ubuntu ARM64.
  • Bug Fixes
    • Improved vcpkg-aware detection for LIBSVM and CoinOR-related components.
    • Tightened BLAS/LAPACK requirements when using CoinOR.
    • Added a safeguard against incompatible vcpkg/contrib configuration.
  • Chores
    • Updated the vcpkg submodule and refined vcpkg dependency declarations and registry configuration; added an author entry.

@github-actions

Copy link
Copy Markdown
Contributor

Welcome @castorNova2 and thank you for your contribution to OpenMS! To help us better understand our userbase and contributors, we would appreciate if you could complete the survey at the link below. Completing this survey will help us get to your PR sooner. Thank you for your participation!

Survey

@castorNova2
castorNova2 marked this pull request as draft June 14, 2026 17:06
@github-actions

Copy link
Copy Markdown
Contributor

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

  • Nidhish Chauhan

Please consider applying the following patch:

--- AUTHORS	2026-06-14 17:07:08.048592387 +0000
+++ AUTHORS.new	2026-06-14 17:07:13.325665759 +0000
@@ -22,8 +22,8 @@
  - Chirag Dave
  - Chris Bauer
  - Chris Bielow
- - Christie Mathews
  - Christian Ehrlich
+ - Christie Mathews
  - Clemens Groepl
  - Cornelia Friedle
  - Daniel Jameson
@@ -103,6 +103,7 @@
  - Peter J. Jones
  - Peter Kunszt
  - Petra Gutenbrunner
+ - Pollux
  - Radu Suciu
  - Ralf Gabriels
  - Rene Hussong

@castorNova2
castorNova2 marked this pull request as ready for review June 14, 2026 17:08
@castorNova2
castorNova2 marked this pull request as draft June 14, 2026 17:09
@coderabbitai

coderabbitai Bot commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 03d27275-291f-4c76-be24-2f6b3151a8fd

📥 Commits

Reviewing files that changed from the base of the PR and between 8544476 and 9c039db.

📒 Files selected for processing (1)
  • AUTHORS

📝 Walkthrough

Walkthrough

The PR adds vcpkg registry and manifest files, expands CMake presets, enables optional vcpkg toolchain selection in CMake, updates Coin and LIBSVM find modules for vcpkg, adds a GitHub Actions vcpkg CI workflow, and appends one name to AUTHORS.

Changes

vcpkg Dependency and CI Integration

Layer / File(s) Summary
vcpkg manifests and registry setup
vcpkg, vcpkg-configuration.json, vcpkg.json
Adds the vcpkg configuration file, rewrites the dependency manifest with explicit package entries and feature bundles, and advances the vcpkg submodule pin.
CMake preset matrix
CMakePresets.json
Adds hidden base configure presets, Linux x64 and arm64 configure presets, matching build presets, and matching test presets.
CMake toolchain and search paths
CMakeLists.txt, cmake/setup_lib_find_paths.cmake
Adds OPENMS_USE_VCPKG and vendored toolchain lookup, prints the dependency provider label, rejects conflicting vcpkg and contrib settings, and keeps the prefix-path setup.
Coin finder vcpkg support
cmake/Modules/FindCOIN.cmake
Prioritizes vcpkg Coin headers when the toolchain is enabled, fixes the imported-target existence check, and requires BLAS and LAPACK in the vcpkg branch.
LIBSVM finder vcpkg support
cmake/Modules/FindLIBSVM.cmake
Tries unofficial-libsvm first, derives LIBSVM_* values from that target when present, and keeps the fallback path and library discovery logic.
Vcpkg CI workflow
.github/workflows/openms_vcpkg_ci.yml
Adds the GitHub Actions workflow matrix, repository checkout and build-tool setup, _thirdparty staging, compiler selection, vcpkg initialization, and preset-driven configure/build/test execution.
Author list update
AUTHORS
Adds Nidhish Chauhan to AUTHORS.

Suggested reviewers

  • timosachsenberg

Poem

🐰 I nibbled the manifests and found a new trail,
vcpkg hops through presets without fail.
Coin and LIBSVM got their clues,
CI ran the build with bunny shoes,
and AUTHORS got one cheerful name.

🚥 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 clearly identifies the main change: integrating vcpkg into OpenMS.
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.
✨ 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.

@pjones pjones self-assigned this Jun 26, 2026
@pjones
pjones requested a review from jpfeuffer June 26, 2026 12:21

@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: 4

🤖 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 @.github/workflows/openms_vcpkg_ci.yml:
- Around line 11-14: The workflow job definition for configure-build-test should
be hardened by limiting the GitHub token to read-only access and preventing
checkout from storing credentials. Update the job permissions to the minimum
needed for build/test and set persist-credentials to false in the
checkout-related step so later scripts cannot reuse the token; apply the same
change to the corresponding job block referenced by the comment.
- Around line 3-9: Add a pull_request trigger to the openms_vcpkg_ci workflow so
PRs targeting develop run the vcpkg validation before merge. Update the
workflow’s top-level on block alongside push and workflow_dispatch, keeping the
existing branch filters for the branch-based triggers and ensuring develop PRs
are covered by the new event.
- Around line 40-45: The workflow still uses mutable GitHub Actions refs in the
checkout and CMake setup steps, so update the `actions/checkout` and
`lukka/get-cmake` entries in `openms_vcpkg_ci.yml` to full immutable
40-character commit SHAs instead of version tags like `@v6` or `@latest`. Keep
the existing step structure and only replace the `uses` values for those action
references so CI is pinned and reproducible.

In `@CMakePresets.json`:
- Around line 13-14: Make BOOST_USE_STATIC follow OPENMS_USE_VCPKG instead of
always defaulting to ON. In CMakeLists.txt, update the BOOST_USE_STATIC option
handling so the default is OFF when OPENMS_USE_VCPKG is enabled and ON
otherwise, matching the preset behavior in CMakePresets.json. Use the existing
OPENMS_USE_VCPKG and BOOST_USE_STATIC symbols to locate the conditional option
declaration near the current BOOST_USE_STATIC definition.
🪄 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: accb9f9d-d9fa-4946-a35a-7192fb6e6beb

📥 Commits

Reviewing files that changed from the base of the PR and between cdacfa1 and 44e07e3.

📒 Files selected for processing (7)
  • .github/workflows/openms_vcpkg_ci.yml
  • AUTHORS
  • CMakeLists.txt
  • CMakePresets.json
  • cmake/Modules/FindCOIN.cmake
  • cmake/Modules/FindLIBSVM.cmake
  • cmake/setup_lib_find_paths.cmake
✅ Files skipped from review due to trivial changes (1)
  • AUTHORS
🚧 Files skipped from review as they are similar to previous changes (1)
  • cmake/Modules/FindLIBSVM.cmake

Comment thread .github/workflows/openms_vcpkg_ci.yml Resolved
Comment thread .github/workflows/openms_vcpkg_ci.yml Resolved
Comment thread .github/workflows/openms_vcpkg_ci.yml Resolved
Comment thread CMakePresets.json Resolved
@pjones

pjones commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

@jpfeuffer I'd like to merge this but wanted you to take another quick glance. Thanks.

@castorNova2
castorNova2 force-pushed the vcpkg_linux_integration branch from 44e07e3 to 3287549 Compare June 26, 2026 14:43

@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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/openms_vcpkg_ci.yml (1)

100-107: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Exercise the cache backend in at least one CI leg.

doNotCache: true plus VCPKG_BINARY_SOURCES=clear turns off both the wrapper cache and vcpkg’s binary sources, so this workflow never hits the new cache backend path at all. That leaves the upload/download integration unvalidated in the only CI file added for it.

Keep the source-build legs if you want, but add a cache-enabled matrix entry so regressions in the backend scripts are caught here. Based on PR objectives, this stack is meant to validate the custom GitHub-release cache backend path.

🤖 Prompt for 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.

In @.github/workflows/openms_vcpkg_ci.yml around lines 100 - 107, The
openms_vcpkg_ci workflow currently disables both the lukka/run-vcpkg wrapper
cache and vcpkg binary caching, so the new GitHub-release cache backend is never
exercised. Update the CI leg around Setup vcpkg and the Disable vcpkg binary
cache step to keep source-build coverage if needed, but add at least one matrix
entry in this workflow that leaves caching enabled so the backend
upload/download path is actually validated. Refer to the lukka/run-vcpkg@v11
setup and the VCPKG_BINARY_SOURCES override when adjusting the matrix behavior.
🤖 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.

Outside diff comments:
In @.github/workflows/openms_vcpkg_ci.yml:
- Around line 100-107: The openms_vcpkg_ci workflow currently disables both the
lukka/run-vcpkg wrapper cache and vcpkg binary caching, so the new
GitHub-release cache backend is never exercised. Update the CI leg around Setup
vcpkg and the Disable vcpkg binary cache step to keep source-build coverage if
needed, but add at least one matrix entry in this workflow that leaves caching
enabled so the backend upload/download path is actually validated. Refer to the
lukka/run-vcpkg@v11 setup and the VCPKG_BINARY_SOURCES override when adjusting
the matrix behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a095ec3a-0319-46ea-abbd-49bda2637ced

📥 Commits

Reviewing files that changed from the base of the PR and between 44e07e3 and 3287549.

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

@jpfeuffer

Copy link
Copy Markdown
Contributor

I think it's fine. It's still deactivatable for now afaics so even if we find errors it doesn't block builds.

pjones
pjones previously requested changes Jun 29, 2026
Comment thread .github/workflows/openms_vcpkg_ci.yml Resolved
@pjones
pjones dismissed stale reviews from jpfeuffer and themself June 29, 2026 10:49

Approved.

@pjones
pjones merged commit 5f99633 into OpenMS:develop Jun 29, 2026
timosachsenberg added a commit that referenced this pull request Jun 30, 2026
- #9654: on-disc extractIonImage for imzML (IonImageExtraction.h shared kernel,
  OnDiscImzMLExperiment::extractIonImage without full dataset load)
- #9683: perf fix for three O(N²)/O(P²) hotspots in
  PeptideAndProteinQuant::quantifyProteins that caused hangs on large
  isobaric inputs (~7M PSMs)
- #9511: vcpkg integration (GSOC 2026) — vcpkg.json, CMakePresets.json,
  and CI workflow for reproducible dependency management


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

Co-authored-by: Claude <[email protected]>
@coderabbitai coderabbitai Bot mentioned this pull request Aug 12, 2026
3 of 5 tasks
@castorNova2 castorNova2 mentioned this pull request Aug 18, 2026
2 of 5 tasks
timosachsenberg added a commit that referenced this pull request Aug 20, 2026
Documents #9800, which extended the vcpkg build integration (#9511)
from Linux to Windows and macOS with platform presets, overlay ports,
and macOS overlay triplets, but merged without a CHANGELOG entry.

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants