Skip to content

[FIX,CI] Bioconda deploy: drop the python pin so the nightly tracks current bioconda-utils (#9905) - #9907

Merged
timosachsenberg merged 5 commits into
developfrom
claude/xerces-c-icu78-conda-gk2u01
Aug 13, 2026
Merged

timosachsenberg merged 5 commits into
developfrom
claude/xerces-c-icu78-conda-gk2u01

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes the dependency-solve failure in the nightly Deploy to Bioconda workflow tracked in #9905. Partial fix — see "What this does not fix" below.

Rewritten after review. The first version of this PR pinned bioconda-utils and the conda-forge-pinning snapshot; per @jpfeuffer's feedback it now removes pins instead, so the nightly mimics upstream bioconda and surfaces breakage against the pinnings they currently build with. The pinned form is commit 828d649 if it is ever wanted as a stopgap.

Root cause

The root cause was not a missing pin — it was an existing one.

The conda environment was created with a hardcoded python-version: "3.12". Each bioconda-utils release is built for exactly one python minor, and 4.2.0+ are python 3.13 only. So the already-unpinned conda install bioconda-utils could never resolve anything newer than 4.1.0, and 4.1.0 build 0 requires conda-forge-pinning 2024.11.29.12.37.53, which pins xerces_c: 3.2.

That matters because the recipe lists xerces-c unversioned in host:, so conda-build applies the variant. The build resolved xerces-c 3.2.5 (linked against icu 75), and {{ pin_compatible('xerces-c', max_pin='x.x') }} exported a xerces-c >=3.2.5,<3.3.0a0 run constraint. Every xerces-c 3.2.5 build links icu 73 or 75, while current libarrow and libcurl chains require icu >=78 — so the test environment became unsatisfiable and no nightly package has been published since 2026-07-09.

conda-forge has had a xerces-c built against icu 78 since 2025-12-21 (3.3.0 hd9031aa_1, all platforms). The workflow simply never saw a pinning that allowed it.

Change

Remove python-version entirely, rather than bumping it to 3.13 — otherwise the same trap returns when bioconda-utils moves to python 3.14. conda now picks the python that the current bioconda-utils requires:

+ bioconda-utils         4.5.0   pyhdfd78af_0        bioconda
+ conda-forge-pinning    2026.01.07.13.16.30         conda-forge
+ python                 3.13.15                     conda-forge

bioconda-utils declares the conda-forge-pinning snapshot it wants, so the tool version decides the pinning. Nothing is pinned here.

Two supporting changes:

  • Report the resolved tooling (python, bioconda-utils, conda-forge-pinning, conda-build, conda-index) after install. Deploy to Bioconda: openms-meta test env unsolvable (icu conflict between xerces-c and libarrow/libcurl) since 2026-08-12 #9905 was a silent downgrade, invisible unless you read the solver output; this makes the next drift one grep away in the log. python is included deliberately — it is the lever that caused this.
  • Match the build-env image to the resolved bioconda-utils, falling back to the rolling latest tag when that image has not been published yet. --docker derives the image tag from the tool version, but the image reaches quay.io after the conda package does: 4.5.0 is current on the bioconda channel and has no image tag as of 2026-08-12, so deriving it would fail the docker pull. The preflight keeps host and container on the same version whenever bioconda has published it, and still pins nothing.

Verification

The pinned form of this change was dispatched on this branch (run 31581583017) and confirmed the mechanism: the host environment resolved xerces-c 3.3.0 hd9031aa_1 with icu 78.3 h54a6638_2, the xerces-c leg of the solver tree went green, and the openms-meta build ran to completion (~49 min) instead of dying in the solve.

What this does not fix

One blocker remains, in OpenMS/bioconda-recipes, which this automation can read but not push to.

Recipe lint, now that we track current bioconda-utils. ≥4.2 lints more strictly than 4.1.0 did (run 31578751706, failed at lint in 60s):

ERROR recipes/openms-meta/meta.yaml: compiler_needs_stdlib_c   # rule does not exist in 4.1.0's linter
ERROR recipes/pyopenms/meta.yaml:   build_number_needs_reset

The two recipes have complementary gaps: pyopenms already skip-lints compiler_needs_stdlib_c but openms-meta does not, and openms-meta skip-lints build_number_needs_reset but pyopenms does not. Fixes: add {{ stdlib("c") }} next to the compiler in openms-meta (worth checking against the existing sysroot_linux-64 =2.17 in host:, which may make it redundant), reset build: number: to 0 in pyopenms. Surfacing this is the intended effect of tracking upstream.

Resolved since this PR was opened

The openms-thirdparty test environment. This was previously unsolvable — conda-forge's gnuplot pulls qt-main/cairo needing icu >=78, while percolator 3.9 depended on the legacy boost-cpp, a compatibility shim frozen at 1.85.0 that capped it at icu >=75.1,<76.

Fixed upstream: percolator 3.9 he32743f_1 was published on 2026-08-12, built against libboost >=1.86.0,<1.87.0a0. The full set now resolves under strict channel priority (220 packages), landing on libboost 1.86.0 hd24cca6_5, icu 78.3, xerces-c 3.3.0 hd9031aa_1 and gnuplot 6.0.5 with qt-main 5.15.15 — so gnuplot needs no change. Details in this comment.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • 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).


