Add a pause before creating MR on Gitlab to workaround a bug in Gitlab #44758
DBS-ST-VIT
started this conversation in
Suggest an Idea
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Gitlab currently has a bug that despite the configuration sometimes two pipelines for a merge request are started. See: https://gitlab.com/gitlab-org/gitlab/-/work_items/580101
In this post https://gitlab.com/gitlab-org/gitlab/-/work_items/580101#note_2915578156 someone mentioned that adding a pause between creating the commit and creating the MR has solved the issue for him.
We do have the same Problem with MR generated by renovate. So our idea was to add a pause before creating the MR. Length of the pause should be configurable with a default to 0.
This could be done in lib/modules/platform/gitlab/index.ts by modifying function createPr like this:
I will create a pull request later on. Would be great if this could be merged quickly.
All reactions