Repository navigation
Enable Parquet support in pyopenms wheels build - #8422
Conversation
WalkthroughThis PR pins the devcontainer image to an explicit amd64 tag, enables Parquet builds across CI platforms, adds an ARROW_USE_STATIC CMake option, detects/selects Arrow/Parquet static vs shared targets, replaces hardcoded Arrow/Parquet targets with variables, and adds Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-08-05T12:43:11.681ZApplied to files:
⏰ 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)
🔇 Additional comments (2)
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: 0
🧹 Nitpick comments (3)
.devcontainer/devcontainer.json (1)
3-3: Pinning devcontainer image to amd64 is reasonableSwitching to
ghcr.io/openms/contrib_manylinux_2_34:latest-amd64aligns the devcontainer with the manylinux image used in CI and makes builds more reproducible. The only trade‑off is that non‑amd64 hosts will need emulation, which is acceptable if CI parity is the priority.cmake/cmake_findExternalLibs.cmake (1)
165-185: Arrow/Parquet target indirection is solid; consider whether “prefer static” should be platform‑specificThe new
OPENMS_ARROW_TARGET/OPENMS_PARQUET_TARGETselection logic cleanly abstracts away whether Arrow/Parquet were built as static or shared libraries by preferring*_staticimported targets when present and otherwise falling back to*_shared. This fits well with how the rest of the PR consumes these variables.One thing to double‑check is whether preferring static when both static and shared targets exist is desired on all platforms (e.g. for manylinux wheels vs. system installs), or whether you’d rather keep shared on Linux/macOS and reserve static primarily for Windows/contrib scenarios.
src/openms/CMakeLists.txt (1)
61-76: Consider using semicolon for clarity in generator expression listThe current syntax uses a space to separate the two targets in the generator expression:
$<$<BOOL:${WITH_PARQUET}>:${OPENMS_ARROW_TARGET} ${OPENMS_PARQUET_TARGET}>While this functions correctly—CMake's
target_link_libraries()accepts both space-separated and semicolon-separated lists—using a semicolon is more explicit and conventional for CMake lists:set(OPENMS_DEP_PRIVATE_LIBRARIES $<$<BOOL:${WITH_HDF5}>:HDF5::HDF5> - $<$<BOOL:${WITH_PARQUET}>:${OPENMS_ARROW_TARGET} ${OPENMS_PARQUET_TARGET}> + $<$<BOOL:${WITH_PARQUET}>:${OPENMS_ARROW_TARGET};${OPENMS_PARQUET_TARGET}> ${LPTARGET}This change improves readability and aligns with CMake conventions for list syntax within generator expressions.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
.devcontainer/devcontainer.json(1 hunks).github/workflows/pyopenms-wheels.yml(6 hunks)cmake/cmake_findExternalLibs.cmake(1 hunks)src/openms/CMakeLists.txt(1 hunks)src/pyOpenMS/CMakeLists.txt(1 hunks)src/tests/class_tests/openms/CMakeLists.txt(1 hunks)
🧰 Additional context used
🧠 Learnings (10)
📚 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/cmake_findExternalLibs.cmakesrc/openms/CMakeLists.txtsrc/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/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.txtsrc/tests/class_tests/openms/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/tests/class_tests/openms/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/tests/class_tests/openms/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} : Use the established naming patterns for classes, methods, and variables
Applied to files:
src/tests/class_tests/openms/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} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Applied to files:
src/tests/class_tests/openms/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} : Use appropriate OpenMS containers and algorithms
Applied to files:
src/tests/class_tests/openms/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/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes
Applied to files:
src/tests/class_tests/openms/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} : Be mindful of memory usage when processing large datasets
Applied to files:
src/tests/class_tests/openms/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). (2)
- GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
- GitHub Check: build-win
🔇 Additional comments (4)
src/pyOpenMS/CMakeLists.txt (1)
366-369: Including${OPENMS_CONTRIB_LIBS}/lib64in LOOKUP_DIRS is correctExtending
LOOKUP_DIRSwith${OPENMS_CONTRIB_LIBS}/lib64ensures dependencies built into alib64tree are picked up duringpyopenms_copy_deps.cmake, and the\;escaping keeps the whole list as a single-DLOOKUP_DIRS=...argument. This looks correct and consistent with the existing pattern..github/workflows/pyopenms-wheels.yml (2)
49-55: Qt pinning on Windows improves reproducibility; verify version/arch availabilityUsing
jurplel/install-qt-action@v4withversion: '6.8.3'andarch: 'win64_msvc2022_64'should give you a stable, deterministic Qt setup matching the VS 2022 toolchain. Please just confirm that this exact version/arch combo is available in the Qt online repos used by the action onwindows-latest, otherwise the step will start failing.
169-169: EnablingWITH_PARQUETin all wheel build jobs is consistent with CMake configurationAdding
WITH_PARQUET: "ON"to the Windows, macOS (arm/intel), manylinux, and manylinux‑arm jobs keeps CI in sync with the new Parquet/Arrow CMake wiring so that every wheel variant is built with Parquet support. As a follow‑up, it would be good to spot‑check at least one wheel per platform (auditwheel show/otool -L/lddon_pyopenms*.so) to ensure Arrow/Parquet DSOs are bundled or statically linked as intended and that imports don’t fail on a clean machine.Also applies to: 320-320, 481-481, 606-606, 734-734
src/tests/class_tests/openms/CMakeLists.txt (1)
75-83: Tests correctly track Arrow/Parquet target selectionLinking
Arrow_testandQuantmsIO_testagainst${OPENMS_ARROW_TARGET}and${OPENMS_PARQUET_TARGET}keeps the tests in lock‑step with whatever Arrow/Parquet variant (static vs shared) CMake discovered for the main library. This should avoid mismatches across platforms or contrib/system installs.
|
|
||
| # Determine if Arrow was built as static or shared and set appropriate targets | ||
| if(TARGET Arrow::arrow_static) | ||
| set(OPENMS_ARROW_TARGET Arrow::arrow_static) |
There was a problem hiding this comment.
We definitely need a way to make it accept shared libs if both are present! I think I'd prefer the same logic that we use for Boost with
BOOST_USE_STATIC
There was a problem hiding this comment.
No but it's also just three lines. Or one line for copilot.
|
@copilot We definitely need a way to make it accept shared libs if both are present! I think I'd prefer the same logic that we use for Boost with |
|
@timosachsenberg I've opened a new pull request, #8434, to work on those changes. Once the pull request is ready, I'll request review from you. |
* Initial plan * Add ARROW_USE_STATIC option to control Arrow/Parquet static vs shared library preference Co-authored-by: timosachsenberg <[email protected]> * Move ARROW_USE_STATIC option to build_system_macros.cmake for consistency with BOOST_USE_STATIC Co-authored-by: timosachsenberg <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: timosachsenberg <[email protected]>
Description
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
Advanced commands (admins / reviewer only)
Click to expand
/reformat(experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.rebuild jenkinswill retrigger Jenkins-based CI buildsSummary by CodeRabbit
New Features
Chores
✏️ Tip: You can customize this high-level summary in your review settings.