Pipeline failure notifications sent to the users who's commits are included in the pipeline.
Problem to solve
We have repositories mirrored from GitHub and the user associated with each pipeline is not the same user who created the commits that triggered the pipeline. This means that the build failure notification goes to the wrong person and the user that broke the pipeline is unaware.
- Sasha, Software Developer, https://design.gitlab.com/research/personas#persona-sasha
Having all of the build failure notifications going to one person (who may have not even created any commits) makes the system very difficult to use. Developers should be alerted directly when they have created a commit that causes the pipeline to fail. It is also very useful to see a list of the commits that have not been included in a successful pipeline to easily determine what is new.
GitLab would need to keep track of which commits were not included in a previously successful pipeline so that it knows which ones are not causing the pipeline to fail. The UI should show this set of commits that have not been through a prior pipeline as "Changes in this pipeline". Any failure notifications should be sent to the creators of the commits in the pipeline rather than the user that GitLab is using to mirror the repository.
What does success look like, and how can we measure that?
The build failure notifications are only sent to people who have commits in the pipeline that have not previously been included in a successful pipeline.