Skip to content

[CI] Fix recurring Bioconda nightly deploy failure: rebase → merge - #9798

Merged
timosachsenberg merged 1 commit into
developfrom
claude/laughing-wozniak-6zfi4k
Jul 26, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/laughing-wozniak-6zfi4k

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jul 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

The nightly build CI (triggered by .github/workflows/update_nightly.yml every night at 01:4x UTC) is green for the main openms-ci-full build/test/package matrix, but the "Deploy to Bioconda" workflow it also triggers has failed every single night for 16 consecutive days (2026-07-10 through 2026-07-26), always at the same step:

error: could not apply 3968e92688... Re-sync nightly recipes onto bioconda/master (pyopenms+openms 3.6.0dev)
CONFLICT (content): Merge conflict in recipes/pyopenms/meta.yaml
##[error]Process completed with exit code 1.

Root cause

The "Clone Bioconda recipes repository and add our changes" step integrates the OpenMS/bioconda-recipes fork's nightly branch (which carries OpenMS-specific customizations: dev version pins, Arrow/Parquet pins, a nanobind-wheel build fix, etc.) with upstream bioconda/master via:

git rebase bioconda/master

git rebase replays the nightly branch's commits one at a time, in their original historical order, onto whatever bioconda/master looks like today. The nightly branch already periodically merges upstream on its own (its tip is already reconciled with a past state of bioconda/master), so replaying an old individual commit (e.g. the June 16 "Re-sync nightly recipes..." commit) in isolation reintroduces a conflict that upstream and nightly already resolved together long ago — even though the current tips of both branches merge together with zero conflicts.

I verified this locally:

  • git clone the fork's nightly branch, add the bioconda remote, git rebase bioconda/master → same conflict reproduced in recipes/pyopenms/meta.yaml.
  • git merge --no-edit bioconda/master from the same starting point → merges cleanly, no conflicts, and every OpenMS-owned recipe file (recipes/pyopenms/meta.yaml, recipes/pyopenms/build.sh, recipes/openms-meta/*) comes out byte-identical to before the merge — only unrelated upstream recipes elsewhere in the tree change.

Fix

Replace git rebase bioconda/master with git merge --no-edit bioconda/master. This diffs tip-vs-tip once instead of replaying stale per-commit history, which is what actually matches how this branch is used here (the merge result is only used locally within the CI job to build packages; nothing is pushed back, so there's no need for a linear rebased history). It will still fail loudly if a genuine, currently-unresolved content conflict arises between our nightly customizations and upstream — this is not a suppression of the check, just the correct git operation for combining two independently-evolving branches.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file (CI-only fix, not user-facing)
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes (CI workflow change; validated by reproducing the failure and the fix locally against the real OpenMS/bioconda-recipes and bioconda/bioconda-recipes repos — not covered by the local ctest suite)
  • Updated or added python bindings for changed or new classes (N/A, no code changes)

Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Improved the nightly deployment workflow for incorporating upstream Bioconda updates.
    • Reduced the likelihood of recurring merge conflicts during automated deployments.

The "Deploy to Bioconda" workflow has failed every night for 16
consecutive days (since 2026-07-10) with a rebase conflict in
recipes/pyopenms/meta.yaml while syncing the OpenMS/bioconda-recipes
"nightly" branch onto upstream bioconda/master.

Root cause: `git rebase bioconda/master` replays nightly's commits
one at a time, in their original historical order, onto today's
master. Since the nightly branch already periodically merges
upstream on its own (so its tip is already reconciled with a past
state of master), replaying an old nightly commit in isolation
reintroduces conflicts that upstream and nightly resolved together
long ago -- even though the current tips of both branches merge
together with zero conflicts. Verified locally: `git rebase
bioconda/master` conflicts, while `git merge bioconda/master`
succeeds cleanly and produces byte-identical results for every
OpenMS-owned recipe file (pyopenms, openms-meta, openms-thirdparty).

Switch the sync step from rebase to merge so it diffs tip-vs-tip
once instead of replaying stale history; it will still fail loudly
on genuine, unresolved content conflicts.

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

coderabbitai Bot commented Jul 26, 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: ca0a7120-3c9c-46e2-9184-b11949629fda

📥 Commits

Reviewing files that changed from the base of the PR and between 6304115 and e3d2615.

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

📝 Walkthrough

Walkthrough

The Bioconda deployment workflow now merges bioconda/master into the nightly branch instead of rebasing, with comments documenting the conflict-avoidance rationale.

Changes

Bioconda deployment workflow

Layer / File(s) Summary
Merge upstream Bioconda changes
.github/workflows/bioconda_deploy.yaml
Replaces git rebase bioconda/master with git merge --no-edit bioconda/master and explains the merge strategy.

Possibly related issues

Poem

A rabbit watched the branches twine,
“Merge them gently—now they’re fine!”
No replayed hops, no conflicts’ snare,
Nightly carrots flow with care.
Upstream blends into the hare!

🚥 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 matches the main change: switching the Bioconda nightly deploy workflow from rebase to merge to fix CI failures.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/laughing-wozniak-6zfi4k

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
timosachsenberg merged commit 2b82cf2 into develop Jul 26, 2026
40 checks passed
@timosachsenberg
timosachsenberg deleted the claude/laughing-wozniak-6zfi4k branch July 26, 2026 09:06
timosachsenberg added a commit that referenced this pull request Jul 30, 2026
Audited recently merged develop PRs against CHANGELOG (last backfill
attempt was #9811/#9806, covering up to #9803). Four merged PRs since
then were missing entries: #9824 (IsobaricWorkflow empty-feature
pruning fix), #9523 (new CI build/release workflows), #9812 (pyOpenMS
docstring fixes) and #9798 (Bioconda nightly deploy fix, whose two
prior backfill attempts were closed unmerged). #9821 (internal
TODO-comment correction, no behavior/doc change) and #9805/#9803
(test-only / already covered by the #9792 write-up) were left out,
consistent with this repo's convention of not logging
test-infrastructure-only or already-documented changes.


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

Co-authored-by: Claude <[email protected]>
timosachsenberg added a commit that referenced this pull request Aug 3, 2026
…ioconda CI fix) (#9819)

Routine sweep of recently merged develop PRs for changelog coverage.
Two merged PRs had no entry: #9812 (pyOpenMS MSChromatogram/Mobilogram
docstring fixes) and #9798 (nightly Bioconda deploy rebase->merge fix).
All other merged PRs since the last changelog update were already covered.


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

Co-authored-by: Claude <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
timosachsenberg pushed a commit that referenced this pull request Oct 15, 2026
…current workflow

Resolve the conflict with #9798 (rebase -> merge) in favour of the overlay:
the merge has failed every nightly since 2026-10-12, when the upstream
openms-meta/pyopenms 3.6.0 updates (bioconda #70094, #70181) started to
conflict with the nightly recipe copies. Keep everything else develop
changed in the workflow since this branch was created.

The overlay ignores upstream changes to the two recipes, so the step now
warns, without failing, about upstream commits to them that the nightly
branch has not taken over yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012GBvJZN8neGpv9RoUshwFL
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.

2 participants