Disabling pipelines must succeed option has no effect until MR is closed and reopened
Summary
If a merge request pipeline fails, and then we disable the "pipelines must succeed" option, MR is still blocked requiring a successful pipeline.
Steps to reproduce
- Create a new project
- Go to
Settings > Merge requestsand check thePipelines must succeedcheckbox (enable it). ClickSave changes. - Add
.gitlab-ci.ymlwith a job that fails:
test:
script:
- exit 1
- Commit to a new branch and create merge request
- Check
auto-mergeoption - MR is blocked - expecting a successful pipeline
- Go to
Settings > Merge requestsand uncheck thePipelines must succeedoption (disable it). ClickSave changes. - Reload the MR. It is still blocked requiring a successful pipeline.
Example Project
https://gitlab.com/e_munn_ultimate_group/tests/ci-tests/auto-merge-testing/-/merge_requests/1
What is the current bug behavior?
After a reload of the MR page, the value of Pipelines must succeed doesn't get refreshed.
What is the expected correct behavior?
When Pipelines must succeed setting has changed, a reload of the MR should pull the new value for the setting.
Relevant logs and/or screenshots
Disabling Pipelines must succeed setting after the creation of MR with a failed pipeline has no effect on the mergeability check.
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`)
Possible fixes
Close the MR and reopen it.
Edited by Elif Munn
