Skip to content

fix(cmake): accept Arrow/Parquet 24.x and later - #9196

Merged
timosachsenberg merged 2 commits into
OpenMS:developfrom
timosachsenberg:fix/ci-arrow-24-compat
Apr 21, 2026
Merged

timosachsenberg merged 2 commits into
OpenMS:developfrom
timosachsenberg:fix/ci-arrow-24-compat

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Unblocks Linux CI. Ubuntu 24.04 GitHub-hosted runners shipped Arrow 24.0.0 as of 2026-04-21, which causes every PR's Linux build to fail at the CMake configure step:

```
CMake Error at cmake/cmake_findExternalLibs.cmake:192 (find_package):
Could not find a configuration file for package "Arrow" that is
compatible with requested version "23".
ArrowConfig.cmake, version: 24.0.0
```

Root cause

Arrow's ConfigVersion file uses `SameMajorVersion` compatibility, so `find_package(Arrow 23 CONFIG REQUIRED)` actively refuses 24.x even though 24.x is API-compatible with our usage (same for Parquet). The CMake version-range syntax doesn't help here — `SameMajorVersion` ignores the range and only checks exact major equality against `PACKAGE_FIND_VERSION_MAJOR`.

Fix

Drop the version argument from `find_package` and enforce the ≥ 23 minimum with an explicit `VERSION_LESS` check post-detection. Applies to both `Arrow` and `Parquet`. No upper bound — we accept any newer major and rely on actual API compatibility (errors will surface at compile time if a future major breaks us; the previous hard pin only trapped the benign minor/major bump case).

Test plan

  • Local CMake configure still resolves Arrow 23.0.1 cleanly.
  • `cmake --build OpenMS-build --target OpenMS` succeeds.
  • CI confirms Ubuntu runners now configure against Arrow 24.0.0.

Confirmed external breakage

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • Chores
    • Made Arrow/Parquet discovery more flexible while enforcing a minimum supported version at runtime.
    • Updated packaging to exclude a specific problematic pyarrow release from optional and test dependencies to improve build and test reliability.

Ubuntu 24.04 GitHub-hosted runners shipped Arrow 24.0.0 as of 2026-04-21,
breaking all Linux CI jobs with:

  CMake Error: Could not find a configuration file for package "Arrow"
  that is compatible with requested version "23".
    ArrowConfig.cmake, version: 24.0.0

Root cause: Arrow's ConfigVersion file uses SameMajorVersion
compatibility, so `find_package(Arrow 23 CONFIG REQUIRED)` refuses 24.x
even when 24.x would work for our usage. Drop the version from
find_package and enforce the >= 23 minimum via an explicit
Arrow_VERSION / Parquet_VERSION VERSION_LESS check. This accepts any
major >= 23 without guessing which future majors will be API-compatible.

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

coderabbitai Bot commented Apr 21, 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: b442bf0e-3cad-4b2c-bb15-3e77b9cb8d61

📥 Commits

Reviewing files that changed from the base of the PR and between e0f6446 and 7c29cc6.

📒 Files selected for processing (1)
  • src/pyOpenMS/pyproject.toml

📝 Walkthrough

Walkthrough

Removed version pins from CMake find_package(Arrow/Parquet) and added post-find runtime version checks (>= 23); updated Python packaging to exclude pyarrow==24.0.0 from optional and test dependencies.

Changes

Cohort / File(s) Summary
CMake dependency discovery
cmake/cmake_findExternalLibs.cmake
Replaced version-pinned find_package(Arrow 23 CONFIG REQUIRED) / find_package(Parquet 23 CONFIG REQUIRED) with unpinned find_package(... CONFIG REQUIRED) plus explicit if(... VERSION_LESS 23) message(FATAL_ERROR ...) runtime checks.
Python packaging / pyarrow exclusion
src/pyOpenMS/pyproject.toml
Changed optional and test dependency entries to exclude pyarrow==24.0.0 (pyarrow!=24.0.0) in [project.optional-dependencies].arrow, .all, [dependency-groups].test, and tool.cibuildwheel.test-requires.

Possibly related PRs

Suggested reviewers

  • jpfeuffer

Poem

"I'm a rabbit in the build tree, hopping light and spry,
Pins slipped off the arrows, they now soar in the sky.
A version check at runtime keeps things neat and true,
While wheels avoid a bump — no 24.0.0 for you! 🐇✨"

🚥 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: removing version pinning from Arrow/Parquet find_package calls to accept versions 24.x and later, with explicit runtime version checks.
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.

pyarrow 24.0.0 on PyPI only shipped cp310 wheels with no source
distribution, so `uv sync` fails on runners using cp311/cp312/cp313:

  error: Distribution `pyarrow==24.0.0` can't be installed because it
  doesn't have a source distribution or wheel for the current platform
  hint: You're using CPython 3.12 (`cp312`), but `pyarrow` (v24.0.0)
  only has wheels with the following Python ABI tag: `cp310`

Before this commit, pyarrow was listed unpinned in the arrow/all/test
optional dependency groups and in cibuildwheel test-requires, so uv
picked up 24.0.0 and refused to install, which in turn left the
bootstrapped venv without numpy and failed the subsequent
`find_package(Python ... NumPy REQUIRED)` call.

Use `pyarrow!=24.0.0` rather than `<24.0.0` so that a future 24.0.1 (or
later) release with proper wheel coverage is picked up automatically.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@timosachsenberg
timosachsenberg merged commit dfa9d82 into OpenMS:develop Apr 21, 2026
17 checks passed
dataframes = ["pandas"]
arrow = ["pyarrow"]
all = ["pandas", "pyarrow"]
# pyarrow 24.0.0 on PyPI only shipped cp310 wheels (no source distribution),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timosachsenberg Do they even know about this? Maybe support for 3.10 was dropped?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No but there is no release note yet :)

timosachsenberg pushed a commit that referenced this pull request Apr 22, 2026
Document the cmake fix that accepts Arrow/Parquet 24.x and later by
dropping the find_package version argument and using a VERSION_LESS
guard (dfa9d82). Also document the pyarrow 24.0.0 exclusion in
pyOpenMS dependencies. This entry was missing from the previous CHANGELOG
sync.

Co-authored-by: GitHub Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
timosachsenberg pushed a commit that referenced this pull request Apr 22, 2026
Add two missing entries for changes merged after the last CHANGELOG sync (#9193):

- #9196: CMake now accepts Arrow/Parquet 24.x and later; Ubuntu 24.04 CI
  runners ship Arrow 24.0.0 which broke builds with the previous
  find_package(Arrow 23) version constraint. pyarrow 24.0.0 excluded from
  pyOpenMS dependencies (cp310-only wheels on PyPI).

- #9174: Fix SpectraIDViewTab GUI compilation failure on macOS Apple Silicon
  (Tahoe); accession key lookup now converts to std::string after Qt string
  interop removal.

Co-authored-by: GitHub Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
timosachsenberg added a commit that referenced this pull request Apr 27, 2026
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 #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]>
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.

2 participants