feat(backport-legacy-split): announce a failed backport on the source PR - #242
Open
vcauesantos wants to merge 1 commit into
Open
feat(backport-legacy-split): announce a failed backport on the source PR#242vcauesantos wants to merge 1 commit into
vcauesantos wants to merge 1 commit into
Conversation
vcauesantos
marked this pull request as ready for review
August 27, 2026 18:54
Contributor
Author
|
/vcluster-review |
|
🔍 The agent swarm is reviewing PR #242. I'll post the results here when it's done. Admins can watch the run live |
loft-bot
reviewed
Aug 27, 2026
|
@vcauesantos ✅ Review finished for #242 |
A failed legacy backport said nothing: the summary comment is built after both halves run, so an early exit skipped it and the only trace was a red check on an already-merged PR. run.sh now emits a body on the failure path, and the workflow gates its comment steps on !cancelled() so the step still runs. The message is generic and names any PR already opened, since a mixed backport opens the OSS half first. An optional docs-url input links the caller's own documentation. The all-or-nothing apply is unchanged. Closes DEVOPS-1438
vcauesantos
force-pushed
the
devops-1438/drop-paths-absent-on-legacy-branch
branch
from
August 28, 2026 19:50
6bf5f96 to
34688c9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A failed legacy backport said nothing. The summary comment is built after both halves run, so any exit before that skipped it, and the only trace was a red check on a PR that is normally already merged by then. A target that never got a backport was indistinguishable from one that never needed one.
This posts a comment on the source PR when a backport fails:
The job still fails. This only makes it say so where the author will see it.
What this deliberately does not do
An earlier version of this branch dropped the paths that don't exist on the legacy branch and opened a partial backport as a draft. That is removed. The objection raised in review holds: a partial backport risks a regression on the release branch, because an incomplete PR reads as a complete one and a green partial can be merged as though nothing were missing.
The all-or-nothing apply is unchanged. This PR only adds reporting.
Design notes
!cancelled()on the comment steps instead of the defaultsuccess(). Without it the step is skipped on exactly the runs that need it.docs-urlinput, not a constant. This action is shared with the public OSS mirror, so an internal link must never be assumed; the line is omitted when a caller sets nothing.Test plan
make test-backport-legacy-split— 37/37 pass (31 before, 6 added).mainand pass with the change.shellcheckclean,make lint(actionlint + zizmor) no findings,make check-docsno drift.run.shreads those variables.Required follow-up
The gate lives in the reusable workflow, so callers pinning it by SHA need that pin advanced before this takes effect. The action tag alone does not carry it:
vcluster-pro(the onlylegacy-split: truecaller, so the one that matters here)vclusterandloft-enterprisepin the same workflow and are already on different SHAsThe same caller PR should set the docs link:
Closes DEVOPS-1438