Remove and re-add an MR to a merge train
gitlab-org/gitlab#24084 (closed) reports a transient bug in which the Add to merge train
button gets stuck in an indefinite loading state.
That issue was determined to be caused by not having only: [merge_requests]
in .gitlab-ci.yml
, which is invalid configuration.
Nonetheless, it would be worthwhile to be sure bug does not occur when the configuration is valid. This is an opportunity for a transient bug test.
Steps
-
Create a new project and enable "Merge pipelines will try to validate the post-merge result prior to merging"
-
Add the following
.gitlab-ci.yml
file. Note that the job does not haveonly: [merge_requests]
:test: script: - echo "no op" only: - merge_requests
-
Create a new merge request and wait until the MR's pipeline completes.
-
Click the "Start merge train" button
-
If the text changes to "Added to the merge train by ", click "Remove from merge train"
-
Repeat steps 4 and 5 10 times to confirm that the merge train starts each time.