Repository navigation
Modernize pyOpenMS build system with py-build-cmake and cibuildwheel - #8530
Conversation
This PR modernizes the pyOpenMS build system to use modern Python packaging standards (PEP 517/518/621) with py-build-cmake as the build backend. Changes: - Add pyproject.toml with py-build-cmake and cibuildwheel configuration - Simplify CMakeLists.txt: remove requirements_check.py, inline env.py generation - Add install() targets for py-build-cmake packaging - Fix Eigen3 version range handling in OpenMSConfig.cmake.in - Add existence check for share directory copy - Replace pyopenms-wheels.yml with cibuildwheel-based workflow - Add pyopenms-quick-test job to openms-ci-full for PR validation Removed files: - requirements_bld.txt (moved to pyproject.toml) - requirements_check.py (no longer needed) - setup.py (replaced by pyproject.toml) - env.py.in (simplified to inline generation) - pyopenms-wheels.yml (replaced by pyopenms-wheels-cibuildwheel.yml) Build with: OpenMS_ROOT=/path/to/build uv build --wheel 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughMoves pyOpenMS packaging to PEP‑517/py‑build‑cmake and cibuildwheel, removes legacy setuptools/Jenkins scripts, refactors pyOpenMS CMake and packaging targets, updates CI workflows and dependency scripts, adjusts CMake install paths and headers, adds tests and docs, and introduces new CI packaging controls and build targets. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant GH as GitHub Actions
participant Repo as Repository
participant UV as uv (build deps)
participant Builder as OpenMS Builder (CMake/Ninja)
participant CWB as cibuildwheel
participant Test as Test Runner (Python matrix)
participant PyPI as PyPI
GH->>Repo: checkout & read pyproject/CMake config
GH->>UV: install build deps (uv sync --only-group dev)
GH->>Builder: configure & build OpenMS per platform
Builder-->>GH: OpenMS artifacts
GH->>CWB: run cibuildwheel (consumes OpenMS artifacts)
CWB-->>GH: built wheel artifacts (uploaded)
GH->>Test: download/install wheels across Python versions, run tests
Test-->>GH: test results
alt publish conditions met
GH->>PyPI: upload wheels (nightly or release)
PyPI-->>GH: confirmation
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
✏️ Tip: You can disable this entire section by setting 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: 3
🧹 Nitpick comments (9)
src/pyOpenMS/pyproject.toml (2)
201-205: Move delocate installation tobefore-buildfor efficiency.Installing delocate inside
repair-wheel-commandrunspip install delocatefor every wheel being repaired. This is inefficient and should be moved to a one-time installation step.🔎 Proposed fix
+[tool.cibuildwheel.macos] +# ...existing config... +before-build = "pip install delocate" + # Use delocate to bundle shared libraries repair-wheel-command = [ - "pip install delocate", "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}", ]
64-68: Consider adding a version constraint for pandas.The
pandasdependency has no version constraint, which could lead to compatibility issues with future breaking changes. Consider adding a minimum version (e.g.,pandas>=2.0) to ensure API compatibility.PYOPENMS_BUILD_MODERNIZATION.md (1)
131-147: Add language specifier to code blocks.The code blocks at lines 131-147 and 151-159 are missing language specifiers. Consider using
yamlortextfor better syntax highlighting and to satisfy markdown linting rules.🔎 Proposed fix
-``` +```text Trigger: Release tags, nightly branch, develop PRs.github/workflows/openms_ci_matrix_full.yml (1)
1217-1221: Consider removingneeds: build-and-testdependency.The
pyopenms-quick-testjob builds OpenMS from scratch and doesn't use any artifacts frombuild-and-test. Removing the dependency would allow it to run in parallel, reducing overall CI time for PRs.🔎 Proposed fix
pyopenms-quick-test: # Only run on PRs to develop and on non-clang Linux builds if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'develop' - needs: build-and-test runs-on: ubuntu-24.04 container: ghcr.io/openms/contrib_manylinux_2_34:latest-amd64.github/workflows/pyopenms-wheels-cibuildwheel.yml (1)
24-26: Unused environment variable.
PYTHON_VERSIONSis defined but never referenced in the workflow. Either use it in theCIBW_BUILDspecifications or remove it to avoid confusion.🔎 Proposed fix - remove unused variable
-env: - # Python versions to build (used in before-all scripts) - PYTHON_VERSIONS: '["3.10", "3.11", "3.12", "3.13", "3.14"]' - jobs:src/pyOpenMS/CMakeLists.txt (4)
77-87: Consider updating the Python version check for modern requirements.The check for Python 3.5+ is outdated (EOL 2020). Modern Python versions (3.8+) are typically built with Visual Studio 2017 or later. While this conservative check maintains backward compatibility, consider updating to reflect current Python version requirements.
194-227: LGTM! Simplified env.py generation.Inlining the env.py generation is cleaner than the template approach. The legacy variables are documented as kept for compatibility.
Optional: Consider removing legacy variables if they're truly unused, to reduce maintenance burden.
404-437: Legacy compatibility targets retained.These targets support the old build system and are disabled by default (
NO_DEPENDENCIES=ON). The comments clearly indicate they're not used by py-build-cmake.Future cleanup: Consider removing these legacy targets once the migration is complete and all users have moved to the new build system.
304-381: LGTM! Modern Python extension module configuration.The use of
Python_add_libraryand consistent target properties for both single and multi-module builds follows CMake best practices. The install directives are properly scoped withCOMPONENT python_modulesand the hardcodedpyopenmsdestination aligns with the py-build-cmake module configuration. For better maintainability and adherence to py-build-cmake conventions, consider using${PY_BUILD_CMAKE_IMPORT_NAME}instead of the hardcoded directory name.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (11)
.github/workflows/openms_ci_matrix_full.yml(1 hunks).github/workflows/pyopenms-wheels-cibuildwheel.yml(1 hunks).github/workflows/pyopenms-wheels.yml(0 hunks)PYOPENMS_BUILD_MODERNIZATION.md(1 hunks)cmake/OpenMSConfig.cmake.in(1 hunks)src/pyOpenMS/CMakeLists.txt(2 hunks)src/pyOpenMS/env.py.in(0 hunks)src/pyOpenMS/pyproject.toml(1 hunks)src/pyOpenMS/requirements_bld.txt(0 hunks)src/pyOpenMS/requirements_check.py(0 hunks)src/pyOpenMS/setup.py(0 hunks)
💤 Files with no reviewable changes (5)
- src/pyOpenMS/env.py.in
- .github/workflows/pyopenms-wheels.yml
- src/pyOpenMS/requirements_bld.txt
- src/pyOpenMS/setup.py
- src/pyOpenMS/requirements_check.py
🧰 Additional context used
🧠 Learnings (9)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Applied to files:
src/pyOpenMS/pyproject.tomlPYOPENMS_BUILD_MODERNIZATION.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
Applied to files:
src/pyOpenMS/pyproject.tomlsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-12-17T08:12:58.563Z
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
Applied to files:
.github/workflows/openms_ci_matrix_full.ymlPYOPENMS_BUILD_MODERNIZATION.md.github/workflows/pyopenms-wheels-cibuildwheel.yml
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Be aware of OpenMS dependencies and external libraries
Applied to files:
cmake/OpenMSConfig.cmake.in
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/*Test.cpp : Follow naming convention: `ClassNameTest.cpp` for `ClassName`
Applied to files:
src/pyOpenMS/CMakeLists.txt
🪛 LanguageTool
PYOPENMS_BUILD_MODERNIZATION.md
[uncategorized] ~37-~37: The official name of this software platform is spelled with a capital “H”.
Context: ...ets - [x] New CI workflow created (`.github/workflows/pyopenms-wheels-cibuildwheel....
(GITHUB)
[uncategorized] ~44-~44: The official name of this software platform is spelled with a capital “H”.
Context: ...Quick test added to openms-ci-full (.github/workflows/openms_ci_matrix_full.yml) ...
(GITHUB)
[uncategorized] ~72-~72: The official name of this software platform is spelled with a capital “H”.
Context: ...PEP 517/518/621 build configuration | | `.github/workflows/pyopenms-wheels-cibuildwheel....
(GITHUB)
[uncategorized] ~79-~79: The official name of this software platform is spelled with a capital “H”.
Context: ...added existence check for share dir | | .github/workflows/openms_ci_matrix_full.yml | ...
(GITHUB)
[uncategorized] ~90-~90: The official name of this software platform is spelled with a capital “H”.
Context: ...| Simplified to inline generation | |.github/workflows/pyopenms-wheels.yml` | Replac...
(GITHUB)
🪛 markdownlint-cli2 (0.18.1)
PYOPENMS_BUILD_MODERNIZATION.md
131-131: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
151-151: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
- GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-openms-windows
- GitHub Check: build-openms-linux-arm
- GitHub Check: build-openms-linux
- GitHub Check: build-openms-macos
- GitHub Check: cppcheck-test
🔇 Additional comments (20)
src/pyOpenMS/pyproject.toml (2)
127-132: LGTM!The py-build-cmake configuration is well-structured with appropriate CMake options and install components. The build parallelization with
-jis reasonable for local builds.
56-60: Python 3.14 support in classifiers and cibuildwheel targets is appropriate. Python 3.14 was released on October 7, 2025, and current maintenance releases are available with bugfixes since the initial 3.14.0 release. Including Python 3.14 in the build configuration no longer poses risks from pre-release instability.PYOPENMS_BUILD_MODERNIZATION.md (1)
94-115: LGTM!The build instructions are clear and comprehensive, providing both local development and pip-based workflows. The documentation effectively captures the modernization effort.
cmake/OpenMSConfig.cmake.in (1)
28-34: LGTM!The Eigen3 discovery change correctly handles compatibility between CMake 3.19+ version ranges and older Eigen configurations. Using
find_packagewithQUIETfor the initial attempt allows graceful fallback to the simpler version check..github/workflows/openms_ci_matrix_full.yml (1)
1243-1257: LGTM!The wheel build and test steps are well-configured. The environment variables correctly point to the build directory, and the test commands provide adequate validation for a quick test job.
.github/workflows/pyopenms-wheels-cibuildwheel.yml (2)
1-8: LGTM on overall workflow structure!The workflow is well-organized with clear separation of concerns: OpenMS builds → wheel builds → testing → publishing. The use of platform-specific jobs with proper artifact passing is appropriate for cross-platform wheel building.
53-68: The packaged OpenMS artifacts contain sufficient files for pyOpenMS wheel building: the OpenMSConfig.cmake files already included provide the necessary CMake configuration, and the lib/ and include/ directories contain the libraries and headers needed. The share/ directory contains runtime data files for OpenMS tools (e.g., CHEMISTRY/unimod.xml), not build-time requirements for compiling Python bindings. Similarly, cmake/ modules are intended for external projects using OpenMS; the CMake configuration already packaged is sufficient for py-build-cmake to build the wheel.src/pyOpenMS/CMakeLists.txt (13)
8-18: LGTM! Clear documentation for dual-mode build support.The header comments effectively explain the two build modes and provide guidance for standalone builds using py-build-cmake.
26-38: LGTM! Robust standalone build detection with proper fallbacks.The logic correctly handles both integrated and standalone builds. The git info retrieval has appropriate fallbacks when the git module is unavailable.
40-54: LGTM! Well-designed build options.The new options provide good control over the build process. Setting
NO_DEPENDENCIEStoONby default aligns with modern Python packaging practices using wheel repair tools.
63-72: LGTM! Proper Python configuration for extension modules.Using
Development.Moduleinstead ofDevelopmentis the correct choice for building Python extension modules, and the status messages provide useful build information.
89-127: LGTM! Robust Python package detection with proper error handling.The package detection logic correctly uses Python introspection to find NumPy, autowrap, and determine the extension suffix, with appropriate error handling for missing dependencies.
129-137: LGTM! Proper Qt6 configuration.The Qt6 detection correctly uses the imported qmake target to query installation paths.
139-159: LGTM! Proper optional OpenMP support.The OpenMP detection is correctly conditional and includes are only added when OpenMP is found.
161-192: LGTM! Well-structured build directory setup with proper asset handling.The
_copy_assetshelper function provides a clean way to copy source files, and the conditional share data copying appropriately handles standalone builds where the share directory may not exist.Note: The
GLOBusage means CMake won't automatically reconfigure if new files are added, but this is acceptable for source distribution files that change infrequently.
229-242: LGTM! Clear generated files definition.The logic correctly handles both single and multi-module build configurations.
244-273: LGTM! Well-structured code generation with proper dependencies.The use of a sentinel file to track code generation completion and proper dependency on the OpenMS target ensures correct build ordering.
277-302: LGTM! Appropriate compiler settings for multi-platform builds.The RPATH, visibility, and warning configurations are correctly tailored to each platform's requirements.
383-402: LGTM! Comprehensive installation rules for Python package contents.The install directives properly handle Python source files, type stubs, and optional share data with appropriate filtering.
439-524: Testing configuration is well-structured and properly configured.The test setup correctly copies test files, configures the environment, and defines individual test targets for better granularity. Pytest is already properly listed as a test dependency in
pyproject.tomlunder both thetestanddevdependency groups, as well as incibuildwheel's test requirements, so runtime execution is well-supported.
- Remove reference to deleted requirements_bld.txt in openms_ci_matrix_full.yml (dependencies now managed via pyproject.toml) - Fix CIBW_ENVIRONMENT paths for Linux builds: use /project instead of github.workspace (cibuildwheel runs in Docker where project is at /project) - Fix YAML multiline format: change > to | to preserve newlines in CIBW_ENVIRONMENT (> folds lines into invalid single-line format) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (2)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (2)
308-311: delocate installation may not persist into cibuildwheel environment.As previously noted,
pip install delocateon line 311 installs delocate in the host environment, but cibuildwheel runs wheel repair in an isolated environment. Move the installation toCIBW_BEFORE_BUILD(similar to the Windows pattern on line 386) and remove the host-level pip install.🔎 Proposed fix
- name: Install dependencies for wheel building run: | bash tools/ci/deps-macos.sh - pip install delocate - name: Build wheels with cibuildwheel uses: pypa/[email protected] with: package-dir: src/pyOpenMS output-dir: wheelhouse env: CIBW_BUILD: "cp310-macosx_arm64 cp311-macosx_arm64 cp312-macosx_arm64 cp313-macosx_arm64" CIBW_ARCHS_MACOS: "arm64" + CIBW_BEFORE_BUILD: "pip install delocate" CIBW_ENVIRONMENT: |
452-458: Publish condition may match unintended branches or tags.As previously noted,
contains(github.ref, 'develop')will match any ref containing "develop" as a substring (e.g., "develop-test", "feature/develop-new"). Use exact matching instead:github.ref == 'refs/heads/develop'orgithub.ref_name == 'develop'. The same issue applies to the "nightly" and "Release" checks.🔎 Proposed fix
- name: Publish to nightly PyPI - if: contains(github.ref, 'develop') || contains(github.ref, 'nightly') || (contains(github.ref, 'Release') && !inputs.upload-to-pypi) + if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/nightly' || (startsWith(github.ref, 'refs/tags/Release') && !inputs.upload-to-pypi) uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://pypi.cs.uni-tuebingen.de/Similarly, update line 462:
- name: Publish to PyPI - if: contains(github.ref, 'Release') && inputs.upload-to-pypi + if: startsWith(github.ref, 'refs/tags/Release') && inputs.upload-to-pypi uses: pypa/gh-action-pypi-publish@release/v1
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/openms_ci_matrix_full.yml(1 hunks).github/workflows/pyopenms-wheels-cibuildwheel.yml(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/openms_ci_matrix_full.yml
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
📚 Learning: 2025-12-17T08:12:58.563Z
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
Applied to files:
.github/workflows/pyopenms-wheels-cibuildwheel.yml
🔇 Additional comments (2)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (2)
28-214: Well-structured multi-platform OpenMS build jobs.The build jobs correctly separate OpenMS compilation from wheel building, use platform-appropriate tooling, and produce minimal artifacts containing only what pyOpenMS needs. The artifact packaging is consistent across all platforms.
401-433: Effective cross-platform wheel testing strategy.The matrix-based testing approach validates wheels on all target platforms using appropriate smoke tests. Testing with Python 3.12 is sufficient since cibuildwheel already ensures compatibility across Python versions.
The pyOpenMS CMakeLists.txt requires numpy and Cython to be available during CMake configure (to find include directories). Install minimal dependencies when PYOPENMS=ON is set. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Move inline pip install to a dedicated requirements-build.txt file for better maintainability. This keeps build dependencies in one place and makes them easier to update. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Parse pyproject.toml [build-system].requires with tomllib - Exclude py-build-cmake (not needed for CMake configure) - Delete temporary requirements-build.txt 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Multi-line Python code inside shell run block was causing YAML parser errors. Consolidated to single line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Nice! Yes looks very close! More changes than I expected. Probably a lot of things to test still. |
|
seems the AI struggles with:
|
py-build-cmake doesn't inherit CMAKE_PREFIX_PATH from environment. Pass it via config settings to ensure CMake finds dependencies: - Linux: /contrib-build and /project/openms-build - macOS: /opt/homebrew, libomp, and openms-build - Windows: Qt6, contrib, and openms-build 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
cibuild.cmake expects a 'pyopenms' target, but the new build system creates 'pyopenms_compile'. Add alias target for backwards compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/pyOpenMS/CMakeLists.txt (1)
457-527: Test library paths not adjusted for standalone builds despite build mode detection.The CMakeLists.txt explicitly documents two build modes (lines 11-17): integrated (
PYOPENMS=ON) and standalone (py-build-cmake). The code detects the mode (lines 28-30) usingif(NOT TARGET OpenMS)and callsfind_package(OpenMS)for standalone builds with the OpenMS_ROOT environment variable.However, test configuration (lines 462, 505, 515, 525) hardcodes
LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/libwithout considering the build mode. For integrated builds, CMAKE_BINARY_DIR is the OpenMS root and this is correct. For standalone builds, CMAKE_BINARY_DIR points only to the pyOpenMS subdirectory, making this path incorrect.While
BUILD_WITH_INSTALL_RPATH=1(lines 326, 364) may allow tests to pass via embedded library paths in extension modules, the explicit LD_LIBRARY_PATH setting is technically wrong for standalone builds. Adjust tests to use the OpenMS library path determined byfind_package(OpenMS)when in standalone mode.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/pyopenms-wheels-cibuildwheel.yml(1 hunks)src/pyOpenMS/CMakeLists.txt(2 hunks)
🧰 Additional context used
🧠 Learnings (7)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
📚 Learning: 2025-12-17T08:12:58.563Z
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
Applied to files:
.github/workflows/pyopenms-wheels-cibuildwheel.yml
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/*Test.cpp : Follow naming convention: `ClassNameTest.cpp` for `ClassName`
Applied to files:
src/pyOpenMS/CMakeLists.txt
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: build-openms-linux
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
🔇 Additional comments (4)
src/pyOpenMS/CMakeLists.txt (4)
8-38: Well-documented dual build mode support.The clear documentation of standalone vs integrated build modes and the conditional OpenMS finding logic properly support both py-build-cmake standalone builds and traditional OpenMS integration. The fallback for missing git info is also well-handled.
93-127: Robust dependency detection with proper error handling.The execute_process calls correctly use RESULT_VARIABLE to detect failures and issue FATAL_ERROR messages with context, ensuring build failures are caught early rather than producing confusing errors later.
164-227: Well-structured centralized build directory.The PYOPENMS_BUILD_DIR approach consolidates all build outputs in one location, and the _copy_assets helper cleanly handles file copying. The inline env.py generation (replacing the old template approach) is more maintainable and directly couples configuration with CMake variables.
307-381: Dual build mode handled correctly with appropriate install targets.The multi-module build creates per-module targets (pyopenms_1, pyopenms_2, etc.) aggregated by a custom target, while single-module build creates a library target directly. Both modes correctly install to the python_modules component for py-build-cmake integration. The RPATH settings ensure runtime library loading works correctly across platforms.
…tings py-build-cmake wasn't picking up CMAKE_PREFIX_PATH from config settings. CMake reads CMAKE_PREFIX_PATH from environment automatically, so: - Move CMAKE_PREFIX_PATH back to CIBW_ENVIRONMENT - Use colon separator for Linux/macOS, semicolon for Windows - Add OpenMP_ROOT for macOS to help FindOpenMP 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 2
♻️ Duplicate comments (4)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (4)
24-27: Unused environment variable with Python 3.14 already flagged.The
PYTHON_VERSIONSenvironment variable is defined but not referenced anywhere in the workflow, and includes Python 3.14 which isn't present in anyCIBW_BUILDstrings.
309-312: delocate installation location issue already flagged.Installing delocate in the host environment won't persist into cibuildwheel's isolated build environment.
380-392: Qt6_Dir reference issue already flagged; delvewheel approach is correct.The
Qt6_Dirreference issue on line 390 was flagged in a previous review. Note that thedelvewheelinstallation inCIBW_BEFORE_BUILD(line 387) is the correct pattern—unlike the macOS delocate installation which is in the wrong location.
453-459: Publish condition issue already flagged.The
contains(github.ref, 'develop')condition for branch matching was flagged in a previous review.
🧹 Nitpick comments (1)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (1)
429-434: Consider expanding test coverage beyond basic import.The current test only verifies that pyopenms imports and a single function works. Consider adding
CIBW_TEST_COMMANDto the build jobs to run a subset of the test suite within cibuildwheel's environment, or expand this job to run more comprehensive tests.Example: Add CIBW_TEST_COMMAND to build jobs
CIBW_TEST_COMMAND: "python -c \"import pyopenms; pyopenms.EmpiricalFormula('C6H12O6').getMonoWeight()\""
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/pyopenms-wheels-cibuildwheel.yml(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
📚 Learning: 2025-12-17T08:12:58.563Z
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
Applied to files:
.github/workflows/pyopenms-wheels-cibuildwheel.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: build-openms-windows
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: cppcheck-test
🔇 Additional comments (7)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (7)
10-22: Workflow triggers look well-configured.The trigger configuration appropriately handles release tags, nightly branches, and PR validation. The
pull_requesttrigger ondevelopenables CI validation before merge.
71-107: ARM64 build job mirrors x64 configuration correctly.The ARM64 Linux build maintains consistency with the x64 build configuration, using the appropriate ARM-specific container image and runner.
109-147: macOS build job is well-structured.The macOS ARM64 build correctly uses Homebrew paths and OpenMP configuration. The artifact packaging follows the same pattern as Linux builds for consistency.
235-249: Linux x64 cibuildwheel configuration is appropriate.The configuration correctly uses the matching manylinux container, sets required environment variables, and uses auditwheel for wheel repair. The
OpenMS_ROOTandCMAKE_PREFIX_PATHare properly configured for the extracted build artifacts.
272-286: Linux ARM64 wheel build maintains consistency with x64.The ARM64 configuration mirrors the x64 setup with appropriate architecture-specific settings.
439-448: Artifact consolidation for publishing is well-implemented.Using
pattern: wheels-*withmerge-multiple: trueelegantly consolidates all platform wheels into a singledist/directory for publishing.
159-166: No action needed. Qt 6.8.3 is available in install-qt-action@v4 and meets OpenMS requirements (Qt 6 >= 6.2).
The cibuildwheel action needs to authenticate to GHCR to pull the OpenMS manylinux container images. Without authentication, Docker fails with "No such image" errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Environment variables set in CIBW_ENVIRONMENT are not automatically passed to CMake when py-build-cmake runs inside the container. Use CIBW_CONFIG_SETTINGS to explicitly pass CMAKE_PREFIX_PATH as a CMake option. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
But that is just because it still uses the cmake approach in openms-ci-full. It should switch to a simple Where does it have problems setting the version? Version is a bit tricky since py-build-cmake only supports dynamic=["version"] based on a version file on their main branch. Apparently it can read it from |
|
Coderabbit comments should be addressed. They look all valid. I'm not completely sure anymore about the Qt Dir but it should just use the same variables as in openms-ci-full where it works. |
The semicolon in CIBW_CONFIG_SETTINGS was being interpreted as a shell command separator. Move CMAKE_PREFIX_PATH back to CIBW_ENVIRONMENT where CMake reads it directly, using colon as the path separator for Linux. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Installing delocate in the host environment doesn't persist into the cibuildwheel isolated environment. Move it to CIBW_BEFORE_BUILD to ensure it's available during wheel repair. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 0
♻️ Duplicate comments (5)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (5)
24-27: Unused environment variable already flagged.The
PYTHON_VERSIONSvariable is defined but not referenced, and Python 3.14 is listed but not included in anyCIBW_BUILDstrings. This was flagged in a previous review.
57-63: Tar command references non-existent path—already flagged.The
src/openms/includepath doesn't exist in the build directory (headers are generated tobuild/include/OpenMS/). Additionally,cmake/Modules/is missing. This was flagged in a previous review and applies to all platform build jobs.
323-326: delocate installation issue already flagged.The
pip install delocatein the host environment won't persist into cibuildwheel's isolated build environment. This was noted in a previous review—consider moving toCIBW_BEFORE_BUILD.
402-406: Qt6_Dir reference issue already flagged.The
${{ env.Qt6_Dir }}reference inCMAKE_PREFIX_PATHmay not resolve correctly as noted in a previous review. Consider using${{ env.QT_ROOT_DIR }}instead.
467-474: Publish condition issue already flagged.The
contains(github.ref, 'develop')condition won't match correctly for thedevelopbranch. Usegithub.ref == 'refs/heads/develop'as noted in a previous review.
🧹 Nitpick comments (5)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (5)
368-377: Consider including contrib in the OpenMS build artifact to avoid redundant download.The contrib download is performed in both
build-openms-windowsandbuild-wheels-windowsjobs. Including it in the build artifact would eliminate this ~100MB+ redundant download and speed up the workflow.
438-448: Consider testing multiple Python versions.Wheels are built for Python 3.10, 3.11, 3.12, and 3.13, but only 3.12 is tested. Version-specific binding issues (especially with Python 3.13's C API changes) could go undetected. Consider expanding the matrix to test at least 3.10 and 3.13.
🔎 Proposed enhancement
+ strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + artifact: wheels-linux-x64 + python: '3.10' + - os: ubuntu-latest + artifact: wheels-linux-x64 + python: '3.13' + # ... similar for other platforms + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: ${{ matrix.python }}
10-22: Add concurrency control to prevent parallel runs from conflicting.Without a
concurrencyblock, multiple pushes or PRs could trigger overlapping workflow runs, wasting CI resources and potentially causing artifact conflicts. Consider adding concurrency control:🔎 Proposed addition after line 22
concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true
32-51: Add timeout-minutes to prevent hung jobs from consuming CI resources indefinitely.None of the jobs define
timeout-minutes. Long-running builds (especially on slower ARM runners or during cibuildwheel compilation) could hang indefinitely if something goes wrong. Consider adding reasonable timeouts:🔎 Proposed addition
build-openms-linux: runs-on: ubuntu-latest + timeout-minutes: 60 container: ghcr.io/openms/contrib_manylinux_2_34:latest-amd64Apply similar timeouts to all jobs (e.g., 60-90 minutes for build jobs, 30 minutes for test jobs).
470-473: Consider using token-based authentication for nightly PyPI if supported.The workflow uses username/password authentication for the internal nightly PyPI server. Token-based authentication is a security best practice and aligns with how the production PyPI pattern operates; if the internal server supports it, switching to tokens would improve security by limiting credential scope.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/pyopenms-wheels-cibuildwheel.yml(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
📚 Learning: 2025-12-17T08:12:58.563Z
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
Applied to files:
.github/workflows/pyopenms-wheels-cibuildwheel.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
- GitHub Check: build-openms-macos
- GitHub Check: build-openms-windows
- GitHub Check: build-openms-linux-arm
- GitHub Check: build-openms-linux
- GitHub Check: cppcheck-test
🔇 Additional comments (2)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (2)
242-256: LGTM!The cibuildwheel configuration for Linux correctly mounts the project at
/projectand sets up the environment variables appropriately. The use of the OpenMS contrib container image with pre-built dependencies is a good approach.
286-300: LGTM!The ARM64 Linux configuration correctly mirrors the x64 setup with appropriate architecture-specific settings.
There was a problem hiding this comment.
Actionable comments posted: 3
♻️ Duplicate comments (5)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (5)
24-27: Unused environment variablePYTHON_VERSIONS.This environment variable is defined but never referenced in the workflow. Additionally, it includes Python 3.14, but none of the
CIBW_BUILDstrings includecp314-*. Either remove this variable or use it to dynamically generate the build matrix.
53-68: Tar command references non-existent pathsrc/openms/includein build directory.The build directory doesn't contain
src/openms/include—generated headers are placed inbuild/include/OpenMS/. This will cause the tar command to fail. Replacesrc/openms/includewithinclude/and consider addingcmake/Modules/for Find*.cmake files needed by OpenMSConfig.cmake.
336-341:MACOSX_DEPLOYMENT_TARGET=14.0limits wheel compatibility to macOS Sonoma+.This restricts wheels to macOS 14 and later, excluding users on earlier versions. Consider lowering to 11.0 (the minimum for ARM64) if dependencies permit.
400-406:${{ env.Qt6_Dir }}may not propagate correctly into cibuildwheel environment.The
Qt6_Direnvironment variable is set byinstall-qt-actionon the host runner, but cibuildwheel runs builds in isolation. The expression${{ env.Qt6_Dir }}is evaluated at workflow parse time, but this value needs to be available when the step runs. Consider usingQT_ROOT_DIRor ensuring the path is explicitly captured and passed.
467-474: Publish condition usescontains()which may not match correctly.
contains(github.ref, 'develop')won't match branch pushes wheregithub.refisrefs/heads/develop. Usegithub.ref == 'refs/heads/develop'orgithub.ref_name == 'develop'for precise matching.
🧹 Nitpick comments (2)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (2)
368-376: Consider including contrib in the Windows artifact to avoid redundant download.The contrib is downloaded twice: once in
build-openms-windowsand again inbuild-wheels-windows. While this works, it adds ~2-3 minutes to the wheel build. Consider including the contrib inopenms-build-windows.zipor extracting the minimal required DLLs.
359-366: Qt is installed twice—once in build and once in wheel jobs.Similar to contrib, Qt is installed in both
build-openms-windowsandbuild-wheels-windows. This is acceptable sinceinstall-qt-actionuses caching, but be aware of the duplicated setup time.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/pyopenms-wheels-cibuildwheel.yml(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
📚 Learning: 2025-12-17T08:12:58.563Z
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
Applied to files:
.github/workflows/pyopenms-wheels-cibuildwheel.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: build-openms-windows
- GitHub Check: build-openms-macos
- GitHub Check: build-openms-linux
- GitHub Check: build-openms-linux-arm
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
- GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: cppcheck-test
🔇 Additional comments (3)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (3)
242-256: LGTM!The cibuildwheel configuration for Linux x64 is well-structured with appropriate environment variables, container image, and repair command.
286-300: LGTM!The ARM64 cibuildwheel configuration appropriately mirrors the x64 setup with the correct architecture-specific image and build targets.
416-448: LGTM!The test matrix covers all platforms with a reasonable smoke test. Using
fail-fast: falseensures all platform results are collected. Testing only Python 3.12 is acceptable for a basic validation, though you may consider testing multiple Python versions in the future.
…ions - Fix Package OpenMS build: change src/openms/include to include/ (generated headers), add cmake/ and OpenMSTargets.cmake - Fix Windows Qt6_Dir: use shell environment variable expansion instead of GitHub expression that's evaluated at parse time - Fix publish conditions: use exact match (github.ref_name) instead of contains() which can match substrings incorrectly - Remove unused PYTHON_VERSIONS env variable - Add CMAKE_PREFIX_PATH and OpenMS_ROOT passthrough in pyproject.toml cmake.env section for py-build-cmake 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (1)
198-206: Replace$Qt6_Dirwith$QT_ROOT_DIRin CMAKE_PREFIX_PATH.Line 200 references
$Qt6_Dir, which is no longer set byinstall-qt-action@v4. The action removed Qt5_Dir and Qt6_DIR environment variables and requires using QT_ROOT_DIR instead. Change the CMAKE_PREFIX_PATH to use$QT_ROOT_DIRor$QT_ROOT_DIR/lib/cmake.
🧹 Nitpick comments (5)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (2)
348-356: Consider documentingMACOSX_DEPLOYMENT_TARGET=14.0limitation.Setting
MACOSX_DEPLOYMENT_TARGET=14.0restricts wheels to macOS 14 (Sonoma) and later. If this is intentional due to dependency requirements on the macos-14 runner, consider adding a comment explaining the constraint. If broader compatibility is desired, evaluate lowering to 11.0 (minimum for ARM64).
462-472: Consider testing with multiple Python versions.Currently, only Python 3.12 is tested, but wheels are built for 3.10-3.13. Consider adding a matrix for Python versions to ensure all wheels are functional.
🔎 Proposed enhancement
strategy: fail-fast: false matrix: + python-version: ['3.10', '3.11', '3.12', '3.13'] include: - os: ubuntu-latest artifact: wheels-linux-x64 - os: ubuntu-22.04-arm artifact: wheels-linux-arm64 - os: macos-14 artifact: wheels-macos-arm64 - os: windows-latest artifact: wheels-windows-x64 steps: # ... download artifact ... - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: ${{ matrix.python-version }} - name: Test wheel shell: bash run: | - pip install wheelhouse/*.whl + # Install wheel matching the current Python version + pip install wheelhouse/*cp$(echo ${{ matrix.python-version }} | tr -d '.')*.whlsrc/pyOpenMS/pyproject.toml (3)
56-60: Python 3.14 classifier is premature.Python 3.14 is not yet released. While the cibuildwheel config includes
cp314-*, consider removing the 3.14 classifier until the Python version is officially released and tested.🔎 Proposed fix
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", "Topic :: Scientific/Engineering :: Bio-Informatics",
64-68: Consider adding version constraints topandasdependency.The
pandasdependency has no version constraint, which could lead to compatibility issues with future breaking changes. Consider specifying a minimum version.🔎 Proposed fix
dependencies = [ "numpy>=2.0", - "pandas", + "pandas>=1.5", "matplotlib>=3.5", ]
199-208: macOSbefore-allduplicates workflow dependency installation.The
before-allin pyproject.toml installs Homebrew packages, but the workflow also runsdeps-macos.sh. When using the workflow, this may result in redundant installations. Consider removing one or documenting the relationship.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/pyopenms-wheels-cibuildwheel.yml(1 hunks)src/pyOpenMS/pyproject.toml(1 hunks)
🧰 Additional context used
🧠 Learnings (6)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
📚 Learning: 2025-12-17T08:12:58.563Z
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
Applied to files:
.github/workflows/pyopenms-wheels-cibuildwheel.yml
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use appropriate OpenMS containers and algorithms
Applied to files:
.github/workflows/pyopenms-wheels-cibuildwheel.yml
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Follow the established error handling patterns
Applied to files:
.github/workflows/pyopenms-wheels-cibuildwheel.yml
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Applied to files:
src/pyOpenMS/pyproject.toml
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
Applied to files:
src/pyOpenMS/pyproject.toml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
- GitHub Check: build-openms-linux-arm
- GitHub Check: build-openms-linux
- GitHub Check: build-openms-windows
- GitHub Check: build-openms-macos
- GitHub Check: cppcheck-test
🔇 Additional comments (12)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (6)
10-22: Trigger configuration looks good.The workflow properly triggers on Release tags, nightly/py_nightly_test branches, and develop PRs. The
workflow_dispatchwithupload-to-pypiboolean input provides manual control for releases.
257-271: Linux wheel build configuration looks correct.The cibuildwheel configuration properly sets up the manylinux environment with OpenMS paths, uses the custom container image, and configures auditwheel for wheel repair.
491-508: Publish configuration looks correct.The publish conditions properly distinguish between nightly (develop/nightly branches, Release tags without pypi flag) and official PyPI releases. The use of
github.ref_namefor branch matching is correct.
65-69: Short artifact retention is appropriate for intermediate builds.The 1-day retention for OpenMS build artifacts is sensible since they're only needed for the dependent wheel-building jobs. Wheel artifacts use default retention which is appropriate for downstream consumption.
119-135: No action needed.ninjais already installed intools/ci/deps-macos.shas part of the required dependencies.
409-430: Qt6_Dir variable appears reliable; CIBW_ENVIRONMENT handles Unix-style variable expansion correctly on Windows.The
Qt6_Dirreference is set properly by install-qt-action. CIBW_ENVIRONMENT supports variable expansion with$syntax across platforms including Windows, so the$PYOPENMS_*variables inCIBW_ENVIRONMENTshould expand correctly. The semicolon-delimited path format inCMAKE_PREFIX_PATHis appropriate for Windows.src/pyOpenMS/pyproject.toml (6)
77-98: Dependency groups configuration is appropriate.The duplication between
build-system.requiresanddependency-groups.buildis intentional—they serve different purposes (PEP 517 build isolation vs. PEP 735 development workflows).
127-148: py-build-cmake CMake configuration looks well-structured.The configuration properly sets build type, passes environment variables for finding OpenMS, and configures parallel builds. The
NO_DEPENDENCIES=ONflag correctly defers library bundling to wheel repair tools.
157-168: Includecp314-*builds cautiously.Python 3.14 is not yet released, so
cp314-*builds will fail. This is acceptable if the workflow'sCIBW_BUILDenvironment variable (which only includes cp310-cp313) overrides this setting.
236-240: Pytest configuration is well-defined.The configuration follows standard conventions for test discovery and output formatting.
19-26: The dependencyCython>=3.1.0is valid and appropriate. Cython 3.1.0 was released on 2025-05-08, and multiple stable patch releases have followed (3.1.1 through 3.1.7). The version constraint is reasonable for a modern build configuration.Likely an incorrect or invalid review comment.
189-193: No action needed. The workflow'sCIBW_ENVIRONMENTvariables correctly override thepyproject.tomldefaults—this is guaranteed by cibuildwheel's design where environment variables always take precedence. The different paths (/openms-buildin pyproject.toml vs./project/openms-buildin workflows) are intentional, reflecting their respective build contexts (local development vs. containerized CI). Each configuration sets the appropriate path for its environment.Likely an incorrect or invalid review comment.
The generated headers (OpenMSConfig.h, etc.) are in src/openms/include/ within the build directory, not include/. Also remove non-existent cmake/ and bin/ directories from the package. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
cibuildwheel expects CIBW_ENVIRONMENT as space-separated KEY=VALUE pairs on a single line. Multi-line YAML blocks (| or >) were causing only the first variable to be parsed. This fixes the KeyError: 'CMAKE_PREFIX_PATH' error in py-build-cmake. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
OpenMSConfig.cmake references CMake find modules (like FindLIBSVM.cmake) from a Modules/ subdirectory. Include this in the tar/7z packages so that find_dependency() calls can locate dependencies. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
@timosachsenberg Ready to review. I think I will remove the pyopenms building from the regular CI. No need to build twice, right? |
|
Awesome! Thanks so much. This was an annoying one (or how you said: "Probably just a prompt and the agent can do it" ;) ) |
|
codex review |
|
Yes, those are all part of the final removal |
timosachsenberg
left a comment
There was a problem hiding this comment.
looks good
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/pyOpenMS/README.md`:
- Around line 95-100: The README currently instructs to install build deps via
"pip install -r requirements_bld.txt", but requirements_bld.txt was removed;
update that section (the step under "Install build dependencies") to offer one
of the supported alternatives from pyproject.toml: replace the pip -r line with
either "uv sync --only-group build" to install build deps only, "uv build
--wheel" to let the tool install deps and build a wheel, or "pip install -e
.[dev]" for editable/dev install with all deps; ensure the README lists these
three options and brief guidance to pick one.
♻️ Duplicate comments (1)
src/pyOpenMS/CMakeLists.txt (1)
440-441: Shell operators in COMMAND won't work without shell invocation.The
|| trueandQt*glob in the codesign commands (lines 440-441) are shell features that don't work in CMake'sCOMMANDcontext, which doesn't use an intermediate shell. The glob won't expand, and|| truewill be passed literally.🔧 Proposed fix using shell invocation
add_custom_target(pyopenms_fix_deps ALL COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/MacOSX/fix_dependencies.rb -l "${PYOPENMS_BUILD_DIR}/pyopenms" -e "@rpath/" -f -v - COMMAND codesign --force --sign - ${PYOPENMS_BUILD_DIR}/pyopenms/Qt* || true - COMMAND codesign --force --sign - ${PYOPENMS_BUILD_DIR}/pyopenms/*.dylib || true + COMMAND /bin/sh -c "codesign --force --sign - '${PYOPENMS_BUILD_DIR}/pyopenms'/Qt* 2>/dev/null || true" + COMMAND /bin/sh -c "codesign --force --sign - '${PYOPENMS_BUILD_DIR}/pyopenms'/*.dylib 2>/dev/null || true" COMMENT "Fixing deps and codesigning pyopenms binaries in build dir" )
🧹 Nitpick comments (5)
cmake/cwl_generation.cmake (1)
37-44: LGTM! Conditional validation is correctly implemented.The guard ensures validation only runs when cwltool is available, complementing the warning message above. The added
COMMENTdirective improves build output clarity.Consider tracking the TODO on line 40 (
--no-warningflag removal) as a follow-up issue to address any underlying cwltool warnings that are currently being suppressed.Would you like me to open an issue to track the removal of the
--no-warningflag?src/pyOpenMS/CMakeLists.txt (3)
61-69: Versioning TODO is acknowledged; consider creating a tracking issue.The TODO comment correctly identifies the versioning challenge. Since pyproject.toml is now the source of truth (with CI patching for nightly builds), this fallback to
OpenMS_VERSIONis reasonable for development builds. Consider creating an issue to track the complete migration away fromCF_OPENMS_PACKAGE_VERSION.Would you like me to help draft an issue to track the versioning strategy consolidation?
163-171: Asset copy helper may miss new files and fail on nested paths.The
file(GLOB ...)withoutCONFIGURE_DEPENDSwon't detect newly added files until manual reconfigure. Additionally, if_relative_pathcontains subdirectories,configure_filemay fail because parent directories aren't created.🔧 Proposed fix
function(_copy_assets _asset_dir _regex _target_dir) - file(GLOB _assets "${_asset_dir}/${_regex}") + file(GLOB _assets CONFIGURE_DEPENDS "${_asset_dir}/${_regex}") foreach(_asset_file ${_assets}) file(RELATIVE_PATH _relative_path ${_asset_dir} ${_asset_file}) if(NOT IS_DIRECTORY ${_asset_file}) + get_filename_component(_parent_dir "${_target_dir}/${_relative_path}" DIRECTORY) + file(MAKE_DIRECTORY "${_parent_dir}") configure_file(${_asset_file} ${_target_dir}/${_relative_path} COPYONLY) endif() endforeach() endfunction()
264-268: Consider using BYPRODUCTS instead of OUTPUT-only custom command.This
add_custom_commanddeclaresOUTPUTfiles but has noCOMMAND. While this is a valid CMake pattern to express "these files are produced elsewhere," it can cause issues with the Ninja generator (which may not correctly track the dependency). UsingBYPRODUCTSon the main command (lines 252-262) would be more robust.🔧 Proposed fix
add_custom_command( OUTPUT ${PYGEN_SENTINEL} + BYPRODUCTS ${PYCPPFILES} ${PYPYXFILES} ${PYGEN_EXTRA_FILES} # Fake dependency on OpenMS to trigger rebuild when headers change # TODO: Should depend on .pxd files instead for more accurate rebuilds DEPENDS OpenMS COMMAND ${Python_EXECUTABLE} create_cpp_extension.py COMMAND ${CMAKE_COMMAND} -E touch ${PYGEN_SENTINEL} COMMENT "Creating C++ extension with autowrap and Cython" WORKING_DIRECTORY ${PYOPENMS_BUILD_DIR} USES_TERMINAL ) -add_custom_command( - OUTPUT ${PYCPPFILES} ${PYPYXFILES} ${PYGEN_EXTRA_FILES} - DEPENDS ${PYGEN_SENTINEL} - COMMENT "Generated files depend on successful code generation" -) - add_custom_target(compile_pxds DEPENDS ${PYCPPFILES} ${PYPYXFILES})src/pyOpenMS/README.md (1)
187-187: Use proper markdown link syntax for URL.The bare URL should use markdown link syntax for better rendering and accessibility.
🔧 Proposed fix
-**autowrap documentation:** https://github.com/OpenMS/autowrap/blob/master/docs/README.md +**autowrap documentation:** [autowrap README](https://github.com/OpenMS/autowrap/blob/master/docs/README.md)
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
.github/workflows/openms_ci_matrix_full.yml.github/workflows/test_pyopenms.ymlcmake/cwl_generation.cmakesrc/pyOpenMS/CMakeLists.txtsrc/pyOpenMS/README.mdtools/ci/capture-env.shtools/ci/cibuild.cmake
💤 Files with no reviewable changes (3)
- tools/ci/cibuild.cmake
- tools/ci/capture-env.sh
- .github/workflows/test_pyopenms.yml
🧰 Additional context used
📓 Path-based instructions (1)
**
📄 CodeRabbit inference engine (AGENTS.md)
File extensions must be lowercase except for
ML,XML, andmzData
Files:
src/pyOpenMS/README.mdcmake/cwl_generation.cmakesrc/pyOpenMS/CMakeLists.txt
🧠 Learnings (35)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: PR checklist: update `AUTHORS` and `CHANGELOG`, run/extend tests, update pyOpenMS bindings when needed
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/addons/*.pyx : Regenerate pyOpenMS after addon changes by removing `.cpp_extension_generated` and rebuilding with `--target pyopenms`
Learnt from: jpfeuffer
Repo: OpenMS/OpenMS PR: 8530
File: src/pyOpenMS/CMakeLists.txt:78-80
Timestamp: 2026-01-12T12:26:12.890Z
Learning: In the OpenMS build system (src/pyOpenMS/CMakeLists.txt and related), when building pyOpenMS in standalone mode (via find_package(OpenMS REQUIRED)), the OpenMSConfig.cmake automatically finds all necessary public dependencies including Qt6, so Qt6_VERSION and related variables are available in both standalone and in-tree builds.
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: PR checklist: update `AUTHORS` and `CHANGELOG`, run/extend tests, update pyOpenMS bindings when needed
Applied to files:
src/pyOpenMS/README.md.github/workflows/openms_ci_matrix_full.ymlsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Applied to files:
src/pyOpenMS/README.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/pxds/*.pxd : pyOpenMS `wrap-doc:` formatting requires exactly `# ` (hash + 2 spaces) for all documentation continuation lines; changing to `#` or `# ` breaks parsing
Applied to files:
src/pyOpenMS/README.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/pxds/*.pxd : pyOpenMS `.pxd` signatures must stay synchronized with corresponding C++ API changes
Applied to files:
src/pyOpenMS/README.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/addons/*.pyx : Regenerate pyOpenMS after addon changes by removing `.cpp_extension_generated` and rebuilding with `--target pyopenms`
Applied to files:
src/pyOpenMS/README.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,pxd,py} : Use snake_case for all Python-facing names and DataFrame column names in pyOpenMS
Applied to files:
src/pyOpenMS/README.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-11-18T20:08:08.900Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8374
File: src/pyOpenMS/pxds/SimpleSVM.pxd:0-0
Timestamp: 2025-11-18T20:08:08.900Z
Learning: In pyOpenMS .pxd files, copy constructors should be declared for wrapped C++ classes (e.g., `ClassName(ClassName&) except + nogil`) even when the C++ class has a deleted copy constructor. This is a standard pyOpenMS/Cython convention required for proper wrapper generation and Python object semantics.
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/addons/*.pyx : pyOpenMS addons must use 4-space indentation and maintain minimal code; avoid redundant aliases
Applied to files:
src/pyOpenMS/README.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/addons/*.pyx : Python addon methods must not be added to `.pxd` files; use `src/pyOpenMS/addons/` or `_dataframes.py` wrappers instead
Applied to files:
src/pyOpenMS/README.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/pxds/*.pxd : pyOpenMS `.pxd` files must use `cdef cppclass ClassName:` for non-inheriting classes without a base class
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/addons/*.pyx : Do not add custom `__init__` methods in pyOpenMS unless required; it overrides autowrap dispatchers
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
Applied to files:
src/pyOpenMS/README.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/addons/*.pyx : Avoid `cdef` typed variables for autowrap return values inside `def` methods; use Python type checks instead
Applied to files:
src/pyOpenMS/README.mdsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,py} : pyOpenMS DataFrame pattern: `get_data_dict()` in addon returns numpy arrays; `get_df()` in `_dataframes.py` wraps with pandas
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Test files are located in `src/tests/`
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/tests/class_tests/openms/source/*_test.cpp : Unit tests must be placed in `src/tests/class_tests/openms/source/` with naming pattern `ClassName_test.cpp`
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/*Test.cpp : Follow naming convention: `ClassNameTest.cpp` for `ClassName`
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/tests/class_tests/openms/source/*_test.cpp : Use `START_SECTION` and `END_SECTION` macros in unit tests; wrap template methods with 2+ arguments in parentheses
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/tests/topp/** : TOPP tests must be registered in `src/tests/topp/CMakeLists.txt` and placed alongside test data
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/tests/class_tests/openms/executables.cmake : Test files must be registered in `src/tests/class_tests/openms/executables.cmake` to be included in the build
Applied to files:
src/pyOpenMS/README.mdcmake/cwl_generation.cmake.github/workflows/openms_ci_matrix_full.ymlsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/tests/class_tests/openms/source/*_test.cpp : Use `NEW_TMP_FILE(filename)` macro for each output file in tests to avoid side effects
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/tests/class_tests/libs/data/** : Test data files must be placed in `src/tests/class_tests/libs/data/` with names prefixed by class name (e.g., `ClassName_data.mzML`)
Applied to files:
src/pyOpenMS/README.md
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/topp/*.cpp : TOPP tool source files must be registered in `src/topp/executables.cmake` and added to `src/openms/source/APPLICATIONS/ToolHandler.cpp`
Applied to files:
cmake/cwl_generation.cmake
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.
Applied to files:
cmake/cwl_generation.cmakesrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-12-17T08:12:58.563Z
Learnt from: poshul
Repo: OpenMS/OpenMS PR: 8508
File: .github/workflows/openms_ci_matrix_full.yml:365-365
Timestamp: 2025-12-17T08:12:58.563Z
Learning: In the OpenMS CI workflows (.github/workflows/openms_ci_matrix_full.yml), architecture-specific THIRDPARTY tools are required dependencies. The workflow should fail immediately if these tools are not found, rather than continuing with warnings or graceful degradation.
Applied to files:
.github/workflows/openms_ci_matrix_full.ymlsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-05-23T10:58:51.257Z
Learnt from: pjones
Repo: OpenMS/OpenMS PR: 8042
File: doc/doxygen/install/install-linux.doxygen:37-37
Timestamp: 2025-05-23T10:58:51.257Z
Learning: In the OpenMS project, Doxygen is run with a non-standard working directory, so snippet paths that may look incorrect (like "../../tools/ci/deps-ubuntu.sh" in doc/doxygen/install/install-linux.doxygen) are actually correct. The snippet markers in shell scripts use the format "# [marker_name]" rather than the alternative "#! [marker_name]" format.
Applied to files:
.github/workflows/openms_ci_matrix_full.ymlsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-12T12:26:12.890Z
Learnt from: jpfeuffer
Repo: OpenMS/OpenMS PR: 8530
File: src/pyOpenMS/CMakeLists.txt:78-80
Timestamp: 2026-01-12T12:26:12.890Z
Learning: In the OpenMS build system (src/pyOpenMS/CMakeLists.txt and related), when building pyOpenMS in standalone mode (via find_package(OpenMS REQUIRED)), the OpenMSConfig.cmake automatically finds all necessary public dependencies including Qt6, so Qt6_VERSION and related variables are available in both standalone and in-tree builds.
Applied to files:
.github/workflows/openms_ci_matrix_full.ymlsrc/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to src/pyOpenMS/pxds/*.pxd : pyOpenMS `.pxd` files must declare default and copy constructors; use `cimport` instead of Python `import`
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-10-21T13:02:16.431Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8318
File: src/openms/include/OpenMS/ML/CLUSTERING/HashGrid.h:466-480
Timestamp: 2025-10-21T13:02:16.431Z
Learning: In OpenMS, when making internal methods public (e.g., in HashGrid.h), remove XXX/TODO comments about implementation details rather than documenting them in the public API documentation.
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2026-01-10T13:35:09.526Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T13:35:09.526Z
Learning: Applies to **/*.h : Use `todo` tags with assignee name (e.g., `todo JohnDoe fix this`) in Doxygen comments
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Follow the established error handling patterns
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Be aware of OpenMS dependencies and external libraries
Applied to files:
src/pyOpenMS/CMakeLists.txt
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Do not attempt to build OpenMS unless asked to do so
Applied to files:
src/pyOpenMS/CMakeLists.txt
🪛 LanguageTool
src/pyOpenMS/README.md
[grammar] ~138-~138: Ensure spelling is correct
Context: ...ons between C++ and Python ### Step 2: Addon Injection - Input: Manual addition...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
🪛 markdownlint-cli2 (0.18.1)
src/pyOpenMS/README.md
187-187: Bare URL used
(MD034, no-bare-urls)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: build-wheels-macos
- GitHub Check: build-wheels-windows
- GitHub Check: build-wheels-linux
- GitHub Check: build-wheels-linux-arm
- GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
- GitHub Check: cppcheck-test
🔇 Additional comments (15)
cmake/cwl_generation.cmake (1)
16-20: Good change to make cwltool optional.Downgrading from
FATAL_ERRORtoWARNINGimproves developer experience by allowing builds to proceed without cwltool installed while still informing users that CWL validation will be skipped. This aligns well with the PR's goal of making the build system more flexible..github/workflows/openms_ci_matrix_full.yml (6)
224-224: LGTM!Python version updated to 3.11, which correctly aligns with the
requires-python >= 3.10specified in the new pyproject.toml. This addresses the previously flagged version mismatch.
283-284: LGTM!The
uvinstallation is required for the pyOpenMS CMake target which executesuv sync --only-group devduring configuration, as confirmed in prior discussion.
325-325: LGTM!Adding
ccacheinstallation for macOS completes the cross-platform build caching setup, consistent with Windows (choco) and Ubuntu (deps-ubuntu.sh).
448-448: LGTM!Enabling CWL descriptor generation only when packaging (
pkg_type != 'none') is appropriate—CWL descriptors are relevant for distribution, not routine CI builds.
455-455: The variable nameMT_ENABLE_OPENMPis correct and matches the CMake configuration defined inCMakeLists.txt.
435-436: Logic correctly gates pyOpenMS builds to Ubuntu + g++ with proper dependency handling.The conditional logic properly enables pyOpenMS only for Ubuntu + g++ builds (PYOPENMS=ON, NO_DEPENDENCIES=OFF), while disabling it for other configurations (PYOPENMS=OFF, NO_DEPENDENCIES=ON). The NO_DEPENDENCIES option is a recognized CMake variable that controls whether dependencies are bundled during the build. When building pyOpenMS artifacts for wheels, NO_DEPENDENCIES=OFF ensures dependencies are included; other builds leave it ON to avoid unnecessary bundling. This aligns with the PR goal of building OpenMS once per platform and reusing artifacts.
src/pyOpenMS/CMakeLists.txt (6)
18-53: Prebuilt artifact reuse logic looks well-structured.The dual-path approach with
PYOPENMS_USE_PREBUILTcleanly separates CI wheel builds (which can reuse prebuilt artifacts) from full builds. The validation at lines 45-47 properly guards against missingPYOPENMS_PREBUILT_DIR.
139-153: Qt version and autowrap discovery are well-implemented.Using
Qt6_VERSIONdirectly (line 140) avoids the qmake query issues flagged in previous reviews. The autowrap discovery (lines 143-152) properly checksRESULT_VARIABLEand fails with a clear error message.
281-296: RPATH handling correctly supports both macOS and Linux.The
$ORIGIN/for Linux (line 287) addresses the previous review concern about Linux standalone wheels. ThePYOPENMS_PREPARE_WHEEL_REPAIRoption provides a clean separation between self-contained builds and wheel-repair-tool-compatible builds.
330-418: Module build targets are well-structured with consistent configuration.The multi-module and single-module paths are now consistent: both use
PRIVATEfortarget_include_directories, correct.pyifilenames, and proper RPATH settings. The install targets are correctly configured for py-build-cmake.
455-474: MSVC runtime handling now uses proper CMake module.Using
include(InstallRequiredSystemLibraries)and falling back toCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS(lines 458-461) properly addresses the previous concern about undefinedMSVS_RTLIBS. This is the correct approach for finding MSVC runtime libraries.
541-552: Test configuration correctly isolates from source tree.Copying tests to the build directory (line 545) before running pytest ensures tests import from the built package rather than the source tree. The conditional
if(TARGET OpenMS)correctly limits test registration to in-tree builds.src/pyOpenMS/README.md (2)
127-172: Build process documentation is thorough and accurate.The step-by-step explanation correctly describes the autowrap → Cython → C++ compilation pipeline and matches the CMake targets defined in
CMakeLists.txt. This is valuable documentation for contributors.
304-343: Test documentation provides clear guidance for contributors.The explanation of the
openms_test_data_dirfixture and environment variable override is helpful for developers writing new tests.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
|
Woohooo. In hindsight- what was the most challenging part? Stupid escape rules / syntax that behaves unpredictably? |
|
Passing variables through multiple layers and debugging non-macOS linking. |
Added 19 missing PRs to OpenMS 3.6.0 changelog: PyOpenMS: - #8530: Build system modernization with py-build-cmake - #8633: SpectrumNativeIDParser wrapper - #8655: Arrow/Parquet export with DataFrame methods (BREAKING: method renames) - #8661: Build dependency docs - #8664: Biosaur2Algorithm wrap-inherits - #8668: wrap-doc documentation - #8674: Docstring validation tests TOPP tools: - #8643: FileInfo FASTA stats - #8650: FileConverter MSP support - #8649: PeakPickerHiRes parameter OpenMS Library: - #8633: SpectrumNativeIDParser class - #8655: ArrowExport helper - #8651, #8656, #8659, #8660, #8662: Performance optimizations Fixes: - #8645: DataArray handling in filters - #8672: Test file correction - #8678: UniqueIdGenerator seed collision fix Build System: - #8675, #8676: Claude CI workflows Also reorganized misplaced entries from lines 122-129. Co-authored-by: Timo Sachsenberg <[email protected]>
* Add comprehensive changelog for OpenMS 3.6.0 Includes changes from 96 merged PRs since version 3.5.0: - General: macOS Intel discontinued, Ubuntu 24.04, notarization in CI - Dependencies: Autowrap >= 0.26.0, Eigen minimum 3.4.0 - PyOpenMS: Pythonic methods (__len__, __str__, __repr__, __hash__), DataFrame support, new wrappers, string handling improvements - TOPP tools: MapAligner spectra transformation, FileInfo improvements, IsobaricWorkflow fixes, SageAdapter thread handling - OpenMS Library: PeakFileOptions, ParamIterator, SpectrumAnnotator - Breaking changes: Matrix<T> Eigen decoupling, API renames, FileWatcher move - Bug fixes: NucleicAcidSearchEngine, LogConfigHandler, decoy generation - Documentation: Targeted Quantitation, parameter annotations, AGENTS.md - Build: macOS notarization, Parquet support, pytest fixtures Co-Authored-By: Claude Opus 4.5 <[email protected]> * Add missing changelog entries for recently merged PRs Added 19 missing PRs to OpenMS 3.6.0 changelog: PyOpenMS: - #8530: Build system modernization with py-build-cmake - #8633: SpectrumNativeIDParser wrapper - #8655: Arrow/Parquet export with DataFrame methods (BREAKING: method renames) - #8661: Build dependency docs - #8664: Biosaur2Algorithm wrap-inherits - #8668: wrap-doc documentation - #8674: Docstring validation tests TOPP tools: - #8643: FileInfo FASTA stats - #8650: FileConverter MSP support - #8649: PeakPickerHiRes parameter OpenMS Library: - #8633: SpectrumNativeIDParser class - #8655: ArrowExport helper - #8651, #8656, #8659, #8660, #8662: Performance optimizations Fixes: - #8645: DataArray handling in filters - #8672: Test file correction - #8678: UniqueIdGenerator seed collision fix Build System: - #8675, #8676: Claude CI workflows Also reorganized misplaced entries from lines 122-129. Co-authored-by: Timo Sachsenberg <[email protected]> --------- Co-authored-by: Claude Opus 4.5 <[email protected]> Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Timo Sachsenberg <[email protected]>
…tream) The merge with upstream/develop took upstream's simplified cibuild.cmake (PR OpenMS#8530 / Modernize pyOpenMS build system, which dropped the add_env_var_to_cache_if_exists macro), but the fork's build_dlls.yml workflow depends on cibuild.cmake injecting env vars (OPENMS_CONTRIB_LIBS, CMAKE_PREFIX_PATH, ENABLE_*, BUILD_TYPE, etc.) into the CMake cache. With upstream's version, those env vars never reach CMake and the build fails during configure. Restore the fork's working version (from 8799b41).
The merge with upstream/develop adopted upstream's PR OpenMS#8530-era FLASHHelperClasses.h (276 lines: PrecalculatedAveragine, LogMzPeak only) and ProForma.h (1155-line full parser). The fork's pre-merge versions contained additional symbols that fork-only FLASHIda code depends on: * FLASHHelperClasses::Tag, MassTag, DAG (used by FLASHTaggerAlgorithm, FLASHTnTAlgorithm, FLASHExtenderAlgorithm, FLASHTnTFile, and the FLASHIda subdirectory). Append the class definitions to the merged FLASHHelperClasses.h and their implementations to the matching .cpp. * ProForma — the fork had a small (66+414 LOC) serializer with addModification(), toProFormaString(), ProForma(AASequence&). Same name as upstream's ProForma but a completely different class. Reintroduce as FlashIdaProForma.{h,cpp} so it coexists with upstream's parser, and wire it into CHEMISTRY/sources.cmake. * FLASHTnTFile.cpp updated to use FlashIdaProForma instead of the upstream ProForma class (which doesn't have addModification etc.).
…iginally introduced in #5780, and switched to 'OFF' by default in #8530 (#9738) CI Matrix only uses 'OFF' for Ubuntu: https://github.com/OpenMS/OpenMS/blob/develop/.github/workflows/openms_ci_matrix_full.yml#L285
Summary
This PR modernizes the pyOpenMS build system to use modern Python packaging standards (PEP 517/518/621) with
py-build-cmakeas the build backend andcibuildwheelfor wheel building.Key Changes
pyproject.toml: Complete PEP 517/518/621 configuration with py-build-cmake backend and cibuildwheel settingsCMakeLists.txt: Removed requirements_check.py execution, inline env.py generation, added install() targetsOpenMSConfig.cmake.in: Eigen3 version range now works with older CMake/Eigen configurations. Correct export paths on Windows.pyopenms-wheels-cibuildwheel.ymlreplaces the old workflow with cibuildwheelFiles Removed
requirements_bld.txtrequirements_check.pysetup.pyenv.py.inpyopenms-wheels.ymlBuild Instructions
Testing
uv build --wheelComparison: Old vs New pyOpenMS Wheel Building
Overview
Architecture Differences
Old Approach - Monolithic jobs:
build-win ─┐
build-macos ─┼── test ── publish
build-lnx ─┤
build-lnx-arm ─┘
Each job: checkout → build OpenMS → loop Python versions → build wheels → auditwheel
New Approach - Separated build and wheel jobs:
build-openms-linux ──────┬── build-wheels-linux ──────┐
build-openms-linux-arm ──┼── build-wheels-linux-arm ──┼── test-wheels ── publish
build-openms-macos ──────┼── build-wheels-macos ──────┤
build-openms-windows ────┴── build-wheels-windows ────┘
OpenMS builds once per platform, wheels build with pre-built OpenMS
Key Technical Differences
Old (manual loop):$(echo "$ {PYTHON_VERSIONS}" | jq -r '.[]'); do
for py in
conda create -n pyoms-bld-"${pynodot}" python="${py}"
source activate pyoms-bld-"${pynodot}"
# ... build wheel ...
conda deactivate
done
New (declarative):
CIBW_BUILD: "cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 cp313-manylinux_x86_64"
Old: 160+ environment variables in YAML:
env:
SOURCE_DIRECTORY: "${{ github.workspace }}/OpenMS"
CMAKE_GENERATOR: "Ninja"
OPENMS_CONTRIB_LIBS: "/contrib-build/"
BUILD_TYPE: "Release"
# ... 20+ more variables
New: Most config in pyproject.toml:
env:
CIBW_ENVIRONMENT: "OpenMS_ROOT=/project/openms-build LD_LIBRARY_PATH=/project/openms-build/lib CMAKE_PREFIX_PATH=/contrib-build:/project/openms-build"
Old: Rebuilds OpenMS for each Python version (in the same job)
New: Builds OpenMS once, packages it as artifact, reuses for all Python versions
Old (inline bash):
for whl in dist/pyopenms*.whl; do
auditwheel repair "$whl" -w wheelhouse/
done
New (configured):
CIBW_REPAIR_WHEEL_COMMAND: "auditwheel repair -w {dest_dir} {wheel}"
Advantages of New Approach
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Chores
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.