Skip to content

Add core-only OpenMS build options - #9752

Merged
timosachsenberg merged 3 commits into
OpenMS:developfrom
timosachsenberg:agent/core-only-openms-build
Jul 16, 2026
Merged

timosachsenberg merged 3 commits into
OpenMS:developfrom
timosachsenberg:agent/core-only-openms-build

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add BUILD_TOPP_TOOLS to omit the TOPP command-line application graph
  • add INSTALL_OPENMS_EXAMPLES to omit example data from SDK installs
  • make TOPP tests, pipeline tests, documentation dependencies, CWL generation, and KNIME packaging consistent with the new build mode
  • complete the installed core SDK with the OpenMS license and the public Bruker imaging header
  • assign the Thermo RawFileReader license to the share install component

Motivation

Standalone consumers should be able to build and install the OpenMS core SDK without configuring or packaging TOPP tools and GUI applications. Previously these consumers needed a sequence of component installs plus source/build-tree repairs for files missing from the installed SDK.

The defaults remain enabled, so existing full OpenMS builds retain their current behavior.

Impact

Using -DBUILD_TOPP_TOOLS=OFF -DWITH_GUI=OFF now creates a core-only target and install graph. TOPP and pipeline tests follow that setting by default, while explicitly incompatible CWL, KNIME, or test configurations fail during configuration with a clear error.

Validation

  • configured the profile against current upstream/develop with TOPP, GUI, examples, documentation, and tests disabled
  • verified the generated target and install graphs contain no src/topp subtree or TOPP executables
  • completed a full Release core build and unqualified install with OpenTIMS and Thermo RAW support enabled
  • built the standalone OpenMS Viewer exclusively against the installed prefix
  • passed the installed-SDK external consumer tests (2/2)
  • passed the Thermo RAW runtime smoke test (32 spectra, 174162 peaks)
  • verified the installed prefix contains no bin directory or examples directory
  • git diff --check

Summary by CodeRabbit

  • New Features

    • Added build options to control TOPP tools and whether OpenMS example data is installed.
    • License file is now installed as part of the shared resources.
    • OpenMS FORMAT sources include additional Bruker tims imaging headers when OpenTIMS support is enabled.
    • Documentation and TOPP-related tests now integrate based on whether TOPP tools are available.
  • Bug Fixes

    • Improved build-time consistency checks to prevent enabling TOPP-dependent workflows/tests without TOPP tools.
    • Packaging now assigns the Thermo RawFileReader license document to the appropriate shared install component.

@timosachsenberg
timosachsenberg marked this pull request as ready for review July 16, 2026 16:46
@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: eb51fed2-17d7-4c44-bcea-de6a9c197b83

📥 Commits

Reviewing files that changed from the base of the PR and between e8e2ad8 and 1be0407.

📒 Files selected for processing (1)
  • .github/workflows/pyopenms-wheels-cibuildwheel.yml

📝 Walkthrough

Walkthrough

CMake now provides TOPP build and example-installation options, validates dependent features and tests, conditionally wires TOPP targets, exports the TOPP setting, assigns license components, installs the OpenMS license, and registers an OpenTIMS header.

Changes

Build and packaging configuration

Layer / File(s) Summary
TOPP build gating and configuration validation
CMakeLists.txt, src/CMakeLists.txt, src/tests/CMakeLists.txt, doc/CMakeLists.txt, cmake/OpenMSConfig.cmake.in, .github/workflows/pyopenms-wheels-cibuildwheel.yml
TOPP tools, related tests, documentation dependencies, wheel-build configurations, and CWL/KNIME prerequisites now respect BUILD_TOPP_TOOLS; the setting is exported to consumers.
Installation options and components
CMakeLists.txt, src/openms/CMakeLists.txt, cmake/cmake_findExternalLibs.cmake
Example installation is controlled by INSTALL_OPENMS_EXAMPLES, the OpenMS license is installed under share, and the Thermo license uses the share component.
OpenTIMS header registration
src/openms/include/OpenMS/FORMAT/sources.cmake
BrukerTimsImagingFile.h is included when OpenTIMS support is enabled.

Suggested reviewers: pjones, jpfeuffer

Poem

A rabbit hops through CMake’s gate,
TOPP tools build—or patiently wait.
Licenses nest in folders bright,
TIMS headers join the compile night.
Tests and docs now follow the trail.

🚥 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 summarizes the main change: adding build options for core-only OpenMS builds.
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.

@timosachsenberg

timosachsenberg commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Also required to allow building the pyopenms target without TOPP.

