Include trigger jobs in failure MR widget
What does this MR do and why?
Add trigger jobs in the list of failed jobs and disable the retry button for now. We need to handle the retry the same we do in the graph, which means showing a warning that we will recreate the whole downstream. In the spirit of iteration, for now we simply disable the action. Note also that clicking on the job ID now takes you to the downstream pipeline since trigger jobs do not properly exists within the project,you cannot go to jobs/trigger_job_id
as you would get a 404 error. This is the same behaviour that we have in the big pipeline graph.
This is behind a FF ci_job_failures_in_mr
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
- | ![]() |
How to set up and validate locally
Pre-requisites: make sure to have working runners
- Enable the FF in rails console Feature.enable(:ci_job_failures_in_mr)
- Inside your repository, create a file names
pipeline.yml
- That file should contain any job that will fail. Let's make it:
job_from_my_child_pipeline:
script: exit 1
- Navigate to your pipeline editor
Build -> Pipeline Editor
- Add a trigger job that will link to the new CI configuration
trigger_job:
stage: build
trigger:
include: pipeline.yml
strategy: depend
- Commit this change
- Now, create a merge request for any code change and go to the MR
- Navigate to the
Pipelines
tab of the MR - Notice that the Trigger job has failed
- Notice that you can see that job inside the pipeline widget failure
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.