Open Bug 2055105 Opened 4 months ago Updated 1 month ago

lando-cli: expose MergeStrategy on push-merge

Categories

(Conduit :: Lando, enhancement)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: shtrom, Assigned: shtrom)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

No description provided.
Summary: lando-cli: expose MergeStrategy on push-commits → lando-cli: expose MergeStrategy on push-merge
Assignee: nobody → omehani
Status: NEW → ASSIGNED
Blocks: tb-esr153
See Also: → 2055129

: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 (:

Flags: needinfo?(corey)

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?

Flags: needinfo?(corey)

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?

Flags: needinfo?(daniel)

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.

Flags: needinfo?(daniel)

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?

Flags: needinfo?(sheehan)
Flags: needinfo?(aryx.bugmail)

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.

Flags: needinfo?(aryx.bugmail)

@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.

No longer blocks: tb-esr153

(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 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....

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! :)

Flags: needinfo?(sheehan)

@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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: