Skip to content

Log merge_action_status when merging MR

Patrick Bajao requested to merge 397495-log-merge-action-status into master

What does this MR do and why?

To help debugging a QA test failure (setting MR to MWPS), it's good to know what status is returned when #merge! is called in the controller. This way, we can isolate the cause of the flaky failure.

To do that, we push to Gitlab::ApplicationContext so it can be added to logs for Projects::MergeRequestsController#merge action requests as meta.merge_action_status.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #397495

Edited by Stan Hu

Merge request reports