Merging strategy of GitLab project to perform merge on is set to Fast forward.
Marge bot merge strategy is set to Fusion.gitlab_rebase with MARGE_REBASE_REMOTELY env variable.
GitLab merge request project to perform merging action on failure replication steps:
Repository: https://gitlab.com/futuresolutions1/test-merging-functionality
1) git checkout origin/main
2) git checkout -b successful-merging-scenario
3) git reset --hard HEAD~1
4) add any new file with content and commit it
5) git merge main
6) git push
Merging strategy of project to perform merge on is set to Fast forward. Marge bot merge strategy is set to Fusion.gitlab_rebase with MARGE_REBASE_REMOTELY env variable. Source failed-merging-scenario-case branch contains all changes from target main. Changes reflection was performed with manual git merge and then pushed to merge request. Then marge-bot under its execution is trying to perform rebasing again because current implementation expects, that last commit on source branch will be also last comit on target branch. Execution fails because changes are already contained inside source branch. This results in retry of merging action which is failing again. This will be retried in loop until execution will achieve its timeout.
Merging strategy of project to perform merge on is set to Fast forward. Marge bot merge strategy is set to Fusion.gitlab_rebase with MARGE_REBASE_REMOTELY env variable. Source successful-merging-scenario-case branch contains all changes from target main. Changes reflection was performed with manual git merge and then pushed to merge request. Then marge-bot correctly performs merge action and successfully finish its execution.
Requirements :
Merging strategy of GitLab project to perform merge on is set to
Fast forward
. Marge bot merge strategy is set toFusion.gitlab_rebase
withMARGE_REBASE_REMOTELY
env variable.GitLab merge request project to perform merging action on failure replication steps:
Repository: https://gitlab.com/futuresolutions1/test-merging-functionality 1)
git checkout origin/main
2)git checkout -b successful-merging-scenario
3)git reset --hard HEAD~1
4) add any new file with content and commit it 5)git merge main
6)git push
Failing scenario:
_marge-bot executor implementation mr: https://gitlab.com/futuresolutions1/marge-bot-executor/-/merge_requests/7_
Successful scenario after implementation change:
_marge-bot executor implementation mr: https://gitlab.com/futuresolutions1/marge-bot-executor/-/merge_requests/8_