🤖 Generated with Claude Code

https://claude.ai/code/session_01W23deDEGt84Rvxqt35wnXy

claude added 2 commits August 12, 2026 08:28
…wngraded to a 2024 pinning (#9905)

The nightly "Deploy to Bioconda" workflow has published nothing since
2026-07-09. Since the 2026-08-12 run the failure is a dependency solve
error: the test environment for the built `openms` package is unsolvable
because `openms` requires `xerces-c >=3.2.5,<3.3.0a0`, and every
xerces-c 3.2.5 build links icu 73 or 75, while the current libarrow and
libcurl chains both require icu >=78.

Root cause is in this workflow, not in the recipe. The conda environment
is created with python 3.12, but bioconda-utils is built for python 3.13
since 4.2.0. The solver therefore silently picks bioconda-utils 4.1.0
(build 0), which requires conda-forge-pinning 2024.11.29.12.37.53. That
snapshot pins `xerces_c: 3.2` and `icu: 73`, so conda-build resolves the
recipe's unversioned `xerces-c` host dependency to xerces-c 3.2.5 (icu
75) and `pin_compatible('xerces-c', max_pin='x.x')` exports the
`>=3.2.5,<3.3.0a0` run constraint that cannot be satisfied any more.

The failing run confirms this: it installed bioconda-utils 4.1.0 with
conda-forge-pinning 2024.11.29.12.37.53, pulled the
bioconda-utils-build-env-cos7:4.1.0 image and resolved xerces-c 3.2.5
h988505b_2 with icu 75.1 in the host environment.

conda-forge does have a xerces-c built against icu 78 -- 3.3.0
hd9031aa_1, published 2025-12-21 for every platform -- and the current
conda-forge pinning has moved to `xerces_c: 3.3` and `icu: 78`. It was
never a propagation delay; the build simply never saw that pinning.

Use python 3.13 so a current bioconda-utils is installable, and pin it
explicitly, because its version selects both the conda-forge-pinning
snapshot and the quay.io build-env image tag. 4.4.1 is the newest
version with a published build-env image (4.5.0 has none, and
`--docker` derives the tag from the tool version, so it would fail the
image pull).

Verified by resolving the recipe's host dependencies against both
pinnings: `xerces_c: 3.2` reproduces the failing run exactly (xerces-c
3.2.5 h988505b_2, icu 75.1), while `xerces_c: 3.3` resolves xerces-c
3.3.0 hd9031aa_1 with icu 78.3, which widens the exported run constraint
to `>=3.3.0,<3.4.0a0` and leaves the solver an icu-78 compatible option.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W23deDEGt84Rvxqt35wnXy
…d of the toolchain version (#9905)

First attempt moved to python 3.13 + bioconda-utils 4.4.1. The pinning
part was right, but 4.4.1 also brings a stricter linter, and the lint
step (which has no `|| true`) failed on two pre-existing recipe gaps in
OpenMS/bioconda-recipes:

  ERROR recipes/openms-meta/meta.yaml: compiler_needs_stdlib_c
  ERROR recipes/pyopenms/meta.yaml: build_number_needs_reset

compiler_needs_stdlib_c does not exist in 4.1.0's linter at all, and
pyopenms already carries it in skip-lints while openms-meta does not --
the two recipes have complementary gaps. Both fixes belong in
bioconda-recipes, which this workflow only reads.

The pinning snapshot is the part that actually matters here, and it can
be selected independently of the toolchain version: bioconda-utils reads
conda_build_config.yaml from its own environment root, copies it into the
build container and passes it to conda-build via --variant-config-files,
so the host environment's conda-forge-pinning governs how the recipe's
unversioned host dependencies resolve.

So pin the snapshot directly. conda-forge-pinning 2026.01.07 pins
xerces_c to 3.3 rather than 3.2, which is what makes the build pick a
xerces-c linked against icu 78. Naming the snapshot also selects the
bioconda-utils build that requires it (4.1.0 build 1, released
2026-04-02) over build 0, and keeps the 4.1.0 linter and the 4.1.0
build-env image -- both of which the previous nightly already passed.

Verified the resulting environment resolves to bioconda-utils 4.1.0
pyhdfd78af_1 with conda-forge-pinning 2026.01.07.13.16.30 on python 3.12.

Moving to bioconda-utils >=4.2 stays the better long-term target and is
noted in the workflow comments, but it needs those two recipe fixes
first, plus a build-env image for 4.5.0, which is not published.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W23deDEGt84Rvxqt35wnXy
@coderabbitai

coderabbitai Bot commented Aug 12, 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: 07b0b3c7-2b75-4c56-81c6-0ade7790632d

📥 Commits

Reviewing files that changed from the base of the PR and between 67251ed and 29f35ea.

📒 Files selected for processing (1)
  • .github/workflows/bioconda_deploy.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/bioconda_deploy.yaml

📝 Walkthrough

Walkthrough

The Bioconda deployment workflow lets Conda select a compatible Python version, logs resolved tool versions, selects a matching build image with a latest fallback, and documents the environment setup. The changelog records these changes.

Changes

Bioconda deployment

Layer / File(s) Summary
Update deployment environment resolution
.github/workflows/bioconda_deploy.yaml, CHANGELOG
The workflow removes the Python 3.12 pin, retains unpinned tool resolution, logs resolved versions, selects a matching build image or latest, and documents the preflight-provided image and anaconda-client>=1.14 compatibility. The changelog records the updated environment resolution.

Sequence Diagram(s)

sequenceDiagram
  participant Workflow as Bioconda deploy workflow
  participant Conda
  participant Quay as Quay tag service
  Workflow->>Conda: Resolve Python and bioconda-utils
  Conda-->>Workflow: Return resolved versions
  Workflow->>Quay: Look up matching bioconda-utils image tag
  Quay-->>Workflow: Return matching tag or lookup failure
  Workflow->>Workflow: Export matching image or latest fallback
Loading

Possibly related issues

Poem

A rabbit lets Conda choose,
While build tools share their news.
Images hop to matching ground,
Latest waits when none are found.
The changelog records the clues.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main workflow change: removing the Python pin so nightly deployments track current bioconda-utils.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/xerces-c-icu78-conda-gk2u01

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.

@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.

🧹 Nitpick comments (1)
.github/workflows/bioconda_deploy.yaml (1)

47-56: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Pin bioconda-utils build 1 explicitly.

The snapshot currently excludes build 0, but the selector does not express this requirement. Use pyhdfd78af_1. The selected conda-forge-pinning version has only build hd8ed1ab_0.

Suggested install specification
-          conda install bioconda-utils=4.1.0 conda-forge-pinning=2026.01.07.13.16.30 conda-index -y
+          conda install \
+            "bioconda-utils==4.1.0=pyhdfd78af_1" \
+            "conda-forge-pinning==2026.01.07.13.16.30" \
+            conda-index -y
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/bioconda_deploy.yaml around lines 47 - 56, Update the
conda install specification to pin bioconda-utils to the pyhdfd78af_1 build
explicitly, while keeping the existing conda-forge-pinning version unchanged
since it only has build hd8ed1ab_0. Modify the bioconda-utils dependency in the
install command; leave conda-index and the surrounding workflow unchanged.

Source: MCP tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.github/workflows/bioconda_deploy.yaml:
- Around line 47-56: Update the conda install specification to pin
bioconda-utils to the pyhdfd78af_1 build explicitly, while keeping the existing
conda-forge-pinning version unchanged since it only has build hd8ed1ab_0. Modify
the bioconda-utils dependency in the install command; leave conda-index and the
surrounding workflow unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bf2ab9a0-dbbe-4197-8d0a-94340e92edea

📥 Commits

Reviewing files that changed from the base of the PR and between ffc7131 and 828d649.

📒 Files selected for processing (2)
  • .github/workflows/bioconda_deploy.yaml
  • CHANGELOG

Copy link
Copy Markdown
Contributor Author

Thanks — I looked at the bioconda-utils==4.1.0=pyhdfd78af_1 nitpick and am keeping the current spec. The premise that "the selector does not express this requirement" isn't quite right: it expresses it transitively, and the exclusion is a hard constraint rather than a preference.

Build 0 declares conda-forge-pinning 2024.11.29.12.37.53.*, so asking for the 2026 snapshot makes it unsatisfiable. The solver rejects the combination outright:

$ micromamba create -n cr2 --dry-run -c conda-forge -c bioconda python=3.12 \
    "bioconda-utils==4.1.0=pyhdfd78af_0" "conda-forge-pinning=2026.01.07.13.16.30" conda-index

Could not solve for environment specs
The following packages are incompatible
├─ bioconda-utils ==4.1.0 pyhdfd78af_0 is installable and it requires
│  └─ conda-forge-pinning =2024.11.29.12.37.53 *, which can be installed;
└─ conda-forge-pinning =2026.1.7.13.16.30 * is not installable because it conflicts with any installable versions previously reported.

And the spec as written resolves deterministically to the intended build:

+ bioconda-utils        4.1.0  pyhdfd78af_1          bioconda
+ conda-forge-pinning   2026.01.07.13.16.30  hd8ed1ab_0   conda-forge

I'd also rather not hardcode the build hash. The actual requirement here is the pinning snapshot — that is what decides how the recipe's unversioned xerces-c host dependency resolves — and the build number is an implementation detail of how bioconda packaged it. If 4.1.0 were ever repackaged as build 2 carrying the same snapshot, the version-based spec keeps working while =pyhdfd78af_1 would fail. Expressing the constraint we actually care about seems the more durable option, and the reasoning is written out in the comment block directly above the line.


Generated by Claude Code

@jpfeuffer

jpfeuffer commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

As mentioned in the issue, I think we should have a rolling latest for bioconda utils. No pinning. And definitely no pinning for the conda-pinnings! bioconda-utils version will decide on the pinning.

…urrent bioconda-utils (#9905)

Switch from pinning to rolling latest, per review feedback: the nightly
exists to mimic upstream bioconda and surface breakage against the
pinnings they currently build with, so pinning the tooling hides exactly
what the workflow is meant to catch.

The root of #9905 was not a missing pin but an existing one. The conda
environment was created with a hardcoded python 3.12, and bioconda-utils
ships for one python minor per release -- 4.2.0 and later are python 3.13
only. So `conda install bioconda-utils` could not pick anything newer
than 4.1.0, and 4.1.0 build 0 pulls conda-forge-pinning 2024.11.29, which
pins xerces_c to 3.2. That is what produced the xerces-c 3.2.5 / icu 75
build and the unsatisfiable run constraint.

Removing python-version entirely rather than bumping it to 3.13 keeps the
same trap from recurring when bioconda-utils moves to 3.14: conda now
picks the python that the current bioconda-utils needs. Verified this
resolves to bioconda-utils 4.5.0 on python 3.13.15 with
conda-forge-pinning 2026.01.07, so the bioconda-utils version decides the
pinning, as intended.

Two supporting changes:

- Echo the resolved bioconda-utils / conda-forge-pinning / conda-build
  versions after install. The original failure was a silent downgrade,
  invisible without reading the solver output.
- Point BUILD_ENV_IMAGE at the rolling `latest` build-env image.
  `--docker` otherwise derives the image tag from bioconda-utils' own
  version, and the image lands on quay.io after the conda package does:
  4.5.0 is current on the bioconda channel but has no image tag, so
  deriving it would fail the docker pull. This stays unpinned, following
  whatever bioconda publishes as current.

Note this makes the workflow red until two recipe fixes land in
OpenMS/bioconda-recipes, because bioconda-utils >=4.2 lints more
strictly than 4.1.0 did: openms-meta declares no c stdlib
(compiler_needs_stdlib_c, a rule that does not exist in 4.1.0) and
pyopenms needs its build number reset. Surfacing that is the point of
tracking upstream.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W23deDEGt84Rvxqt35wnXy

Copy link
Copy Markdown
Contributor Author

Agreed — "mimic upstream to see if something is failing with the current bioconda pinnings" is a better goal than what I had, and pinning defeats it. Switched to rolling latest in 4ad7d12; all pins are gone, including the conda-forge-pinning one.

One thing worth calling out, because it changes where the bug actually was: the root cause of #9905 was not a missing pin, it was an existing one. The env was created with a hardcoded python-version: "3.12", and bioconda-utils ships for one python minor per release — 4.2.0+ is python 3.13 only. So the unpinned conda install bioconda-utils could never pick anything newer than 4.1.0, and 4.1.0 build 0 pulls conda-forge-pinning 2024.11.29 (xerces_c: 3.2). The workflow was already "rolling latest" on paper; the python pin quietly capped it nine months back.

So I removed python-version entirely rather than bumping it to 3.13 — otherwise the same trap returns when bioconda-utils moves to 3.14. conda now picks the python the current bioconda-utils needs:

+ bioconda-utils         4.5.0   pyhdfd78af_0        bioconda
+ conda-forge-pinning    2026.01.07.13.16.30         conda-forge
+ python                 3.13.15                     conda-forge

bioconda-utils decides the pinning, as you wanted.

Two supporting bits:

  • The install step now echoes the resolved bioconda-utils / conda-forge-pinning / conda-build versions. Deploy to Bioconda: openms-meta test env unsolvable (icu conflict between xerces-c and libarrow/libcurl) since 2026-08-12 #9905 was a silent downgrade — invisible unless you read the solver output — and one grep in the log now catches the next one.
  • BUILD_ENV_IMAGE points at the rolling latest build-env image. --docker otherwise derives the tag from bioconda-utils' own version, and the image lands on quay.io after the conda package: 4.5.0 is current on the bioconda channel but has no image tag today (newest is 4.4.1, which is what latest points at). Deriving it would fail the docker pull. Also unpinned — it follows whatever bioconda publishes as current.

Heads-up on the trade-off

This makes the workflow red until two recipe fixes land in OpenMS/bioconda-recipes, because ≥4.2 lints more strictly than 4.1.0. I hit this earlier in run 31578751706, which died at lint in 60 seconds:

ERROR recipes/openms-meta/meta.yaml: compiler_needs_stdlib_c   # rule does not exist in 4.1.0's linter
ERROR recipes/pyopenms/meta.yaml:   build_number_needs_reset

Curiously pyopenms already has compiler_needs_stdlib_c in its skip-lints while openms-meta doesn't, and openms-meta skips build_number_needs_reset while pyopenms doesn't — the two recipes have exactly complementary gaps. Fixes: add {{ stdlib("c") }} next to the compiler in openms-meta, and reset build: number: to 0 in pyopenms.

I take it surfacing that is the point, but flagging it so the red isn't a surprise: the pinned version I'm replacing did get all the way through the openms-meta build and reached the openms-thirdparty conflict, whereas this one stops at lint until the recipes are updated. Happy to go back to the pinned form as a stopgap if you'd rather have the nightly publishing again first — your call.

On percolator: agreed it looks like the cleanest lever. Every build in bioconda including 3.9 (2026-06-15) still declares the legacy boost-cpp, which is what caps icu at 75 and collides with conda-forge's gnuplot needing icu ≥78. I can't push to OpenMS/bioconda-recipes from here, so the recipe side needs someone with access.


Generated by Claude Code

@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 (1)
.github/workflows/bioconda_deploy.yaml (1)

86-93: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Pin a compatible image for both Docker build steps.

latest exists, but it currently resolves to the 4.4.1 image while the workflow can install bioconda-utils 4.5.0. Test compatibility, then use a matching versioned tag or immutable digest. Add a preflight if rolling updates are required.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/bioconda_deploy.yaml around lines 86 - 93, Update the
BUILD_ENV_IMAGE setting used by both Docker build steps to a tested image
compatible with the installed bioconda-utils version, using a matching versioned
tag or immutable digest instead of latest. If retaining rolling-image behavior,
add a preflight compatibility check before the build steps.

Source: MCP tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/bioconda_deploy.yaml:
- Line 52: Update the conda tooling report command to include python in its grep
match alongside the existing bioconda and conda tools, and remove the trailing
|| true so the workflow step fails when the expected tooling report is
incomplete.

---

Nitpick comments:
In @.github/workflows/bioconda_deploy.yaml:
- Around line 86-93: Update the BUILD_ENV_IMAGE setting used by both Docker
build steps to a tested image compatible with the installed bioconda-utils
version, using a matching versioned tag or immutable digest instead of latest.
If retaining rolling-image behavior, add a preflight compatibility check before
the build steps.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c9d03b1f-15ee-4730-baf0-c78a833d8acc

📥 Commits

Reviewing files that changed from the base of the PR and between 828d649 and 4ad7d12.

📒 Files selected for processing (2)
  • .github/workflows/bioconda_deploy.yaml
  • CHANGELOG

Comment thread .github/workflows/bioconda_deploy.yaml Outdated
# pinning, which is invisible unless you read the solver output. Record the
# resolved versions so the next such drift is one grep away in the log.
echo "--- resolved build tooling ---"
conda list --export | grep -E '^(bioconda-utils|conda-forge-pinning|conda-build|conda-index)=' || true

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- workflow context ---'
cat -n .github/workflows/bioconda_deploy.yaml | sed -n '1,125p'

printf '%s\n' '--- related references ---'
rg -n -C 3 'conda list|python(3\.[0-9]+)?|bioconda-utils|conda-forge-pinning|conda-build|conda-index|BUILD_ENV_IMAGE' .github/workflows .github 2>/dev/null || true

Repository: OpenMS/OpenMS

Length of output: 36847


🏁 Script executed:

#!/bin/bash
set -eu

python3 - <<'PY'
import re

pattern = re.compile(r'^(python|bioconda-utils|conda-forge-pinning|conda-build|conda-index)=')
sample = """python=3.13.7=h... 
bioconda-utils=4.2.0=...
conda-forge-pinning=2025.01=...
conda-build=24.9=...
conda-index=0.0=...
"""
matches = [line for line in sample.splitlines() if pattern.search(line)]
print("matched package lines:", len(matches))
print("python reported:", any(line.startswith("python=") for line in matches))
PY

printf '%s\n' '--- pipeline status with suppressed grep failure ---'
bash -e -c "printf '%s\n' 'openssl=1.0' | grep -E '^(python|bioconda-utils|conda-forge-pinning|conda-build|conda-index)=' || true; printf '%s\n' continued"

printf '%s\n' '--- pipeline status without suppression ---'
if bash -e -c "printf '%s\n' 'openssl=1.0' | grep -E '^(python|bioconda-utils|conda-forge-pinning|conda-build|conda-index)='; printf '%s\n' continued"; then
  echo "unexpected success"
else
  echo "grep failure is visible"
fi

Repository: OpenMS/OpenMS

Length of output: 329


Include Python in the resolved-tooling report.

Add python to the match and remove || true so an incomplete report fails the step.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/bioconda_deploy.yaml at line 52, Update the conda tooling
report command to include python in its grep match alongside the existing
bioconda and conda tools, and remove the trailing || true so the workflow step
fails when the expected tooling report is incomplete.

Source: MCP tools

…image to bioconda-utils

Two review follow-ups on the rolling-latest change.

Include python in the resolved-tooling report. Each bioconda-utils
release is built for exactly one python minor, so python is the lever
that caused #9905 -- logging it is what would have made that silent
downgrade obvious at a glance. Keep the `|| true`: the step runs under
`bash -le`, so an unmatched grep would abort the job, and this line is
pure diagnostics. `conda install` above already fails loudly if the
tooling is not installed, so there is no failure this suppresses.

Replace the hardcoded `:latest` build-env image with a preflight that
prefers the image matching the bioconda-utils actually resolved and only
falls back to `latest` when that image has not been published yet. The
tag `--docker` derives from the tool version is the correct one; the
problem is purely that the image reaches quay.io after the conda package
(4.5.0 is current on the bioconda channel with no image tag as of
2026-08-12), which would fail the pull. This keeps host and container on
the same version whenever bioconda has published it, closing the skew
rather than baking it in, and still pins nothing.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W23deDEGt84Rvxqt35wnXy
@timosachsenberg timosachsenberg changed the title [FIX,CI] Bioconda deploy: pin the conda-forge-pinning snapshot so the build resolves xerces-c against icu 78 (#9905) [FIX,CI] Bioconda deploy: drop the python pin so the nightly tracks current bioconda-utils (#9905) Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Took two of the three, in 67251ed.

Stale title/description — fixed. Good catch, and the description was worse than the title: both still described the pinning approach this PR no longer takes. Retitled and rewritten to match what it actually does now.

python in the resolved-tooling report — taken. It's the right addition for exactly the reason the report exists: each bioconda-utils release is built for one python minor, so python is the lever that caused #9905. Logging it is what would have made that silent downgrade obvious.

I kept the || true though. The step runs under bash -le, so an unmatched grep would abort the job — and this line is pure diagnostics. conda install on the line above already fails loudly if the tooling isn't installed, so there is no real failure that || true suppresses; removing it only adds a way for a logging quirk to fail a deploy.

BUILD_ENV_IMAGE — the observation was right, the remedy wasn't. Pinning a version tag or digest is what @jpfeuffer's review explicitly ruled out, so that direction is closed.

But the skew you spotted is real, and the "preflight" alternative is better than what I had. Rather than hardcoding :latest, the workflow now derives the tag from the bioconda-utils it actually resolved and only falls back to latest when that image hasn't been published yet:

bu_version=$(conda list --export | sed -n 's/^bioconda-utils=\([^=]*\)=.*/\1/p')
if [ -n "$bu_version" ] && docker manifest inspect "$image_repo:$bu_version" >/dev/null 2>&1; then
  echo "BUILD_ENV_IMAGE=$image_repo:$bu_version" >> $GITHUB_ENV
else
  echo "No build-env image published for bioconda-utils ${bu_version:-unknown} yet; falling back to :latest"
  echo "BUILD_ENV_IMAGE=$image_repo:latest" >> $GITHUB_ENV
fi

The version-derived tag was always the correct one — the only problem is that the image reaches quay.io after the conda package (4.5.0 is current on the channel with no image tag today). So this closes the skew whenever bioconda has published the matching image, instead of baking latest in permanently, and still pins nothing. It also logs which branch it took, so the skew is visible when it does happen.


Generated by Claude Code

@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.

🧹 Nitpick comments (1)
.github/workflows/bioconda_deploy.yaml (1)

63-69: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Handle registry errors separately from a missing image tag.

docker manifest inspect returns a nonzero status for both missing tags and registry or network failures. Retry the lookup, fall back only when the tag is absent, and fail the job for other errors. The ubuntu-latest runner provides Docker, but docker manifest inspect remains experimental.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/bioconda_deploy.yaml around lines 63 - 69, Update the
build-env image lookup in the workflow’s conditional block to retry docker
manifest inspection, distinguish a missing image tag from registry or network
failures, and continue to :latest only when the requested tag is confirmed
absent. Preserve the existing matching-image path, but make other inspection
errors fail the job; use the existing bu_version, image_repo, and
BUILD_ENV_IMAGE flow.

Source: MCP tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.github/workflows/bioconda_deploy.yaml:
- Around line 63-69: Update the build-env image lookup in the workflow’s
conditional block to retry docker manifest inspection, distinguish a missing
image tag from registry or network failures, and continue to :latest only when
the requested tag is confirmed absent. Preserve the existing matching-image
path, but make other inspection errors fail the job; use the existing
bu_version, image_repo, and BUILD_ENV_IMAGE flow.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0bc2111c-04e6-4ae7-9916-94640ad70683

📥 Commits

Reviewing files that changed from the base of the PR and between 4ad7d12 and 67251ed.

📒 Files selected for processing (1)
  • .github/workflows/bioconda_deploy.yaml

…of docker manifest inspect

Review follow-up. `docker manifest inspect` collapses "tag is not
published" and "we could not reach the registry" into one nonzero exit,
and it depends on `docker manifest` being enabled on the runner -- if it
is not, the lookup would fail every time and silently degrade to :latest
forever, which looks identical to working.

Quay's API separates the two cases: a published tag returns its name, an
unpublished one returns HTTP 200 with an empty tag list, and an
unreachable registry fails curl. Only the last is retried (3 attempts,
linear backoff).

A failed lookup still falls back to :latest rather than failing the job.
Staying on the rolling tag is a safe outcome -- it is what this workflow
did a commit ago -- so a flaky registry should not take down the nightly
when a good fallback exists. The chosen tag and the bioconda-utils it was
matched against are logged either way, so a fallback is visible rather
than silent.

Verified all three paths under `bash -e`: a published tag (4.4.1) selects
the matching image, an unpublished one (4.5.0) falls back with a clear
message, and a failing lookup retries and falls back, none of them
aborting the step.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W23deDEGt84Rvxqt35wnXy

Copy link
Copy Markdown
Contributor Author

Took the diagnosis, not the prescribed remedy — 29f35ea.

The docker manifest inspect concern was right, and for a better reason than the one given. The retry/network angle is minor, but the "remains experimental" part is the real hazard: if docker manifest isn't enabled on the runner, the lookup fails every time and the preflight silently degrades to :latest forever — which looks exactly like it working. Dead code that reports success is worse than no code.

So I dropped the docker CLI entirely and ask quay's API instead, which distinguishes the two states on its own:

case response
tag published (4.4.1) {"tags": [{"name": "4.4.1", ...}]}
not published yet (4.5.0) {"tags": [], ...} — HTTP 200, definitively absent
registry unreachable curl fails

Only the third is retried (3 attempts, linear backoff). That's the distinction the review asked for, without depending on an optional docker feature.

I did not make lookup failures fail the job. Falling back to :latest is a safe outcome — it's exactly what this workflow did one commit ago, and what it will do for every new bioconda-utils release until the image is published. Hard-failing there would trade a benign degradation for a broken nightly on a flaky network call, which is the wrong direction for a deploy that already only runs once a day. The chosen tag and the bioconda-utils it was matched against are logged either way, so a fallback is visible rather than silent.

Verified all three paths under bash -e, since the step runs with errexit and an earlier draft of this loop would have tripped it:

--- image exists ---
Using build-env image ...:4.4.1 (bioconda-utils 4.4.1)                     exit=0
--- image not published yet ---
quay.io has no build-env image for bioconda-utils 4.5.0 yet
Using build-env image ...:latest (bioconda-utils 4.5.0)                    exit=0
--- registry lookup fails ---
quay.io tag lookup failed (attempt 1/3) ... (2/3) ... (3/3)
Using build-env image ...:latest (bioconda-utils 4.4.1)                    exit=0

Generated by Claude Code

timosachsenberg added a commit to OpenMS/bioconda-recipes that referenced this pull request Aug 13, 2026
bioconda-utils >=4.2 lints more strictly than the 4.1.0 the deploy has
been silently held at (OpenMS/OpenMS#9905), and the deploy stops at lint
before it can build anything:

  ERROR recipes/openms-meta/meta.yaml: compiler_needs_stdlib_c
  ERROR recipes/pyopenms/meta.yaml:   build_number_needs_reset

openms-meta requests a compiler in three build sections but declares no
C stdlib; compiler_needs_stdlib_c does not exist in 4.1.0's linter at
all, which is why this never fired before. Add {{ stdlib('c') }}
alongside each {{ compiler('cxx') }}.

Note the host sections still carry `sysroot_linux-64 =2.17` with a
comment about a [email protected] error. That is the pre-stdlib way of
expressing the same constraint, and under the current pinning
stdlib('c') resolves to the same sysroot_linux-64 2.17, so the two agree
rather than conflict. Left in place deliberately: removing it is a
separate change that should be verified on its own.

pyopenms is at build number 1 for a version that has never been
published to the bioconda channel, which is what the check objects to.
Reset to 0. The two recipes had exactly complementary gaps here --
pyopenms already skip-lints compiler_needs_stdlib_c while openms-meta
did not, and openms-meta skip-lints build_number_needs_reset while
pyopenms did not.

Refs OpenMS/OpenMS#9905, OpenMS/OpenMS#9907

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W23deDEGt84Rvxqt35wnXy
timosachsenberg added a commit to OpenMS/bioconda-recipes that referenced this pull request Aug 13, 2026
Second half of the lint fix; the previous commit covered pyopenms but
its files list mistakenly omitted this one.

bioconda-utils >=4.2 enforces compiler_needs_stdlib_c, a rule that does
not exist in the 4.1.0 the deploy has been silently held at
(OpenMS/OpenMS#9905). The recipe requests {{ compiler('cxx') }} in three
build sections -- top level, the libopenms output and the openms output
-- and declares no C stdlib, so the deploy now stops at lint before
building anything.

Add {{ stdlib('c') }} next to each compiler entry.

The host sections still carry `sysroot_linux-64 =2.17` with a comment
about preventing a [email protected] error. That is the pre-stdlib way of
expressing the same constraint, and under the current pinning
stdlib('c') resolves to the same sysroot_linux-64 2.17, so the two agree
rather than conflict. Left in place deliberately -- dropping it is a
separate change worth verifying on its own.

Refs OpenMS/OpenMS#9905, OpenMS/OpenMS#9907

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W23deDEGt84Rvxqt35wnXy
@timosachsenberg

Copy link
Copy Markdown
Contributor Author

ok lets try

@timosachsenberg
timosachsenberg merged commit 5c1b0d4 into develop Aug 13, 2026
34 checks passed
@timosachsenberg
timosachsenberg deleted the claude/xerces-c-icu78-conda-gk2u01 branch August 13, 2026 06:41
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