Skip to content

Add minizip-ng dependency for ZIP64 archive support - #8792

Closed
timosachsenberg wants to merge 2 commits into
developfrom
update-contrib-submodule
Closed

timosachsenberg wants to merge 2 commits into
developfrom
update-contrib-submodule

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Motivation: required to store multiple parquet files in a single uncompressed ZIP64 archive.

  • Integrate minizip-ng v4.0.7 for ZIP64 archive support across all build paths (contrib, vcpkg, system packages)
  • CMake find_package uses dual-name fallback (minizip-ng then minizip) to handle naming differences between vcpkg/contrib (-ng suffix) and conda-forge (no suffix)
  • CI updated: brew install (macOS), build from source (Ubuntu), conda install (Windows)

Closes #8791

Build paths

Platform Source Package name CMake target
vcpkg vcpkg port minizip-ng MINIZIP::minizip-ng
contrib build script minizip-ng MINIZIP::minizip-ng
macOS CI Homebrew minizip-ng MINIZIP::minizip-ng
Ubuntu CI built from source minizip-ng MINIZIP::minizip-ng
Windows CI conda-forge minizip MINIZIP::minizip

Known follow-up items (separate PRs)

  • Rebuild contrib_build-Windows.tar.gz with minizip-ng (needed for pyopenms Windows wheel CI)
  • Rebuild ghcr.io/openms/contrib_manylinux_2_34 Docker image with minizip-ng (needed for pyopenms Linux wheel CI)

Test plan

  • Ubuntu CI: deps-ubuntu.sh builds minizip-ng from source, find_package(minizip-ng) succeeds
  • macOS CI: brew install minizip-ng succeeds, find_package(minizip-ng) succeeds
  • Windows CI: conda minizip installs, fallback find_package(minizip) succeeds
  • OpenMS builds and links against minizip-ng on all platforms

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Build and CI updated to include additional compression support (minizip, xz) across Windows, macOS, and Linux.
    • Improved dependency detection so the available compression implementation is reliably chosen at build time.
    • Added minizip-ng to package manifests and CI install paths (with an alternate Linux install flow).
    • Updated tracked submodule reference and consistent build tool path handling on Windows.

Includes Arrow upgrade from 22.0.0 to 23.0.0 and various build fixes.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@coderabbitai

coderabbitai Bot commented Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds minizip-ng support across CI, package manifests, and CMake: CI scripts/installers now provide minizip(-ng) and xz, CMake prefers minizip-ng with a minizip fallback and exposes OPENMS_MINIZIP_TARGET, which is linked into OpenMS; contrib submodule and vcpkg updated.

Changes

Cohort / File(s) Summary
CI workflow
/.github/workflows/openms_ci_matrix_full.yml
Windows CI: include minizip and xz in conda install; set cmake_prefix to /tmp/pixi-deps/.pixi/envs/default.
Platform deps scripts
tools/ci/deps-macos.sh, tools/ci/deps-ubuntu.sh
macOS: add minizip-ng to Homebrew installs. Ubuntu: add pixi-based installation of minizip-ng (conda-forge) with pixi init/PATH and include xz/bzip2/zlib.
CMake integration
cmake/cmake_findExternalLibs.cmake, src/openms/CMakeLists.txt
Add probe for minizip-ng (QUIET), fallback to minizip, define OPENMS_MINIZIP_TARGET and log it; link ${OPENMS_MINIZIP_TARGET} into OPENMS private libraries.
Package manifests
vcpkg.json
Add minizip-ng dependency entry.
Submodule pointer
contrib
Bump tracked contrib submodule commit reference.

Sequence Diagram(s)

sequenceDiagram
    participant CI as CI Workflow
    participant PKG as Package Manager / Pixi / Homebrew
    participant CMake as CMake
    participant Build as OpenMS Build

    CI->>PKG: request install of minizip-ng / minizip and xz
    PKG-->>CI: install artifacts and export prefixes / update PATH
    CI->>CMake: set cmake_prefix / provide dependency prefixes
    CMake->>PKG: probe for minizip-ng (CONFIG QUIET)
    alt minizip-ng found
        CMake->>CMake: set OPENMS_MINIZIP_TARGET = MINIZIP::minizip-ng
    else fallback to minizip
        CMake->>CMake: set OPENMS_MINIZIP_TARGET = MINIZIP::minizip
    end
    CMake->>Build: link ${OPENMS_MINIZIP_TARGET} into OpenMS
Loading

Possibly related PRs

Poem

🐰 I hopped through CI and into the tree,
found minizip-ng snug as can be.
CMake chose wisely, then linked with glee,
deps lined up neatly — a carrot for me! 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the primary change: adding minizip-ng dependency to support ZIP64 archives.
Linked Issues check ✅ Passed All objectives from issue #8791 are met: minizip-ng is integrated in contrib (submodule update), vcpkg (new dependency), and CMake (find_package logic with fallback).
Out of Scope Changes check ✅ Passed All changes directly support minizip-ng integration: CI dependencies (macOS, Ubuntu, Windows), CMake resolution logic, build configuration, and vcpkg manifest are all in-scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update-contrib-submodule

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
tools/ci/deps-ubuntu.sh (1)

50-50: Consider verifying the tarball checksum

The archive is fetched over HTTPS but without a sha256 checksum guard. A compromised or tampered release artifact would be accepted silently. The pattern used for Arrow (also no checksum) is consistent, but pinning the hash here is especially valuable since this is a from-source build.

🛡️ Suggested addition
 wget -q "https://github.com/zlib-ng/minizip-ng/archive/refs/tags/${MINIZIP_NG_VERSION}.tar.gz" -O /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz
+echo "EXPECTED_SHA256  /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz" | sha256sum -c -

Replace EXPECTED_SHA256 with the known hash for v4.0.7.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tools/ci/deps-ubuntu.sh` at line 50, Add a SHA256 integrity check after
downloading the minizip-ng tarball: after the wget line that uses
${MINIZIP_NG_VERSION} and writes to
/tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz, compute and verify the file's
sha256 against the known expected hash (replace EXPECTED_SHA256 with the actual
v4.0.7 hash) and exit non‑zero if the check fails; ensure the verification step
references the same /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz path so a
tampered or corrupted archive is rejected before extraction/build.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@contrib`:
- Line 1: The contrib submodule pointer was changed and per project rules you
must obtain explicit maintainer approval before updating third‑party
dependencies; stop the PR from progressing until you (1) contact the project
maintainers (mention the contrib submodule update in this PR and include the new
commit hash and reason), (2) add a maintainer approval comment or include an
approval email/issue link in the PR description, and (3) if approval is granted,
update the PR description to record the maintainer's sign‑off and proceed;
reference the changed "contrib" submodule pointer in your communication so
reviewers can verify the exact change.

In `@tools/ci/deps-ubuntu.sh`:
- Line 57: The cmake invocation uses an unquoted subshell -j$(nproc) which
triggers ShellCheck SC2046; update the command in tools/ci/deps-ubuntu.sh to
quote the subshell so the job-count expansion is treated as a single word (use
-j"$(nproc)") in the cmake --build /tmp/minizip-ng-build invocation to prevent
word-splitting.

---

Nitpick comments:
In `@tools/ci/deps-ubuntu.sh`:
- Line 50: Add a SHA256 integrity check after downloading the minizip-ng
tarball: after the wget line that uses ${MINIZIP_NG_VERSION} and writes to
/tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz, compute and verify the file's
sha256 against the known expected hash (replace EXPECTED_SHA256 with the actual
v4.0.7 hash) and exit non‑zero if the check fails; ensure the verification step
references the same /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz path so a
tampered or corrupted archive is rejected before extraction/build.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 61cdea9 and e17aad8.

📒 Files selected for processing (7)
  • .github/workflows/openms_ci_matrix_full.yml
  • cmake/cmake_findExternalLibs.cmake
  • contrib
  • src/openms/CMakeLists.txt
  • tools/ci/deps-macos.sh
  • tools/ci/deps-ubuntu.sh
  • vcpkg.json

Comment thread contrib Outdated
@@ -1 +1 @@
Subproject commit e6fde7cfed8cde73c6625cd493ce3f82e21263cc
Subproject commit 58ba245ce9ba88f7834f8eed7c31534265cfd1d1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Confirm maintainer approval for contrib submodule update.