BUILD_TOPP_TOOLS=OFF moves the exclusion from build time (pick your targets) to configure time (don't configure the src/topp subtree at all).

  • The wheel CI could drop ninja OpenMS OpenSwathAlgo selectivity and safely build all — nothing under src/topp exists to build.
  • Faster configure, and a clean core-only install graph (which is the PR's stated motivation — standalone SDK consumers previously had to install components à la carte and repair missing files, exactly the à-la-carte cmake --install --component … list you see in the wheel workflow).

nothing in the existing pyOpenMS/wheel builds needs to change - they already avoid TOPP by target selection - but they could be simplified to use the new option.

@timosachsenberg
timosachsenberg requested a review from pjones July 16, 2026 17:25
The wheel builds already avoid compiling TOPP by building only the named
library targets (`ninja OpenMS OpenSwathAlgo`). With the new core-only
build options, make that intent explicit at configure time by passing
`-DBUILD_TOPP_TOOLS=OFF -DINSTALL_OPENMS_EXAMPLES=OFF` on all four
platform jobs (Linux x64/arm64, macOS arm64, Windows x64).

This skips configuring the src/topp subtree (slightly faster configure)
and keeps the build robust if the target list ever changes to a full
`ninja`/`all` build. No functional change to the produced wheels.

Depends on the BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES options.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
[CI] pyOpenMS wheels: exclude TOPP tools at configure time
@pjones

pjones commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

I die a little inside when our build system gets bigger. We almost have 60k lines of CMake code:

find ~/src/kohlbacher/openms/develop \
  -regextype posix-extended \
  '(' -type d -regex '.*/(\..*|build|contrib|vcpkg.*)' -prune ')' -o \
  '(' -type f \( -iname 'cmakelists.txt' -or -iname '*.cmake' \)  -exec cat '{}' ';' ')' |
  wc -l

But, this looks good.

@timosachsenberg
timosachsenberg merged commit ad6025a into OpenMS:develop Jul 16, 2026
39 checks passed
timosachsenberg added a commit that referenced this pull request Jul 17, 2026
* docs(changelog): add entries for #9492, #9752

Backfills two CHANGELOG entries for recently merged PRs that landed
without their own entry:
- #9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options
  enabling a core-only OpenMS SDK build
- #9492: null-dereference guards in TargetedExperiment::get*ByRef and
  ReactionMonitoringTransition::getPrediction

All other PRs merged since the last CHANGELOG update (#9613, #9750,
#9738) already carried their own entries; #9572 is test-only and
follows the existing convention of not adding a changelog entry for
test-only PRs in this series.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt

* Update CHANGELOG

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
timosachsenberg added a commit that referenced this pull request Jul 22, 2026
…x) (#9779)

PR #9774 fixed a missing-header build failure for standalone consumers
of the core-only OpenMS SDK (introduced in #9752) but its merge did not
include a CHANGELOG entry.


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

Co-authored-by: Claude <[email protected]>
timosachsenberg added a commit that referenced this pull request Jul 26, 2026
…#9752) (#9797)

The core-only OpenMS SDK feature (#9752) added these two CMake options
but never added them to the CMake parameters reference doc.


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

Co-authored-by: Claude <[email protected]>
jcharkow pushed a commit to jcharkow/OpenMS that referenced this pull request Aug 12, 2026
* Add core-only OpenMS build options

* [CI] pyOpenMS wheels: exclude TOPP tools at configure time

The wheel builds already avoid compiling TOPP by building only the named
library targets (`ninja OpenMS OpenSwathAlgo`). With the new core-only
build options, make that intent explicit at configure time by passing
`-DBUILD_TOPP_TOOLS=OFF -DINSTALL_OPENMS_EXAMPLES=OFF` on all four
platform jobs (Linux x64/arm64, macOS arm64, Windows x64).

This skips configuring the src/topp subtree (slightly faster configure)
and keeps the build robust if the target list ever changes to a full
`ninja`/`all` build. No functional change to the produced wheels.

Depends on the BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES options.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
jcharkow pushed a commit to jcharkow/OpenMS that referenced this pull request Aug 12, 2026
…S#9753)

* docs(changelog): add entries for OpenMS#9492, OpenMS#9752

Backfills two CHANGELOG entries for recently merged PRs that landed
without their own entry:
- OpenMS#9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options
  enabling a core-only OpenMS SDK build
- OpenMS#9492: null-dereference guards in TargetedExperiment::get*ByRef and
  ReactionMonitoringTransition::getPrediction

All other PRs merged since the last CHANGELOG update (OpenMS#9613, OpenMS#9750,
OpenMS#9738) already carried their own entries; OpenMS#9572 is test-only and
follows the existing convention of not adding a changelog entry for
test-only PRs in this series.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt

* Update CHANGELOG

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
jcharkow added a commit to jcharkow/OpenMS that referenced this pull request Oct 9, 2026
* Add core-only OpenMS build options

* [CI] pyOpenMS wheels: exclude TOPP tools at configure time

The wheel builds already avoid compiling TOPP by building only the named
library targets (`ninja OpenMS OpenSwathAlgo`). With the new core-only
build options, make that intent explicit at configure time by passing
`-DBUILD_TOPP_TOOLS=OFF -DINSTALL_OPENMS_EXAMPLES=OFF` on all four
platform jobs (Linux x64/arm64, macOS arm64, Windows x64).

This skips configuring the src/topp subtree (slightly faster configure)
and keeps the build robust if the target list ever changes to a full
`ninja`/`all` build. No functional change to the produced wheels.

Depends on the BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES options.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
jcharkow added a commit to jcharkow/OpenMS that referenced this pull request Oct 9, 2026
…S#9753)

* docs(changelog): add entries for OpenMS#9492, OpenMS#9752

Backfills two CHANGELOG entries for recently merged PRs that landed
without their own entry:
- OpenMS#9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options
  enabling a core-only OpenMS SDK build
- OpenMS#9492: null-dereference guards in TargetedExperiment::get*ByRef and
  ReactionMonitoringTransition::getPrediction

All other PRs merged since the last CHANGELOG update (OpenMS#9613, OpenMS#9750,
follows the existing convention of not adding a changelog entry for
test-only PRs in this series.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt

* Update CHANGELOG

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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