x/build/cmd/gerritbot: incorrectly attempts to close a cherry-pick CL #40151
Labels
Builders
x/build issues (builders, bots, dashboards)
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Consider a Gerrit CL that was imported from a GitHub PR, and merged (or closed without merging). For example, see PR #39821.
It's possible that a cherry-pick of that imported Gerrit CL will be made. For example, see CL 240343.
The cherry-pick CL will include the line "GitHub-Pull-Request: golang/go#39821" quoted from the original CL.
This confuses gerritbot into thinking the backport CL (into another branch) is the same as the original PR. Since the original PR was merged (aka closed), now that #23850 is fixed (/cc @stamblerre), gerritbot attempts to abandon the cherry-pick CL. Fortunately, it fails:
Things might be different if the cherry-pick was made before the original CL was merged. In either case, gerritbot shouldn't be trying to take this incorrect action. It's not a high priority since the disruption this causes at the moment doesn't seem to be large.
/cc @golang/osp-team
The text was updated successfully, but these errors were encountered: