Skip to content
Latchkey

Pipeline Observability Basics: Seeing Why CI Fails

Observability is being able to answer "why did this build fail or slow down?" without re-running it. It comes from collecting a few signals consistently across every run.

Most teams treat CI as pass/fail and lose all the history in between. Pipeline observability means capturing the signals - durations, outcomes, exit codes, flake rates - so failures become diagnosable trends instead of one-off mysteries.

The core signals

  • Per-job and per-step duration over time (to catch slow creep).
  • Outcome and exit code/signal for every failure (137? 143? 127?).
  • Per-test pass/fail history (to identify flakiness).
  • Queue time vs run time (to separate runner shortage from slow jobs).

From logs to trends

A single failing log tells you about one run. The same data aggregated across runs tells you whether failures cluster on a specific job, OS, time of day, or runner - which is what actually points to a root cause. Persist run metadata; do not let it scroll off with the log.

Questions good observability answers

Which step regressed our pipeline duration last week? Which tests fail intermittently and how often? Are failures concentrated in one matrix cell? How much time and money do re-runs cost us? You cannot answer any of these from a single build view - only from accumulated signals.

Acting on it

Observability is only useful if it drives action: quarantine the tests your flake data names, right-size the runners your duration data flags, and cut the re-runs your exit-code data exposes as transient. Self-healing CI platforms like Latchkey build on the same signals to recover transient and resource failures automatically.

Key takeaways

  • Observability answers "why did it fail/slow" without re-running.
  • Track durations, exit codes/signals, per-test history, and queue vs run time.
  • Aggregate across runs - single logs hide the patterns that name root causes.
  • The point is action: quarantine, right-size, and cut transient re-runs.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →