Repository navigation
fix(cmake): accept Arrow/Parquet 24.x and later - #9196
Conversation
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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRemoved version pins from CMake Changes
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
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]>
| dataframes = ["pandas"] | ||
| arrow = ["pyarrow"] | ||
| all = ["pandas", "pyarrow"] | ||
| # pyarrow 24.0.0 on PyPI only shipped cp310 wheels (no source distribution), |
There was a problem hiding this comment.
@timosachsenberg Do they even know about this? Maybe support for 3.10 was dropped?
There was a problem hiding this comment.
No but there is no release note yet :)
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]>
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]>
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]>
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]>
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
Confirmed external breakage
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes