Closed anholt closed 4 years ago
The missing link was to the GitLab API docs, specifically the get single MR endpoint where the quote comes from.
I've also been seeing this on gitlab.com since 12.8. Reassigning Marge usually works, which would make sense given this explanation.
Any thoughts on how a fix for this would work? Maybe poll the endpoint with an exponential back-off?
Yeah, I think that's the one. Maybe linear rather than exponential, since it certainly should complete quickly, and if the issue is background jobs (to recheck the MR status) aren't completing quickly, the poll shouldn't impede their progress as they're just a quick read of a Redis-cached property, run separately to the Sidekiq jobs (not necessarily even on the same node).
Since a gitlab update, we've been seeing "branch cannot be merged" intermittently from marge. One of our gitlab admins looked into it and concluded: