Skip to content

[ARCHITECTURE] Test installed CMake consumers and narrow dependency exports - #10093

Closed
timosachsenberg wants to merge 2 commits into
OpenMS:developfrom
timosachsenberg:architecture/batch-09-installed-consumer
Closed

timosachsenberg wants to merge 2 commits into
OpenMS:developfrom
timosachsenberg:architecture/batch-09-installed-consumer

Conversation

@timosachsenberg

Copy link
Copy Markdown
Contributor

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.

@jpfeuffer

Copy link
Copy Markdown
Contributor

Yes having an extensive external test would be nice.

Copy link
Copy Markdown
Contributor Author

Superseded by #10103, the same two commits rebased onto current develop on an OpenMS-hosted branch. Closing this one.


Generated by Claude Code

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.

2 participants