This changes the contrib submodule pointer, which is a modification of third‑party dependencies and needs explicit maintainer approval per project rules. As per coding guidelines: "Do not modify the contrib tree or third-party dependencies without explicit approval from the maintainers".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@contrib` at line 1, The contrib submodule pointer was changed and per project
rules you must obtain explicit maintainer approval before updating third‑party
dependencies; stop the PR from progressing until you (1) contact the project
maintainers (mention the contrib submodule update in this PR and include the new
commit hash and reason), (2) add a maintainer approval comment or include an
approval email/issue link in the PR description, and (3) if approval is granted,
update the PR description to record the maintainer's sign‑off and proceed;
reference the changed "contrib" submodule pointer in your communication so
reviewers can verify the exact change.

Comment thread tools/ci/deps-ubuntu.sh Resolved
@timosachsenberg
timosachsenberg force-pushed the update-contrib-submodule branch from e17aad8 to be7dbab Compare February 24, 2026 12:04

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
tools/ci/deps-ubuntu.sh (1)

57-57: Quote $(nproc) to satisfy ShellCheck SC2046.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tools/ci/deps-ubuntu.sh` at line 57, Update the cmake build invocation that
currently uses unquoted command substitution (the line containing "cmake --build
/tmp/minizip-ng-build -j$(nproc)") to quote the $(nproc) expansion so ShellCheck
SC2046 is satisfied; change the -j argument to use a quoted substitution (e.g.,
-j"$(nproc)") in the tools/ci/deps-ubuntu.sh script.
🧹 Nitpick comments (1)
vcpkg.json (1)

46-47: Consider aligning vcpkg features with the from-source build flags.

The vcpkg minizip-ng port installs with default features (bzip2, lzma, pkcrypt, wzaes, zlib, zstd), but the Ubuntu from-source CI build explicitly disables MZ_LZMA, MZ_ZSTD, and MZ_WZAES. If OpenMS only needs the minimal set of compression backends, consider restricting the vcpkg features to match, so the dependency surface is consistent across all build paths.

♻️ Example: opt out of unneeded default features in vcpkg.json
-    "minizip-ng"
+    {
+      "name": "minizip-ng",
+      "default-features": false,
+      "features": [ "bzip2", "pkcrypt", "zlib" ]
+    }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@vcpkg.json` around lines 46 - 47, The vcpkg manifest currently depends on
"minizip-ng" without feature control, while your Ubuntu from-source CI disables
MZ_LZMA, MZ_ZSTD and MZ_WZAES; update vcpkg.json's "minizip-ng" entry to
explicitly opt out of those defaults and only enable the compression backends
actually required by OpenMS (e.g. include a features array for "minizip-ng" that
excludes lzma, zstd, wzaes and keeps only the minimal features you need such as
zlib/pkcrypt if applicable), so the vcpkg-built dependency surface matches the
from-source build flags.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@tools/ci/deps-ubuntu.sh`:
- Around line 49-51: The script downloads MINIZIP_NG_VERSION into
/tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz without verifying integrity; add a
MINIZIP_NG_SHA256 variable containing the expected SHA-256 and perform a
checksum verification after download (e.g., create a checksum file or echo the
expected hash and pipe to sha256sum -c) and abort the script if verification
fails; update the flow around the wget line and the subsequent tar extraction so
extraction only occurs on a successful checksum match.

---

Duplicate comments:
In `@tools/ci/deps-ubuntu.sh`:
- Line 57: Update the cmake build invocation that currently uses unquoted
command substitution (the line containing "cmake --build /tmp/minizip-ng-build
-j$(nproc)") to quote the $(nproc) expansion so ShellCheck SC2046 is satisfied;
change the -j argument to use a quoted substitution (e.g., -j"$(nproc)") in the
tools/ci/deps-ubuntu.sh script.

---

Nitpick comments:
In `@vcpkg.json`:
- Around line 46-47: The vcpkg manifest currently depends on "minizip-ng"
without feature control, while your Ubuntu from-source CI disables MZ_LZMA,
MZ_ZSTD and MZ_WZAES; update vcpkg.json's "minizip-ng" entry to explicitly opt
out of those defaults and only enable the compression backends actually required
by OpenMS (e.g. include a features array for "minizip-ng" that excludes lzma,
zstd, wzaes and keeps only the minimal features you need such as zlib/pkcrypt if
applicable), so the vcpkg-built dependency surface matches the from-source build
flags.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e17aad8 and be7dbab.

📒 Files selected for processing (7)
  • .github/workflows/openms_ci_matrix_full.yml
  • cmake/cmake_findExternalLibs.cmake
  • contrib
  • src/openms/CMakeLists.txt
  • tools/ci/deps-macos.sh
  • tools/ci/deps-ubuntu.sh
  • vcpkg.json
🚧 Files skipped from review as they are similar to previous changes (5)
  • src/openms/CMakeLists.txt
  • cmake/cmake_findExternalLibs.cmake
  • contrib
  • tools/ci/deps-macos.sh
  • .github/workflows/openms_ci_matrix_full.yml

Comment thread tools/ci/deps-ubuntu.sh
Comment on lines +49 to +51
MINIZIP_NG_VERSION=4.0.7
wget -q "https://github.com/zlib-ng/minizip-ng/archive/refs/tags/${MINIZIP_NG_VERSION}.tar.gz" -O /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz
tar xzf /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz -C /tmp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🌐 Web query:

minizip-ng 4.0.7 SHA-256 checksum GitHub release

💡 Result:

For the GitHub source tarball minizip-ng/archive/4.0.7.tar.gz, the SHA-256 is:

a87f1f734f97095fe1ef0018217c149d53d0f78438bcb77af38adc21dff2dfbc [1]

Release/tag reference: zlib-ng/minizip-ng 4.0.7 [2]

Sources: [1] [2]


Add checksum verification for downloaded minizip-ng archive.

The tarball is fetched without verifying a checksum, leaving the build open to MITM or tampered GitHub release artifacts. Add SHA-256 verification to mitigate this.

Proposed fix: add checksum verification
 MINIZIP_NG_VERSION=4.0.7
 wget -q "https://github.com/zlib-ng/minizip-ng/archive/refs/tags/${MINIZIP_NG_VERSION}.tar.gz" -O /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz
+echo "a87f1f734f97095fe1ef0018217c149d53d0f78438bcb77af38adc21dff2dfbc  /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz" | sha256sum -c -
 tar xzf /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz -C /tmp
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tools/ci/deps-ubuntu.sh` around lines 49 - 51, The script downloads
MINIZIP_NG_VERSION into /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz without
verifying integrity; add a MINIZIP_NG_SHA256 variable containing the expected
SHA-256 and perform a checksum verification after download (e.g., create a
checksum file or echo the expected hash and pipe to sha256sum -c) and abort the
script if verification fails; update the flow around the wget line and the
subsequent tar extraction so extraction only occurs on a successful checksum
match.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
.github/workflows/openms_ci_matrix_full.yml (1)

239-239: xz may be an unnecessary explicit dependency

conda resolves transitive dependencies automatically, and the conda-forge minizip package should pull in xz if it requires it. Explicitly listing xz here is harmless but potentially redundant. If there's a specific reason xz needs to be pinned or forced (e.g., version conflict), a brief comment would help future maintainers.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/openms_ci_matrix_full.yml at line 239, The conda install
line explicitly includes "xz" which is likely redundant because conda-forge's
"minizip" should pull it in transitively; either remove "xz" from the install
command in the CI workflow (the line containing "conda install -c conda-forge
libarrow libparquet minizip xz -y") or, if there is a specific reason to force
xz (version pin or conflict), keep it but add a short comment explaining why
it's required for future maintainers.
cmake/cmake_findExternalLibs.cmake (1)

125-128: Optional: make the fallback target-driven rather than _FOUND-driven.

If find_package(minizip-ng CONFIG QUIET) succeeds (minizip-ng_FOUND=TRUE) but the installation is incomplete and exports neither MINIZIP::minizip-ng nor MINIZIP::minizip (e.g., a stale or partial contrib build), the find_package(minizip CONFIG REQUIRED) fallback is silently skipped and the build terminates at line 134. All documented platform paths are fine, but guarding on target existence instead is both more robust and eliminates the dependency on the _FOUND variable entirely:

♻️ Suggested refactor
 find_package(minizip-ng CONFIG QUIET)
-if(NOT minizip-ng_FOUND)
+if(NOT (TARGET MINIZIP::minizip-ng OR TARGET MINIZIP::minizip))
   find_package(minizip CONFIG REQUIRED)
 endif()
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cmake/cmake_findExternalLibs.cmake` around lines 125 - 128, The current
fallback checks minizip-ng_FOUND which can be TRUE even when expected targets
(MINIZIP::minizip-ng or MINIZIP::minizip) are not exported; change the logic in
the find_package sequence to check target existence instead of the _FOUND
variable: after calling find_package(minizip-ng CONFIG QUIET) test whether
TARGET MINIZIP::minizip-ng exists (using if(TARGET ...)) and only if it does
not, call find_package(minizip CONFIG REQUIRED) and then verify TARGET
MINIZIP::minizip; update the conditional that currently uses minizip-ng_FOUND so
that downstream code uses the presence of the MINIZIP::minizip-ng or
MINIZIP::minizip targets rather than the minizip-ng_FOUND flag.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/openms_ci_matrix_full.yml:
- Line 289: The workflow is hardcoding the pixi env path
(/tmp/pixi-deps/.pixi/envs/default) into the cmake_prefix output which couples
the CI to deps-ubuntu.sh; modify deps-ubuntu.sh to emit the resolved pixi
install path (e.g., write the full CMake prefix to a well-known file or print it
as an output variable) and update the workflow step that currently sets
cmake_prefix to read that emitted value instead of the hardcoded string (replace
the literal "/tmp/pixi-deps/.pixi/envs/default" in the workflow and the use of
$GITHUB_OUTPUT with reading the value produced by deps-ubuntu.sh so cmake_prefix
reflects the actual install root).

---

Nitpick comments:
In @.github/workflows/openms_ci_matrix_full.yml:
- Line 239: The conda install line explicitly includes "xz" which is likely
redundant because conda-forge's "minizip" should pull it in transitively; either
remove "xz" from the install command in the CI workflow (the line containing
"conda install -c conda-forge libarrow libparquet minizip xz -y") or, if there
is a specific reason to force xz (version pin or conflict), keep it but add a
short comment explaining why it's required for future maintainers.

In `@cmake/cmake_findExternalLibs.cmake`:
- Around line 125-128: The current fallback checks minizip-ng_FOUND which can be
TRUE even when expected targets (MINIZIP::minizip-ng or MINIZIP::minizip) are
not exported; change the logic in the find_package sequence to check target
existence instead of the _FOUND variable: after calling find_package(minizip-ng
CONFIG QUIET) test whether TARGET MINIZIP::minizip-ng exists (using if(TARGET
...)) and only if it does not, call find_package(minizip CONFIG REQUIRED) and
then verify TARGET MINIZIP::minizip; update the conditional that currently uses
minizip-ng_FOUND so that downstream code uses the presence of the
MINIZIP::minizip-ng or MINIZIP::minizip targets rather than the minizip-ng_FOUND
flag.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between be7dbab and 74b713a.

📒 Files selected for processing (7)
  • .github/workflows/openms_ci_matrix_full.yml
  • cmake/cmake_findExternalLibs.cmake
  • contrib
  • src/openms/CMakeLists.txt
  • tools/ci/deps-macos.sh
  • tools/ci/deps-ubuntu.sh
  • vcpkg.json
🚧 Files skipped from review as they are similar to previous changes (5)
  • tools/ci/deps-macos.sh
  • tools/ci/deps-ubuntu.sh
  • vcpkg.json
  • contrib
  • src/openms/CMakeLists.txt

fi
echo "Testing doxygen" && doxygen --version
echo "cmake_prefix=" >>$GITHUB_OUTPUT
echo "cmake_prefix=/tmp/pixi-deps/.pixi/envs/default" >>$GITHUB_OUTPUT

@coderabbitai coderabbitai Bot Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Find deps-ubuntu.sh
fd -g 'deps-ubuntu.sh' -type f

Repository: OpenMS/OpenMS

Length of output: 227


🏁 Script executed:

#!/bin/bash
# Find deps-ubuntu.sh
fd 'deps-ubuntu.sh' -t f

Repository: OpenMS/OpenMS

Length of output: 80


🏁 Script executed:

#!/bin/bash
# Check file size and read deps-ubuntu.sh
wc -l tools/ci/deps-ubuntu.sh
cat -n tools/ci/deps-ubuntu.sh

Repository: OpenMS/OpenMS

Length of output: 2611


🏁 Script executed:

#!/bin/bash
# Search for pixi.toml files and any custom pixi env configurations
fd 'pixi.toml' -t f
echo "---"
# Search for any references to pixi envs or custom environment names
rg -i 'pixi.*env|envs/|pixi_env' --max-count=20

Repository: OpenMS/OpenMS

Length of output: 50372


Hardcoded pixi environment path creates tight coupling with deps-ubuntu.sh

The path /tmp/pixi-deps/.pixi/envs/default assumes deps-ubuntu.sh creates a pixi project at exactly that location with the default environment. While currently accurate, any change to the install root or environment name in deps-ubuntu.sh will cause the workflow to silently fail—CMake silently skips non-existent CMAKE_PREFIX_PATH entries, making failures difficult to diagnose.

Consider having deps-ubuntu.sh emit the resolved path (to a file or environment variable) that the workflow can consume, eliminating this silent coupling.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/openms_ci_matrix_full.yml at line 289, The workflow is
hardcoding the pixi env path (/tmp/pixi-deps/.pixi/envs/default) into the
cmake_prefix output which couples the CI to deps-ubuntu.sh; modify
deps-ubuntu.sh to emit the resolved pixi install path (e.g., write the full
CMake prefix to a well-known file or print it as an output variable) and update
the workflow step that currently sets cmake_prefix to read that emitted value
instead of the hardcoded string (replace the literal
"/tmp/pixi-deps/.pixi/envs/default" in the workflow and the use of
$GITHUB_OUTPUT with reading the value produced by deps-ubuntu.sh so cmake_prefix
reflects the actual install root).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timosachsenberg where do we use pixi in CI?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah.. see below.

@timosachsenberg
timosachsenberg force-pushed the update-contrib-submodule branch 2 times, most recently from b9fd3c7 to 91db345 Compare February 24, 2026 14:23

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
.github/workflows/openms_ci_matrix_full.yml (1)

289-289: Hardcoded pixi environment path — already flagged.

This path /tmp/pixi-deps/.pixi/envs/default remains hardcoded and tightly coupled to deps-ubuntu.sh. The concern and suggested fix (emitting the resolved path from deps-ubuntu.sh) were raised in a previous review.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/openms_ci_matrix_full.yml at line 289, Hardcoded
cmake_prefix value ("cmake_prefix=/tmp/pixi-deps/.pixi/envs/default") must be
replaced by the value emitted by the deps-ubuntu.sh setup step; update the
workflow to stop writing the literal path and instead forward the output from
the deps setup step (the value emitted by deps-ubuntu.sh) into GITHUB_OUTPUT
(i.e. replace the hardcoded echo line with an echo that uses the deps step
output like the emitted cmake_prefix from deps-ubuntu.sh or
steps.<deps-step>.outputs.cmake_prefix), and ensure deps-ubuntu.sh actually
emits that cmake_prefix to be consumed by this workflow.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In @.github/workflows/openms_ci_matrix_full.yml:
- Line 289: Hardcoded cmake_prefix value
("cmake_prefix=/tmp/pixi-deps/.pixi/envs/default") must be replaced by the value
emitted by the deps-ubuntu.sh setup step; update the workflow to stop writing
the literal path and instead forward the output from the deps setup step (the
value emitted by deps-ubuntu.sh) into GITHUB_OUTPUT (i.e. replace the hardcoded
echo line with an echo that uses the deps step output like the emitted
cmake_prefix from deps-ubuntu.sh or steps.<deps-step>.outputs.cmake_prefix), and
ensure deps-ubuntu.sh actually emits that cmake_prefix to be consumed by this
workflow.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b9fd3c7 and 91db345.

📒 Files selected for processing (7)
  • .github/workflows/openms_ci_matrix_full.yml
  • cmake/cmake_findExternalLibs.cmake
  • contrib
  • src/openms/CMakeLists.txt
  • tools/ci/deps-macos.sh
  • tools/ci/deps-ubuntu.sh
  • vcpkg.json
✅ Files skipped from review due to trivial changes (1)
  • contrib
🚧 Files skipped from review as they are similar to previous changes (4)
  • cmake/cmake_findExternalLibs.cmake
  • tools/ci/deps-macos.sh
  • vcpkg.json
  • tools/ci/deps-ubuntu.sh

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

CI Status

All 5 build-and-test jobs pass (Ubuntu g++, Ubuntu clang++, Ubuntu ARM g++, macOS, Windows). The wheel build failures are expected and require infrastructure updates in follow-up work.

Follow-up tasks (separate PRs)

1. Rebuild Windows contrib archive

contrib_build-Windows.tar.gz (used by the pyopenms Windows wheel CI) needs to be rebuilt with minizip-ng included. Until then, build-wheels-windows will fail.

2. Rebuild Linux Docker images

ghcr.io/openms/contrib_manylinux_2_34 (used by the pyopenms Linux wheel CI) needs to be rebuilt with minizip-ng. Until then, build-wheels-linux and build-wheels-linux-arm will fail.

3. macOS wheels

build-wheels-macos may also need minizip-ng added to its build environment (was stuck pending on a runner during this PR's CI runs).

@timosachsenberg
timosachsenberg force-pushed the update-contrib-submodule branch 3 times, most recently from e32d6cb to e8326c6 Compare February 25, 2026 07:55
Comment thread tools/ci/deps-ubuntu.sh Outdated
libsimde-dev

# Install minizip-ng from conda-forge via pixi (no apt package available)
curl -fsSL https://pixi.sh/install.sh | PIXI_NO_PATH_UPDATE=1 bash

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof.. I wonder how that will work in packaging. I dont think it will. How would a deb package look like?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the only way is to build it here in CI based on the compression libs from apt

@jpfeuffer jpfeuffer Feb 25, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or to build it with fetchlib in CMake

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably because this is not minizip-ng
but I can try

@jpfeuffer jpfeuffer Feb 25, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. Then you have to use the alternatives (as usual ubuntu is decades behind). I dont think conda will fly in that combination on ubuntu either.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This library is too "new". It will take years until there is support in large repositories.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is even wontfix on ubuntu.. lol..

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed — reverted the pixi/conda-forge approach. We now build minizip-ng from source in CI (using the apt-provided zlib/bzip2). All CI jobs pass (build-and-test on all platforms + all pyopenms wheel builds and tests).

@timosachsenberg
timosachsenberg force-pushed the update-contrib-submodule branch from e8326c6 to 2439a97 Compare February 25, 2026 09:22
@jpfeuffer

jpfeuffer commented Feb 25, 2026 •

Copy link
Copy Markdown
Contributor

I guess it is fine but you really need to keep an eye on packaging. You need to update bioconda recipe. And you need to update self build docs for ubuntu.

@timosachsenberg
timosachsenberg force-pushed the update-contrib-submodule branch 3 times, most recently from 426b998 to 1b39703 Compare February 25, 2026 12:39
Integrate minizip-ng v4.0.7 across all build paths:
- contrib: build script and archive metadata (source uploaded to contrib-sources)
- vcpkg: add minizip-ng to dependencies
- CMake: dual-name find_package fallback (minizip-ng / minizip) for
  vcpkg/contrib (-ng suffix) and conda-forge (no suffix) compatibility
- CI: brew install (macOS), build from source (Ubuntu), conda install (Windows)

Closes #8791

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@pjones

pjones commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Why not use libzip? It has supported ZIP64 since 2012 and is in all of the package repos.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

Why not use libzip? It has supported ZIP64 since 2012 and is in all of the package repos.

You are right that this would be better.
I had the impression that it does not support streaming and I was not sure if we need it for mzpeak.

If you want I can make another PR with libzip and with the tests I confirmed working for minizip-ng.
At least we know now that minizip-ng could be a viable solution.

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

I think I originally came to minizip-ng as it uses zlib (which we already depend on) and it seemed lightweight. I will prepare an alternative PR

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.

Add minizip-ng

3 participants