lando-cli: expose MergeStrategy on push-merge
Categories
(Conduit :: Lando, enhancement)
Tracking
(Not tracked)
People
(Reporter: shtrom, Assigned: shtrom)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
| Assignee | ||
Updated•4 months ago
|
Comment 1•4 months ago
|
||
| Assignee | ||
Updated•4 months ago
|
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
:corey Could you confirm whether this is a true blocker?
I think we ran into an issue needing it as we were fiddling with non-standard way to update the repo as part of the migration, but I don't think it's needed with the normal flow of update.
This is a bit of a risky knob to add, so I'd rather not add it unless we're sure it's needed (:
Comment 3•2 months ago
|
||
It's definitely needed if we're to maintain the ability to do a manual merge as a fallback. Could it be kept in lando-cli with a warning?
Updated•2 months ago
|
| Assignee | ||
Comment 4•2 months ago
|
||
I think the way we did the manual merge last time was a bit wonky, which is what led us there.
Fx sherifs have the ability to do manual merges (autoland -> main and back, e.g., https://github.com/mozilla-firefox/firefox/commit/fe8af2900f1c9cba9319ef1c7fe607f824fb6f7e) without this, so I suspect “normal” manual merges should work for Tb too.
Is there a way we could test the flow out?
Comment 5•1 month ago
|
||
Is there any public documentation on how the Firefox team performs a manual merge? I recall last time that the issue was that we had to merge using a "theirs" merge strategy performed on the destination branch, and Lando would not accept a merge performed using a "theirs" merge strategy.
| Assignee | ||
Comment 6•1 month ago
|
||
I recall last time that the issue was that we had to merge using a "theirs" merge strategy performed on the destination branch
Yes, that's my recollection as well (theirs), but for some reason it was in the other direction as the Fx team does the merges. I suspect it may have been because had to merge in new changes into the esr153 branch from main. I think the resolution of this is what required the extra theirs support, but it should not be normally necessary.
The Fx sheriffs always use a path that ends up being a theirs to replicate the hg debugset-parent. This is handled within lando, without any extra option for lando-cli....
:sheehan, :aryx, I can't find the sheriff doc we used during the migration. Could you point us to it?
Comment 7•1 month ago
|
||
lando push-merge --lando-repo firefox-main --target-commit your_autoland_commit_hash --commit-message "Merge autoland to mozilla-central" is what code sheriffs use for merges.
lando push-commits --lando-repo firefox-main after cherry-picking commits to main locally is used for fast-track fixes and backouts.
Updated•1 month ago
|
Updated•1 month ago
|
Comment 8•1 month ago
|
||
@arynx can you point me to the overall sheriff doc?
I'm curious if you know the reason the main <-> autoland merges are done by hand instead of through a merge day action? I was planning to use automated merges for thunderbird so its just a couple clicks for sheriffs.
Comment 9•1 month ago
|
||
(In reply to Olivier Mehani [:shtrom] from comment #6)
I recall last time that the issue was that we had to merge using a "theirs" merge strategy performed on the destination branch
Yes, that's my recollection as well (
theirs), but for some reason it was in the other direction as the Fx team does the merges. I suspect it may have been because had to merge in new changes into the esr153 branch from main. I think the resolution of this is what required the extratheirssupport, but it should not be normally necessary.The Fx sheriffs always use a path that ends up being a
theirsto replicate thehg debugset-parent. This is handled within lando, without any extra option for lando-cli....
When sheriffs do a merge on the CLI it's a regular git merge between two commits. Release automation uses the theirs strategy to "merge" changes when we promote the release trains (ie when beta becomes release, we create a merge where we simply overwrite the code on release with the code on beta). We do this so the VCS history of the previous states are preserved. I don't think the theirs strategy is exposed via the CLI because sheriffs don't typically use that type of merge in their workflows.
:sheehan, :aryx, I can't find the sheriff doc we used during the migration. Could you point us to it?
I'm not sure where this is, sorry! :)
Comment 10•1 month ago
|
||
@arynx can you point me to the overall sheriff doc?
The document has been shared with you.
Merges are not always fast-forward merges, changes might have landed directly on firefox-main. The set of available lando-cli commands allows to run the sometimes required multiple steps to revert changes to resolved conflicts.
Description
•