Backend: Allow Merge train to merge with Skipped jobs
Problem to solve
Merge Train stops when there's a job with a Skipped
status.
Intended users
Further details
Allowing merge train to continue when there's a "Skipped" job would allow user to use the merge train with more flexibility.
Proposal
When the options for "Pipelines must succeed" and "Skipped pipelines are considered successful" are checked a Merge train should not halt.
Technical Proposal (Backend only)
We do not take into account various settings around merging like project.allow_merge_on_skipped_pipeline?
.
We need to take this into account when checking whether to add it to the train and when merging.
POC MR: !87318 (closed)
Workaround
Users can disable "Pipelines Must Be Successful" to allow pipelines with skipped jobs to be added to merge trains. Steps to do this can be found in the Troubleshooting portion of the Merge Trains documentation.