You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
When using a gitlab project with the merge commit with semi-linear history an MR source branch must be rebased if it's not up to date with the current target branch revision. Gitlab will refuse to merge the branch until the branch is rebased but atlantis will apply the change and then be unable to merge.
The behaviour was changed in #4402 and the linked issue #4390 suggests this was correcting the behaviour back to how it was prior to the needs_rebase merge status being introduced.
It seems to contradict the apply_requirement of mergeable
Reproduction Steps
Create a MR with a source branch that is not based on the latest commit of the target branch
Open Issue: There is a suggestion to manually update the commit status of a "stuck" Atlantis plan job to "success" using the GitLab commit status API as a workaround for merge request status issues [3].
The behavior you're observing, where Atlantis applies changes to un-mergeable merge requests, seems to contradict the apply_requirements of mergeable. This might be related to how the needs_rebase status is handled. The pull request #4402 aimed to address issues related to this status, potentially reverting behavior to how it was before the needs_rebase status was introduced [1].
If the issue persists, you might want to check if the logic in the PullIsMergeable function aligns with your expectations and whether the merge commit with semi-linear history setting in GitLab is affecting the mergeability checks [4].
Community Note
Overview of the Issue
When using a gitlab project with the
merge commit with semi-linear history
an MR source branch must be rebased if it's not up to date with the current target branch revision. Gitlab will refuse to merge the branch until the branch is rebased but atlantis will apply the change and then be unable to merge.The behaviour was changed in #4402 and the linked issue #4390 suggests this was correcting the behaviour back to how it was prior to the
needs_rebase
merge status being introduced.It seems to contradict the
apply_requirement
ofmergeable
Reproduction Steps
atlantis apply
Environment details
Atlantis server-side config file:
The text was updated successfully, but these errors were encountered: