Skip to content

[CI] Build one PR CI leg against Arrow 23 - #10757

Closed
timosachsenberg wants to merge 1 commit into
developfrom
claude/ci-arrow-23-leg
Closed

timosachsenberg wants to merge 1 commit into
developfrom
claude/ci-arrow-23-leg

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Timo · project thread

Why

All PR CI legs build with the Arrow that the vcpkg baseline picks (24.0.0). The Docker image (Apache APT, pinned to 23) and the Bioconda recipe (libarrow =23) build with Arrow 23, which is also the minimum in cmake/cmake_findExternalLibs.cmake. So code that needs a newer Arrow API passes PR CI and only breaks the nightly container build, as happened with ReadTable() in #10705 (fixed in #10731).

Change

  • .github/actions/build: new optional input arrow_version. When it is set, a step adds {"name": "arrow", "version": "<value>"} to the overrides of vcpkg.json for that job. vcpkg installs during the CMake configure, so the override is in place in time. Empty (the default) changes nothing, so release.yml and the other legs are unaffected.
  • test.yml: the ubuntu-24.04-arm / g++ leg sets arrow: "23.0.1" (the only Arrow 23 release in the vcpkg versions database).
  • The job gets an explicit name: build-and-test (${{ matrix.os }}, ${{ matrix.compiler }}), so the check names stay exactly as they are and required checks keep matching.

Cache key

The vcpkg binary cache key is a hash of vcpkg.json, and the rsync cache action computes it again in its post step when it saves. The pin step therefore runs before "Install Dependencies": restore and save then use the same key, and the Arrow 23 leg gets its own cache instead of overwriting the arm leg's Arrow 24 cache. The first run of that leg builds its vcpkg dependencies without a cache, so it will be slower once.

Testing

  • vcpkg install --dry-run with this override against the current vcpkg registry resolves arrow[acero,compute,core,dataset,filesystem,json,parquet,s3]@23.0.1. All other ports stay on their baseline versions.
  • The vcpkg arrow port at 23.0.1 differs from the current 24.0.0#1 only in the version, the source hash, and -DARROW_WITH_UTF8PROC=ON, which was added later to fix utf8proc not being found. If the 23.0.1 port hits that problem with the current utf8proc, this leg will show it and an overlay port will be needed.
  • I could not run a full build: the sandbox I work in cannot download GitHub source archives, which most vcpkg ports need. The CI run of this PR is the test.

Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Build checks now display clearer names that identify the operating system and compiler being tested.
    • The Ubuntu ARM build uses a specified Arrow version, and build configuration can optionally select an Arrow version for dependency installation. Other build checks continue to use their existing configuration.

