Skip to content

fix(cmake): accept Arrow 24.x in pyOpenMS standalone build - #9221

Merged
timosachsenberg merged 1 commit into
OpenMS:developfrom
timosachsenberg:fix/pyopenms-cmake-arrow-24
Apr 27, 2026
Merged

timosachsenberg merged 1 commit into
OpenMS:developfrom
timosachsenberg:fix/pyopenms-cmake-arrow-24

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fixes the macOS pyOpenMS wheel build (build-wheels-macos in pyopenms-wheels-cibuildwheel.yml), which currently fails at CMake configure because Homebrew now ships apache-arrow 24.0.0.
  • Drops the 23 version pin from find_package(Arrow CONFIG REQUIRED) in src/pyOpenMS/CMakeLists.txt and checks the minimum manually afterwards — same pattern as fix(cmake): accept Arrow/Parquet 24.x and later #9196 already applied to cmake/cmake_findExternalLibs.cmake.

Why

Arrow's ArrowConfigVersion.cmake uses SameMajorVersion compatibility, so find_package(Arrow 23 ...) rejects 24.x:

Could not find a configuration file for package "Arrow" that is compatible
with requested version "23".

  /opt/homebrew/lib/cmake/Arrow/ArrowConfig.cmake, version: 24.0.0
    The version found is not compatible with the version requested.

This was already fixed for the main OpenMS build in #9196, but the standalone pyOpenMS path (taken by cibuildwheel when building wheels with NO_DEPENDENCIES=ON) was missed. The full-OpenMS macOS CI job passes; only the standalone wheel job fails.

Compatibility

Pure CMake version-discovery change. No effect on:

  • MACOSX_DEPLOYMENT_TARGET=14.0 (set in the wheels workflow)
  • ABI / linkage — ARROW_USE_STATIC=OFF and Arrow::arrow_shared target selection unchanged
  • delocate-wheel repair pipeline

Test plan

  • pyopenms-wheels-cibuildwheel.yml macOS arm64 job (build-wheels-macos) reaches the build step (no longer fails at CMake configure)
  • Linux/Windows wheel jobs continue to pass
  • Full OpenMS CI matrix unaffected

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated build configuration to improve Arrow dependency handling with enhanced version compatibility verification during installation.

The pyOpenMS standalone build path (used by cibuildwheel) called
find_package(Arrow 23 CONFIG REQUIRED) directly. Arrow's ConfigVersion
uses SameMajorVersion compatibility, so requesting 23 rejects Homebrew's
24.0.0 and the macOS wheel build fails at CMake configure.

Mirror the fix from OpenMS#9196 (cmake/cmake_findExternalLibs.cmake): drop the
version pin from find_package and check the minimum manually afterwards.

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

coderabbitai Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

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: ccf76162-0ca4-49e9-b236-335abcdf03e7

📥 Commits

Reviewing files that changed from the base of the PR and between cac59c2 and c21c315.

📒 Files selected for processing (1)
  • src/pyOpenMS/CMakeLists.txt

📝 Walkthrough

Walkthrough

Arrow dependency version pinning is replaced with a flexible discovery mechanism in the pyOpenMS build configuration. The CMake script now requests Arrow without version constraints and validates the discovered version is at least 23 post-discovery, failing configuration if the requirement is unmet.

Changes

Cohort / File(s) Summary
Arrow Version Validation
src/pyOpenMS/CMakeLists.txt
Removed Arrow version pinning from find_package call; added explicit post-discovery version compatibility check that fails if Arrow_VERSION < 23.

Possibly related PRs

Poem

🐰 A rabbit hops through CMake land,
No version pins, just a gentle hand,
Arrow flows free, then checked with care—
"Is it twenty-three?" we softly declare,
Flexible builds in the moonlit air! ✨

🚥 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 accurately describes the main change: allowing Arrow 24.x versions in the pyOpenMS CMake configuration by removing version pinning and adding a minimum-version check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 and usage tips.

@timosachsenberg
timosachsenberg merged commit b9c67c9 into OpenMS:develop Apr 27, 2026
20 checks passed
timosachsenberg pushed a commit that referenced this pull request Apr 28, 2026
Add missing entries for:
- #9221: pyOpenMS standalone/cibuildwheel Arrow 24.x CMake fix
- #9218: PercolatorAdapter in-process Percolator rescoring backend
- #9224: ProSE/FragmentIndex SNES X/B/Z mother truncation fix
- #9223: OpenSwathWorkflow macOS arm64 duplicate TLS symbol fix

Co-authored-by: GitHub Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
timosachsenberg added a commit that referenced this pull request Apr 28, 2026
Add missing CHANGELOG entries for 4 recent code PRs that were not yet
documented:

- #9218: feat(Percolator) in-process backend — new OpenMS::Percolator
  class (vendored Percolator 3.08 + TRON solver) and PercolatorAdapter
  -use_subprocess flag; entries added under OpenMS Library Added and
  TOPP tools PercolatorAdapter sections.

- #9221: fix(cmake) Arrow 24.x in pyOpenMS standalone build — the
  cibuildwheel CMakeLists.txt version pin now dropped like #9196;
  entry added under Dependencies.

- #9223: fix(openswath) duplicate TLS init symbol on macOS arm64/clang —
  g_picker_pool_shared moved from inline thread_local in header to a
  single .cpp definition; entry added under OpenSwathWorkflow.

- #9224: fix(FragmentIndex) SNES mothers truncated at X/B/Z residues —
  proteins with ambiguous residues split into unambiguous spans for SNES
  indexing; entry added under ProSE.

Co-authored-by: GitHub Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
@timosachsenberg timosachsenberg mentioned this pull request Jun 8, 2026
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.

1 participant