Repository navigation
[GSOC] Vcpkg Integration in OpenMS - #9511
Conversation
|
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! |
|
@castorNova2 The following names might be missing from the
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 |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe 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. Changesvcpkg Dependency and CI Integration
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
There was a problem hiding this comment.
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
📒 Files selected for processing (7)
.github/workflows/openms_vcpkg_ci.ymlAUTHORSCMakeLists.txtCMakePresets.jsoncmake/Modules/FindCOIN.cmakecmake/Modules/FindLIBSVM.cmakecmake/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
|
@jpfeuffer I'd like to merge this but wanted you to take another quick glance. Thanks. |
44e07e3 to
3287549
Compare
There was a problem hiding this comment.
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 winExercise the cache backend in at least one CI leg.
doNotCache: trueplusVCPKG_BINARY_SOURCES=clearturns 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
📒 Files selected for processing (1)
.github/workflows/openms_vcpkg_ci.yml
|
I think it's fine. It's still deactivatable for now afaics so even if we find errors it doesn't block builds. |
- #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]>
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]>
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
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.rebuild jenkinswill retrigger Jenkins-based CI buildsSummary by CodeRabbit
OPENMS_USE_VCPKGCMake option to enable vcpkg toolchain setup during configuration.