Skip to content

fix: prevent false-positive backport failure notifications#22539

Draft
AztecBot wants to merge 1 commit intonextfrom
claudebox/45d3c5a07a4f7312-3
Draft

fix: prevent false-positive backport failure notifications#22539
AztecBot wants to merge 1 commit intonextfrom
claudebox/45d3c5a07a4f7312-3

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

Summary

Fixes false-positive "cherry-pick conflicts" notifications in the backport workflow.

What happened with PR #22489: The backport script successfully cherry-picked, pushed, and created the staging PR, but update-pr-body.sh failed afterward. Because ci3/source_options sets set -euo pipefail, this post-processing failure caused the script to exit non-zero. The workflow then unconditionally reported "Failed to cherry-pick due to conflicts" and dispatched ClaudeBox to fix non-existent conflicts.

Changes:

  • backport_to_staging.sh: Make the update-pr-body.sh call non-fatal (|| echo "Warning: ...") since the actual backport has already succeeded at that point
  • backport.yml: Explicitly skip merge-train and backport-staging PRs in the if condition (they were already filtered by label check, but this avoids running the label_checker job at all for these branches)

ClaudeBox log: https://claudebox.work/s/45d3c5a07a4f7312?run=3

The backport workflow was reporting cherry-pick conflicts when the
cherry-pick actually succeeded but update-pr-body.sh failed afterward.
With set -euo pipefail (from ci3/source_options), the post-processing
failure caused the whole script to exit non-zero, triggering a false
'cherry-pick conflicts' notification and dispatching ClaudeBox
unnecessarily.

Changes:
- Make update-pr-body.sh non-fatal in backport script (the backport
  itself already succeeded at that point)
- Skip merge-train and backport-staging PRs explicitly in backport.yml
  (they were already filtered by label check, but this avoids running
  the label_checker job unnecessarily)
@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant