Repository navigation
[ARCHITECTURE] Test installed CMake consumers and narrow dependency exports - #10093
Closed
timosachsenberg wants to merge 2 commits into
Closed
timosachsenberg wants to merge 2 commits into
timosachsenberg wants to merge 2 commits into
Conversation
34 tasks done
Contributor
|
Yes having an extensive external test would be nice. |
5 tasks done
Contributor
Author
|
Superseded by #10103, the same two commits rebased onto current Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 9 of #10083, including the requested CI acceptance test.
The existing external-code example is not exercised by repository CI and defaults to the build tree. Wire it into the Build and Test composite action after a successful OpenMS build. A small Python driver installs the development components, configures a separate consumer with OpenMS_DIR pointing at that installation, builds it and runs CTest. It reuses the configured compiler and vcpkg installation; it does not rebuild OpenMS or install another dependency manifest.
The consumer disables CURL/Xerces package discovery and both CMake package registries, verifies the imported OpenMS/OpenSwathAlgo libraries come from the install prefix, and checks featureXML/mzML use through the installed library. Fix the existing featureXML example to load its output rather than overwrite it. Runtime tests execute from the install bin directory and verify installed data resolution; source data is temporarily moved aside and restored in a finally block so the development fallback cannot mask a missing install rule. The existing explicit Qt consumer remains enabled when Qt is available.
With that gate in place, make CURL private, remove unconditional CURL/Xerces find_dependency calls, and replace OpenSwathAlgo's public raw Boost include directory with private Boost::boost usage. OpenMS still exposes Boost headers. Keep Eigen discovery because installed headers still use Eigen. Arrow/public API redesign is outside this change.
Validation: Python syntax/CLI and orchestration smoke checks pass, including restoration of source data after a simulated consumer failure. git diff --check is clean. Actual installed configuration, linking and runtime behavior must pass PR CI; no local OpenMS build under AGENTS.md. Draft until that gate passes.
Coordination: #9972 and #10063 are the existing CMake/vcpkg cleanup PRs. This PR keeps its changes confined to the identified usage requirements and installed-consumer gate; reconcile overlaps with those PRs before merging.