MRs removed from the merge trains due to configuration, but no details are left about what that configuration is
Summary
Getting error when trying to add MR to the merge train and no insight on how to solve the problem.
Pipeline will not run for the selected trigger. The rules configuration prevented any jobs from being added to the pipeline.
Steps to reproduce
- enable merge trains in the repo settings
- create MR
- let all pipelines pass
- add MR to merge train
- MR is instantly removed from the merge train with an error
Pipeline will not run for the selected trigger. The rules configuration prevented any jobs from being added to the pipeline.
Example Project
What is the current bug behavior?
MR is instantly removed from the merge train with an error
Pipeline will not run for the selected trigger. The rules configuration prevented any jobs from being added to the pipeline.
What is the expected correct behavior?
MR is merged with the merge train or an actionable error is showed on why it cannot be merged.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: \`sudo gitlab-rake gitlab:env:info\`) (For installations from source run and paste the output of: \`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\`)
Results of GitLab application Check
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:check SANITIZE=true`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true`) (we will only investigate if the tests are passing)
Proposal
Update messages for when a MR was removed from merge train for the following use-cases
Message one - workflow:rules
This merge request was removed from the merge train because the pipeline did not run. Verify your workflow:rules configuration. More information.
Message two - rules
This merge request was removed from the merge train because the resulting pipeline would have been empty. Verify your rules configuration. More information.
Current failure reasons from issue are defined in app/presenters/ci/pipeline_presenter.rb
and the merge train removal messages are defined here ee/app/services/system_notes/merge_train_service.rb