Add button to trigger fix_pipeline on an MR with a failing pipeline
What does this MR do and why?
This change adds an "Fix with Duo" button to failed CI/CD pipelines that are associated with merge requests. When a pipeline fails, users will now see a new button that can automatically suggest fixes using Duo Agentic Flows. The button only appears for failed pipelines that have an associated merge request, and it's controlled by a feature flag so it can be enabled or disabled as needed.
References
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
- In GDK open a merge request with a failed pipeline, open the pipeline tabs
- Notice there is no button with "Fix with Duo"
- In Rails console enable the feature flag
Feature.enable(:ai_duo_agent_fix_pipeline_button)
- Go back to the merge request and refresh
- Notice the button "Fix with Duo"
- Optionally, if you've setup AI gateway and a runner, click on the button and verify it starts a Flow.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #562189 (closed)
Edited by Fred de Gier