The PR CI legs all build with the Arrow version of the vcpkg baseline
(24.0.0), while the Docker image and the Bioconda recipe build with
Arrow 23, the oldest version OpenMS supports. A use of a newer Arrow API
therefore only broke the nightly container build (#10731).

The build action gets an optional arrow_version input that adds a
vcpkg.json override for that job. The ubuntu-24.04-arm g++ leg sets it
to 23.0.1. The patch runs before the vcpkg binary cache is restored, so
that restore and save use the same cache key. The job name is spelled
out so the check names do not change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Y8k7TxP9NJP4VFU5EK6dF2
@timosachsenberg timosachsenberg self-assigned this Oct 28, 2026
@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@claude could both use a newer arrow version? check

@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2db69445-759a-40a3-bd87-b539dd7291d8
Commits

Reviewing files that changed from the base of the PR and between d1abcf8 and a480c01.

Files selected for processing: 2
  • .github/actions/build/action.yml
  • .github/workflows/test.yml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

The build action now accepts an optional Arrow version and updates the vcpkg manifest before dependency installation when that value is set. The test workflow passes Arrow 23.0.1 for the Ubuntu 24.04 ARM leg and names each matrix check by OS and compiler.

Changes: Arrow Version CI

Layer / File(s) Summary
Build action Arrow override
.github/actions/build/action.yml
The action accepts an optional arrow_version. When set, it replaces the Arrow override in vcpkg.json before dependency installation.
Test matrix Arrow version
.github/workflows/test.yml
The workflow names checks using OS and compiler, sets Arrow to 23.0.1 for the Ubuntu 24.04 ARM leg, and passes the matrix value to the build action.

Sequence Diagram(s)

sequenceDiagram
  participant TestWorkflow
  participant BuildOpenMSAction
  participant VcpkgManifest
  participant DependencyInstallation
  TestWorkflow->>BuildOpenMSAction: Pass arrow_version when set
  BuildOpenMSAction->>VcpkgManifest: Replace arrow override
  BuildOpenMSAction->>DependencyInstallation: Install dependencies after manifest update
Loading

Possibly related PRs

  • OpenMS/OpenMS#10705: Adds Arrow and Parquet APIs and tests; its newer Arrow API usage caused the nightly Arrow 23 container failure this PR’s CI leg is intended to detect.
  • OpenMS/OpenMS#10731: Replaces an Arrow API unavailable in Arrow 23 with ParquetFile::rowCount(), fixing the nightly failure this PR’s CI leg is intended to detect.

Suggested reviewers: castornova2

Priority: Normal

Change: Other

Merge Risk: Minimal · up to a480c

No concrete merge-blocking risk remains from the reviewed changes.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: adding an Arrow 23 build leg to PR CI.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

A rabbit checks the build at dawn
Arrow hops into the manifest
The matrix sets its version right
Dependencies follow close behind
The rabbit thumps: checks are on!

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Contributor Author

Yes, both can move to a newer Arrow.

  • Bioconda: conda-forge has libarrow and libparquet 24.0.0, 25.0.0 and 26.0.0 (_cpu builds) for linux-64, linux-aarch64, osx-64 and osx-arm64. recipes/openms-meta/meta.yaml in OpenMS/bioconda-recipes pins libarrow =23=*_cpu and libparquet =23 explicitly (the bioconda pinning only lists 19 to 22), so moving means changing those pins.
  • Docker: dockerfiles/Dockerfile installs from Apache's APT source for noble and pins 23.* only so that the build and runtime stages get the same SONAME (libarrow2300, libparquet2300). Moving means 24.* and libarrow2400/libparquet2400. Apache publishes APT packages for Ubuntu 24.04 with every release, but my sandbox cannot reach packages.apache.org, so I could not confirm the 24 packages directly.

I would move both to 24, the version vcpkg gives PR CI, the wheels and the installers, so that every build uses the same Arrow. 26 would put them ahead of PR CI, which can break the other way (APIs removed after their deprecation).

After that, nothing we ship builds with Arrow 23. The minimum in cmake/cmake_findExternalLibs.cmake could then go up to 24, and this PR only matters again once the vcpkg baseline moves past the minimum.


Generated by Claude Code

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@claude was there any reason to stick with 23? e.g. pyopenms wheels or similar?

Copy link
Copy Markdown
Contributor Author

I found no reason. 23 was simply the newest Arrow when it became a requirement, and the pins stayed:

  • Docker: fix: upgrade Docker image from Ubuntu 22.04 to 24.04 #9006 (March) moved the image to Ubuntu 24.04 and to Arrow 23, the current release then, with a pin to keep the build and runtime stages on the same library. [FIX] Docker: pin Arrow/Parquet apt packages in library stage #9891 (August) only added the same pin to the library stage after Apache's default moved to 25.
  • CMake: it asked for exactly major 23 until fix(cmake): accept Arrow/Parquet 24.x and later #9196 (April) accepted 24 and later, when the GitHub runners got Arrow 24.
  • pyopenms wheels: they build with the vcpkg Arrow (24), statically on Windows. They hand data to pyarrow through the Arrow C Data Interface (arrow/c/abi.h and arrow/c/bridge.h in src/pyOpenMS/bindings/arrow_zerocopy.cpp), which is stable across Arrow versions, so they work with any pyarrow. pyproject.toml no longer restricts pyarrow either (the former !=24.0.0,!=25.0.0 exclusions were cp310 workarounds and are gone).
  • Bioconda: the recipe pins 23 explicitly because it was the minimum. The bioconda pinning only lists 19 to 22, so the pin is a choice in either case.

So nothing depends on 23 staying.


Generated by Claude Code

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

@jpfeuffer should this be unpinned

@jpfeuffer

Copy link
Copy Markdown
Contributor

Yes I think so. As it mentions, I think it was only a workaround because of docker where this wasn't available or where we had a mismatch between build and run somehow.

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