Skip to content

Arrow Integration + Test in CI - #8091

Merged
timosachsenberg merged 56 commits into
OpenMS:developfrom
Avni2000:avni-temp
Jul 7, 2025
Merged

timosachsenberg merged 56 commits into
OpenMS:developfrom
Avni2000:avni-temp

Conversation

@Avni2000

@Avni2000 Avni2000 commented Jun 25, 2025 •

Copy link
Copy Markdown
Contributor

Description

Quick note: it seems like the CI pipeline run from develop (on my fork, where develop == upstream/develop) outputs the exact same tests failing as upstream.

With that, I'll try to explain some of the changes made here, because besides the top level ones, it gets murky and difficult to understand at times

Top level changes:

  • Updated github actions to reflect Arrow integration, ie: changing mac (brew) and ubuntu (apt) to add the libarrow and parquet dependencies.
  • Created Arrow_test, much like hdf5, to test arrow functionality by mimicking an example use case from the apache arrow website.
  • Added an option in CMakeLists.txt to look for arrow/parquet dependencies as well (if one is building from source)

The rationale behind conditional JSON + explicit conversion + conditional parquet:
Thus far, I've yet to figure out how to integrate arrow (and its subdirectories) into OpenMS' contrib, since it doesn't follow the simple lib + headers + src structure well -- instead it contains src/parquet + src/gandiva + src/arrow + ...
That is to say, since Windows' CI structure has it depend on contrib for its dependencies, I had to create a few extra conditionals for WITH_PARQUET and -DUSE_EXTERNAL_JSON.

Re: USE_EXTERNAL_JSON: It should be fairly decently commented, but essentially, mac w/ brew DOESN'T bundle nlohmann_json and ubuntu does w/ apt. As such, reconciling the two necessitates either a) changing the ubuntu package to not bundle with nlohmann_json in the first place, which doesn't seem doable, or b) making it so that if we're using Ubuntu, then we must utilize the Arrow's version of Nlohmann_JSON. I elected for (b)

This then, brought its own set of issues, the largest being that implicit conversion differed somehow across versions. Even though Nlohmann_json docs specify that it's automatically turned on with USE_IMPLICIT_CONVERSION (I believe), it seems as if Arrow's JSON only allows explicit conversion. So I turned Implicit conversion off in its cmake (for readability) and added a comment where Arrow's JSON was used to specity that the file must be written with explicit handling of Nlohmann JSON methods.

I recently attempted taking the explicit conversion logic out here:
https://github.com/Avni2000/OpenMS/actions/runs/15864899276/job/44729833640
and the build failed because of said implicit conversion errors with Arrow's JSON.

Here's an example of where everything succeeds, at least as well as upstream/develop does:
https://github.com/Avni2000/OpenMS/actions/runs/15865087724/job/44730344367

Checklist

  • Make sure that you are listed in the AUTHORS file -> not yet
  • Add relevant changes and new features to the CHANGELOG file -> nothing too big for non developers
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes -> old unit tests fail without my changes, I believe.
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

How can I get additional information on failed tests during CI

Click to expand If your PR is failing you can check out

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.
  • setting the label "NoJenkins" will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)
  • commenting with rebuild jenkins will retrigger Jenkins-based CI builds

⚠️ Note: Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

Summary by CodeRabbit

  • New Features

    • Added optional support for Apache Arrow and Parquet file formats, controllable via a build option.
    • Introduced comprehensive tests for reading and writing Arrow and Parquet files.
  • Bug Fixes

    • Improved type safety and JSON (de)serialization in ribonucleotide parsing.
  • Chores

    • Updated CI and build scripts to handle platform-specific dependencies for Arrow and Parquet.
    • Enhanced .gitignore to exclude build directories.
    • Updated dependency installation scripts for macOS and Ubuntu to include Apache Arrow and Parquet.
  • Documentation

    • Clarified comments and error messages for better readability.

@coderabbitai coderabbitai Bot mentioned this pull request Jun 14, 2026
1 of 5 tasks
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.

3 participants