Agents Lookup

Use cases / IT & DevOps

Root cause for a failed CI/CD job

From a failed pipeline job, ask an assistant to read the log, explain why it failed and suggest a fix.

DifficultyBeginner
Setup timeUnder 1 hour
CategoryIT & DevOps

The use case

Failed pipeline logs run to thousands of lines, and the real error is often buried far from the end. GitLab Duo's root cause analysis reads the failed job log, explains why the job failed, and suggests a fix, from a missing dependency to a broken test. Developers who did not write the pipeline can get unblocked without asking the platform team. The developer still checks the explanation against the log, applies the fix in a branch, and reruns the pipeline. Changes to shared pipeline config should be reviewed by the platform owner.

Example workflow

  1. Open the failed job
  2. Run root cause analysis
  3. Read the explanation and suggested fix
  4. Apply the fix on a branch and rerun
  5. Get platform review for shared config changes

Tools

Risks and guardrails

Sources

Written by Agents Lookup. Credits and official pages for the tools this use case names: