Trigger mergeRequestMergeStatusUpdated when pipeline starts, fails, skipped, or succeed
Problem to solve
We want the merge widget to show updated status when pipelines on the MR starts, fails, skipped or succeed.
Proposal
Trigger the mergeRequestMergeStatusUpdated
subscription when:
- MR head pipeline transitioned to running
- MR head pipeline has failed
- MR head pipeline was created but skipped
- MR head pipeline succeeds
We can trigger the subscription in Ci::Pipeline
's status
state machine via after_transition
to running
, failed
, skipped
, and success
states. Ensure that this is done after commit so we don't affect the state update when redis call fails for some reason.
Put it behind a feature flag so we can easily disable it if something goes wrong.
Testing
Exploratory testing and feature specs of merge widget status when pipeline running/failed/skipped/success If the above cannot be covered in feature spec, an E2E test may need to be created Run package and e2e test job in MR.
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.