-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: dont set commit status for old commits to new pipelines #4784
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
thanks @lukemassa @chenrui333 ! I had to fix a few conflicts, but all good now |
Somewhat related: |
Ah yes, similar... hmm let me compare this to what my PR is doing. |
Ok they are pretty much the same, except that this one will return earlier which is probably better than looping for longer and defaulting to setting |
Superseded by #5033 |
what
Stop Atlantis from updating the status of the wrong commit in GitLab
why
In Gitlab when a new commit was pushed while Atlantis was still running on a previous commit Atlantis would update the status of the wrong commit. This sometimes lead to merge requests not being mergeable by Atlantis as some of the statuses would be incorrect.
These changes prevent Atlantis from updating the status by returning early when
mr.HeadPipeline.SHA != pull.HeadCommit
tests
We've been running our own Atlantis with these changes for about a month. Have also included a test to ensure that the update status request is never made