Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use different cherry-pick format for main #12455

Conversation

JonWBedard
Copy link
Member

@JonWBedard JonWBedard commented Apr 6, 2023

659cd39

Use different cherry-pick format for main
https://bugs.webkit.org/show_bug.cgi?id=255088
rdar://107708812

Reviewed by Dewei Zhu.

When cherry-picking into main, retain the original commit message in it's entireity
and tag the bottom of the commit with a 'Originally-landed-as' message. Use existing behavior
for all other branches.

* Tools/Scripts/libraries/webkitscmpy/setup.py: Bump version.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto.
* Tools/Scripts/hooks/prepare-commit-msg:
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/canonicalize/message.py:
(main): Do not insert lines between trailers.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/install_hooks.py:
(InstallHooks.main): Pass default branch, trailers to strip and source remotes to hook templates.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/canonicalize_unittest.py:
(TestCanonicalize.test_alternate_trailer):

Canonical link: https://commits.webkit.org/262726@main

b2e8d31

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug   πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ›  gtk
βœ… πŸ§ͺ webkitpy   πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ mac-wk1   πŸ§ͺ gtk-wk2
βœ… πŸ›  tv   πŸ§ͺ api-ios   πŸ§ͺ api-gtk
βœ… πŸ§ͺ mac-wk2 βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ§ͺ services βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  watch
βœ… πŸ›  πŸ§ͺ unsafe-merge βœ… πŸ›  watch-sim

@JonWBedard JonWBedard self-assigned this Apr 6, 2023
@JonWBedard JonWBedard added the Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases label Apr 6, 2023
@JonWBedard
Copy link
Member Author

#12457 is an example of what this actually looks like. We still have to have some tools adopt reading this new format, but that is being done in separate commits.

@JonWBedard JonWBedard added the skip-ews Applied to prevent a change from being run on EWS label Apr 6, 2023
@aproskuryakov
Copy link
Contributor

#12457 is an example of what this actually looks like. We still have to have some tools adopt reading this new format, but that is being done in separate commits.

May be clearer to say "Originally landed as", not "Cherry-pick". Or at least "Cherry-pick from".

Otherwise, the new format looks good to me.

@JonWBedard
Copy link
Member Author

JonWBedard commented Apr 6, 2023

#12457 is an example of what this actually looks like. We still have to have some tools adopt reading this new format, but that is being done in separate commits.

May be clearer to say "Originally landed as", not "Cherry-pick". Or at least "Cherry-pick from".

Otherwise, the new format looks good to me.

If we're diverging from the Cherry-pick terminology (which I think is fine), I think I'd prefer "Originally landed as"

@aproskuryakov
Copy link
Contributor

But now I'm thinking that it could confuse people into thinking that it's about originally landing, reverting and re-landing. "Originally landed on release branch as"?

@JonWBedard
Copy link
Member Author

But now I'm thinking that it could confuse people into thinking that it's about originally landing, reverting and re-landing. "Originally landed on release branch as"?

Seems like we would be duplicating information with that that descriptor. Some full examples of our proposals here:

Cherry-pick: 259548.279@safari-7615-branch (41f425bc0ef8). rdar://107710008
Cherry-pick from: 259548.279@safari-7615-branch (41f425bc0ef8). rdar://107710008
Originally landed as: 259548.279@safari-7615-branch (41f425bc0ef8). rdar://107710008
Originally landed on release branch as: 259548.279@safari-7615-branch (41f425bc0ef8). rdar://107710008

I would prefer the shorter version of the "Originally landed as", but the longer version of the "Cherry-pick" one.

@JonWBedard
Copy link
Member Author

git-webkit reading this is implemented in #12475

@JonWBedard JonWBedard removed the skip-ews Applied to prevent a change from being run on EWS label Apr 6, 2023
@JonWBedard JonWBedard force-pushed the eng/Use-different-cherry-pick-format-for-main branch from 28de774 to da640e4 Compare April 6, 2023 20:56
Copy link
Member Author

@JonWBedard JonWBedard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version uses Originally-landed-as, I added the dashes because that makes it compatible with git-interpret-trailers, should we have any desire to leverage that fact in the future.

@JonWBedard JonWBedard force-pushed the eng/Use-different-cherry-pick-format-for-main branch from da640e4 to b2e8d31 Compare April 7, 2023 15:14
@JonWBedard JonWBedard added the skip-ews Applied to prevent a change from being run on EWS label Apr 7, 2023
Copy link
Contributor

@dewei-zhu dewei-zhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

@JonWBedard JonWBedard added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Apr 7, 2023
https://bugs.webkit.org/show_bug.cgi?id=255088
rdar://107708812

Reviewed by Dewei Zhu.

When cherry-picking into main, retain the original commit message in it's entireity
and tag the bottom of the commit with a 'Originally-landed-as' message. Use existing behavior
for all other branches.

* Tools/Scripts/libraries/webkitscmpy/setup.py: Bump version.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto.
* Tools/Scripts/hooks/prepare-commit-msg:
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/canonicalize/message.py:
(main): Do not insert lines between trailers.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/install_hooks.py:
(InstallHooks.main): Pass default branch, trailers to strip and source remotes to hook templates.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/canonicalize_unittest.py:
(TestCanonicalize.test_alternate_trailer):

Canonical link: https://commits.webkit.org/262726@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Use-different-cherry-pick-format-for-main branch from b2e8d31 to 659cd39 Compare April 7, 2023 20:29
@webkit-commit-queue
Copy link
Collaborator

Committed 262726@main (659cd39): https://commits.webkit.org/262726@main

Reviewed commits have been landed. Closing PR #12455 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 659cd39 into WebKit:main Apr 7, 2023
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Apr 7, 2023
@JonWBedard JonWBedard deleted the eng/Use-different-cherry-pick-format-for-main branch April 18, 2023 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-ews Applied to prevent a change from being run on EWS Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases
Projects
None yet
5 participants