Repository navigation
Build: Add vcpkg-configuration.json to establish registry baseline for reproducible builds - #8903
krrishverma1805-web wants to merge 2 commits into
Conversation
|
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)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughA new Changes
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip You can disable poems in the walkthrough.Disable the |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@vcpkg-configuration.json`:
- Line 5: The "baseline" value in vcpkg-configuration.json is set to a
nonexistent commit hash; update the baseline key to point to a valid commit SHA
from the microsoft/vcpkg repository. Locate the "baseline" entry in
vcpkg-configuration.json and replace "38a3560662d515a805f11dae6c2780b621e25e1a"
with a known-good commit hash (e.g., a recent commit on the microsoft/vcpkg main
branch) so vcpkg operations can resolve the baseline.
- Line 2: The $schema field in vcpkg-configuration.json is pointing to a 404
URL; update the "$schema" value to a valid accessible vcpkg configuration schema
(e.g., replace the current URL with the correct upstream schema such as
"https://raw.githubusercontent.com/microsoft/vcpkg/main/docs/spec/vcpkg-configuration.schema.json"
or the current schema URL from the official vcpkg repo), ensuring the "$schema"
property contains a working HTTP(S) URL that resolves.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 75c56b45-64d8-4c94-bdce-ba01e32fd932
📒 Files selected for processing (1)
vcpkg-configuration.json
- Introduces a default registry baseline to ensure reproducible builds. - Prevents floating dependency versions when developers run vcpkg in manifest mode. - Aligns with modern vcpkg enterprise best practices.
68abec2 to
9bec6c2
Compare
|
Can you create a new CI workflow on your fork with which you test this whole endeavour? |
|
@jpfeuffer I have created a test workflow on my fork to validate this configuration. ✅ Validation Results: https://github.com/krrishverma1805-web/OpenMS/actions/runs/23117791599 The workflow successfully: Validated the JSON syntax of vcpkg-configuration.json. |
|
I meant a full build of OpenMS. The vcpkg submodule is outdated, the vcpkg.json is probably also outdated and too unspecific. Maybe create a new repository with a GitHub packages nuget repository and binary cache to save time and prebuild the dependencies. |
|
Thanks for the clarification that makes sense. I’ll treat this investigation as groundwork for a more complete vcpkg integration approach, including dependency updates, full-build validation, and binary caching strategy. In that sense, this PR has been very helpful for understanding the current gaps, even if the final solution needs to be broader. |
|
Adversarial review result: no blocking issue found. This only adds No vcpkg configure/build run locally. |
|
Thanks for the groundwork here, @krrishverma1805-web — closing as superseded, since
{
"default-registry": {
"kind": "git",
"baseline": "f9ffbaa46ad8e284b2b74919f7e0ba259564d424",
"repository": "https://github.com/microsoft/vcpkg"
},
"overlay-ports": ["./vcpkg-overlays/ports"],
"overlay-triplets": ["./vcpkg-overlays/triplets"]
}Because of that, the PR is now in an add/add conflict on the same path, and merging it as-is would drop the overlay configuration. The broader concerns @jpfeuffer raised (outdated vcpkg submodule, unspecific Your investigation was useful input into that direction — thanks, and you're very welcome to build on the current setup for the GSoC project. Generated by Claude Code |
Description
As part of my preparation for the GSoC 2026 Project B1 (Unify Development Dependencies Using vcpkg), I was auditing the current
vcpkgintegration in OpenMS.I noticed that while
vcpkg.jsondefines the dependencies, there is novcpkg-configuration.jsonorbuiltin-baselinespecified. Without a baseline,vcpkgpulls the absolute latest version of every dependency at the time of installation. This can lead to "works on my machine" issues, where two developers (or CI runners) end up with different versions of Boost or Qt simply because they ranvcpkg installon different days.This PR introduces
vcpkg-configuration.jsonto pin the default registry to a specific baseline commit. This ensures reproducible builds across the entire team and CI environments.When updating dependencies in the future, maintainers simply bump the
baselinehash.Checklist
Summary by CodeRabbit