cloud-fan commented on code in PR #57959:
URL: https://github.com/apache/spark/pull/57959#discussion_r3767782662
##########
dev/merge_spark_pr.py:
##########
@@ -779,17 +796,30 @@ def cherry_pick(pr_num, merge_hash, default_branch,
branch_names, target_ref, al
{"b": ["b", "both", ""], "o": ["o", "only"], "a": ["a", "abort"]},
)
if choice == "b":
- picked_x = _do_cherry_pick(pr_num, merge_hash, sibling_x)
- picked_n = _do_cherry_pick(pr_num, merge_hash, pick_ref)
- return [picked_x, picked_n]
+ # Preserve any pick that already pushed: if the branch-M.N pick is
skipped after
Review Comment:
**Nit:**
```suggestion
# Preserve any pick that was already pushed: if the branch-M.N
pick is skipped after
```
##########
dev/merge_spark_pr.py:
##########
@@ -637,7 +650,9 @@ def merge_pr(pr_num, target_ref, title, body, pr_repo_desc,
pr_author, co_author
def _do_cherry_pick(pr_num, merge_hash, pick_ref):
"""Cherry-pick `merge_hash` onto `pick_ref` and push.
- Returns the (pushed ref, pushed commit hash) pair.
+ Returns the (pushed ref, pushed commit hash) pair. Raises `SkipCherryPick`
if the
+ cherry-pick conflicts and the committer declines to resolve it, having
first aborted
Review Comment:
**Nit:**
Please narrow this postcondition to say cleanup was attempted.
`continue_maybe` catches a failure from `git cherry-pick --abort` and still
raises `SkipCherryPick`, so observing this exception does not guarantee that
the pick was aborted and the tree restored.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]