Skip to content

[FIX] Docker: pin Arrow/Parquet apt packages in library stage - #9891

Merged
timosachsenberg merged 1 commit into
developfrom
claude/sweet-fermat-wo6cw9
Aug 9, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/sweet-fermat-wo6cw9

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The nightly Deploy container images workflow failed building the library stage of dockerfiles/Dockerfile (arm64): https://github.com/OpenMS/OpenMS/actions/runs/31233273717
  • Root cause: the base stage pins Arrow/Parquet apt packages to v23 (/etc/apt/preferences.d/arrow) before installing libparquet-dev, so the pinned SONAME packages (libarrow2300/libparquet2300) resolve correctly. The library stage installs those same runtime packages directly, without the matching pin. Now that apache-arrow-apt-source-latest-noble.deb defaults to Arrow 25.0.0, the unpinned apt-get install libarrow2300 libparquet2300 in the library stage fails (exit code: 4).
  • Fix: add the identical apt pin to the library stage before installing libarrow2300/libparquet2300, mirroring the existing base stage logic exactly.

Fixes #9890

Test plan

  • Deploy container images nightly workflow builds successfully (I couldn't verify locally — no Docker daemon available in this session; the change is a minimal, well-understood mirror of the identical, already-working pin used in the base stage of the same Dockerfile).
  • Manually confirm docker buildx build --target library ... succeeds for both linux/amd64 and linux/arm64.

Generated by Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Pinned Arrow and Parquet runtime packages to version 23 for consistent application behavior.

The nightly "Deploy container images" build failed because the
library stage installs libarrow2300/libparquet2300 without the same
apt pin the base stage uses to keep the Arrow apt source resolving
to v23 packages. Now that apache-arrow-apt-source-latest-noble.deb
defaults to Arrow 25.0.0, the unpinned install fails.

Fixes #9890
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d9487d92-bcb3-4045-9a3e-3dfd0525399e

📥 Commits

Reviewing files that changed from the base of the PR and between 1131d8f and 4f03e55.

📒 Files selected for processing (1)
  • dockerfiles/Dockerfile

📝 Walkthrough

Walkthrough

The Docker library stage now pins Arrow and Parquet runtime packages to version 23 before installation. This matches the build-stage dependency pin.

Changes

Arrow and Parquet runtime pinning

Layer / File(s) Summary
Pin runtime package versions
dockerfiles/Dockerfile
The library stage adds an APT preference that selects version 23 for libarrow* and libparquet* packages before installing runtime libraries.

Poem

A rabbit hops by the Docker file,
Arrow and Parquet pin in style.
Version twenty-three stays near,
Runtime packages install clear.
🐇 With tidy paws, the build can smile.

🚥 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 clearly identifies the Docker change and the Arrow/Parquet package pin.
Linked Issues check ✅ Passed The change adds the required Arrow/Parquet v23 pin in the library stage before installing the runtime SONAME packages [#9890].
Out of Scope Changes check ✅ Passed The changes are limited to the Dockerfile fix required by the linked issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/sweet-fermat-wo6cw9

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.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

I think it should be fine because we don't build pyopenms in there and we had issues regarding pyarrow vs. c++ arrow interoperability

@jpfeuffer

Copy link
Copy Markdown
Contributor

Looks weird. Just remove the apt from Apache then??

Both dev and nondev should be 23 on Ubuntu.

https://pkgs.org/search/?q=libparquet

Copy link
Copy Markdown
Contributor Author

@jpfeuffer I checked directly on a stock ubuntu:24.04 (noble) system with universe enabled — Ubuntu does not ship libarrow-dev/libparquet-dev (or any libarrow*/libparquet* package) at all in main/universe/restricted/multiverse:

$ apt-get install -s libparquet-dev
E: Unable to locate package libparquet-dev
$ apt-get install -s libarrow-dev
E: Unable to locate package libarrow-dev
$ apt-cache search parquet
(no results)

So the Apache Arrow apt source isn't optional here — Ubuntu has no native Arrow/Parquet C++ packages to fall back to, which is presumably why it was added in the first place. Happy to be shown otherwise if you have a specific package name/repo in mind, but as far as I can tell the pin (mirroring what base already does) is the minimal fix. Dropping the Apache Arrow apt source entirely would be a separate, larger change and I'd rather not bundle that into this CI-fix PR.


Generated by Claude Code

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

maybe only in 26.04

@jpfeuffer

Copy link
Copy Markdown
Contributor

Yes probably. We should recheck why 25 is not working. I assume 23 won't be supported for long.

Copy link
Copy Markdown
Contributor Author

Agreed that's worth investigating separately. The v23 pin isn't coming from anything in our CMake (I checked — src/openms/CMakeLists.txt/cmake/package_general.cmake just use whatever find_package(Arrow) picks up, no hardcoded version), so it's purely a Docker-stage artifact: library needs its runtime SONAME to match whatever libarrow/libparquet the build stage linked against. Bumping to v25 in both stages should work in principle, but I can't verify it here (no Docker daemon in this session to actually build+test the image), and given the pyarrow/C++ Arrow ABI interop issues Timo mentioned, I'd want that tested by someone who can actually run the multi-stage build rather than guessed at.

For now I'd like to keep this PR scoped to restoring the nightly build (matching the existing, working base-stage pin). If it's okay with you both, I'll leave "upgrade off the v23 pin" as a follow-up rather than block this fix on it — happy to open a tracking issue for that if you'd like.


Generated by Claude Code

@timosachsenberg
timosachsenberg merged commit e41c9c9 into develop Aug 9, 2026
35 checks passed
@timosachsenberg
timosachsenberg deleted the claude/sweet-fermat-wo6cw9 branch August 9, 2026 08:45
timosachsenberg added a commit that referenced this pull request Aug 11, 2026
Audited PRs merged since the last CHANGELOG update (#9881): most of
them (#9879, #9880, #9882, #9884, #9886, #9892, #9896, #9898, #9900,
#9901, #9888) already carried their own CHANGELOG entries. Only the
Docker library-stage fix (#9891) was missing one.


Claude-Session: https://claude.ai/code/session_01Jgrv6mFL3oawgLdYs1efPH

Co-authored-by: Claude <[email protected]>
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.

Nightly "Deploy container images" failing: library stage installs unpinned libarrow2300/libparquet2300

3 participants