Skip to content

[SPARK-58944][INFRA] Complete cherry pick as part of merge script - #58214

Open
nchammas wants to merge 2 commits into
apache:masterfrom
nchammas:merge-pr-cherry-pick-whitespace
Open

[SPARK-58944][INFRA] Complete cherry pick as part of merge script#58214
nchammas wants to merge 2 commits into
apache:masterfrom
nchammas:merge-pr-cherry-pick-whitespace

Conversation

@nchammas

@nchammas nchammas commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

When a conflict occurs on cherry picking a commit to a branch, ask the user to fix the conflict but have the script continue the cherry pick itself.

Why are the changes needed?

If the user calls git cherry-pick --continue themselves, commit message lines starting with # will be interpreted as comments and stripped. This is what happened to me here. Compare the commit message on 9a75a1d (master) to 8cc56ea (branch-4.x) and note how every line beginning with # was stripped from the latter.

I'm not the only one who has hit this. It seems this has been happening for a while.

Cherry-Pick Commit Message Loss Cases

In all of these cases, the branch-4x commit messages are malformed relative to the originals from master.

Date master source branch-4.x backport
2026-07-21 99025ce 98e98b7
2026-07-20 6b719b3 6c0a252
2026-07-14 226340c 67df419
2026-07-11 710b3c4 da117f6
2026-06-18 880083f 84fcfba
2026-06-16 2fb4a1b 07d9f34
2026-06-03 13b526d 7a70689
2026-05-25 0af3d42 bdd5fdf
2026-05-16 0a0d31b f5273c7
2026-05-13 436291e f67a855
2026-05-08 bb72aef e7ae20a

Does this PR introduce any user-facing change?

No.

How was this patch tested?

I used this test script to confirm that commit.cleanup=scissors preserves Markdown headings and other lines that begin with # when there is a cherry pick conflict.

test-cherry-pick-commit-msg.sh

Was this patch authored or co-authored using generative AI tooling?

I wrote this with assistance from GitHub Copilot.

@nchammas nchammas changed the title [INFRA] Complete cherry pick as part of merge script [SPARK-58944][INFRA] Complete cherry pick as part of merge script Aug 23, 2026
@nchammas
nchammas marked this pull request as ready for review August 23, 2026 02:40
@uros-b

uros-b commented Aug 23, 2026

Copy link
Copy Markdown
Member

Thank you @nchammas!

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.

3 participants