Your CI/CD pipeline is a data source
Every build, test, and deploy leaves a trail. Here's how to turn pipeline noise into decisions about your codebase and your team.
Most teams treat CI/CD as a gate: green means ship, red means stop. But a pipeline is also one of the richest data sources you already have, and almost nobody reads it. Every build, test run, and deploy is a measurement of your codebase — continuous, honest, and timestamped.
Here’s what I look for.
The pipeline, read as a sensor
A pipeline isn’t just producing green/red — it’s emitting a stream of events that, aggregated, describe the health of the codebase and the team:
pipeline events (every build / test / deploy)
│
▼
metrics store (per test · per build · per engineer)
│
┌────┼──────────────────┬───────────────────┐
▼ ▼ ▼ ▼
flaky duration onboarding (more…)
tests trend signal
fail- p95 creep time-to-first-
rate per test green-PR
The gate is the byproduct. The data is the point.
Flakiness is a signal
A test that fails 1 in 20 runs isn’t a flaky annoyance — it’s a warning. Flaky tests erode trust in the whole pipeline; people start ignoring red, and real regressions hide in the noise. Track the fail-rate per test, not per build. A test that’s red more than once a week deserves a fix, a quarantine, or a deletion.
Duration trends catch decay
Watch the trend in build duration, not the absolute number. A pipeline that creeps from 12 to 25 minutes over a quarter is a codebase getting slower to change. You won’t notice a 30-second regression on any single day — you’ll see it on the chart.
# crude but effective: fail rate + p95 duration per test, weekly
ci-analytics report \
--window 7d \
--group-by test \
--metrics fail_rate,p95_duration \
--sort fail_rate:desc
The onboarding signal
The single most valuable CI metric for developer experience is time-to-first-green-PR for a new engineer. If it takes a week to get a first PR passing, your pipeline is a tax on onboarding. That number will tell you more about your DX than any survey.
The signals, as a table
The three above aren’t a vibe — they’re a small, checkable set. Make it explicit so someone actually acts on it:
| Signal | Metric | Threshold (example) | Action |
|---|---|---|---|
| Flaky test | per-test fail rate | > 1 red / week | fix, quarantine, or delete |
| Duration decay | p95 build duration trend | +20% over a quarter | find the slow step |
| Onboarding tax | time-to-first-green-PR | > 5 days for a new hire | fix the DX blockers |
The threshold column is the honest part — it’s where “we should watch this” becomes “we’ll do something when it crosses this line.” Without a threshold, the data is just a chart nobody opens.
The trade-off, stated plainly
Granularity and noise are the same dial, and the whole approach lives or dies on where you set it:
- Per-test metrics are precise — you know which test is flaky and which step slowed down — but they’re noisy. A test that fails 1 in 50 looks “flaky” at a 1/week threshold even when it’s a rare, real bug, and you’ll burn trust chasing ghosts.
- Per-build aggregates are stable and quiet, but they hide the culprit. A creeping p95 build time tells you something’s wrong without telling you where, and a single flaky test gets averaged into a green.
The honest default is to measure per-test and alert on a smoothed, per-test rate over a window — precise enough to point at a culprit, quiet enough to not cry wolf. And the alert has to route to an owner, or it’s just another dashboard.
Open questions
- Thresholds are arbitrary until they’re not. “1 red per week” and “+20% over a quarter” are judgment calls. How do you set them from the data rather than from a hunch, and how do you let them drift as the codebase changes?
- Attributing duration decay. A p95 creep over a quarter is real, but pinning it to the change that caused it is a separate, harder problem — the chart tells you “when,” not “which commit.”
- Small-n onboarding. Time-to-first-green-PR is the best DX metric I know, but it’s measured on a handful of new hires a year. That’s a wide confidence interval, and I’m not sure how to make it trustworthy without a lot of onboarding events.
This is the quiet precursor to a Software Factory: a factory is just a pipeline that emits this same data — and then acts on it instead of waiting for a human to open the dashboard.
You’re already paying to run this data. The only question is whether anyone’s reading it.