A healthy CI pipeline gives fast, trustworthy feedback without consuming more runner time than the team needs. This checklist helps you audit queue time, execution time, reliability, coverage, artifacts, parallelism, and cost with repeatable formulas, then turn the results into a practical monthly improvement plan.
Overview
Pipeline health is broader than a green or red build. A pipeline can pass consistently and still be unhealthy if developers wait too long for results, retries conceal failures, coverage is concentrated in a narrow test layer, or parallel workers create unnecessary compute usage.
Use this audit to score each important metric from 0 to 2:
- 2 points: the metric is within the team’s agreed target and is measured consistently.
- 1 point: the result is usable but needs attention or has limited trend data.
- 0 points: the result is outside the target, not measured, or not trusted.
For a simple eight-metric review, a total of 13–16 points indicates a pipeline that is generally under control, 8–12 indicates a pipeline with clear improvement opportunities, and 0–7 indicates that reliability or visibility should take priority over optimization. These bands are working guidelines, not universal standards. Set targets around your application, change frequency, risk, and CI provider.
| Metric | What to measure | Warning sign |
|---|---|---|
| Queue time | Time from workflow submission to runner start | Developers wait for capacity before tests begin |
| Execution time | Time from runner start to test completion | Test duration grows faster than the suite |
| Pass rate | First-attempt successful workflow percentage | Green status depends on reruns |
| Retry rate | Runs or tests retried after an initial failure | Retries are used as a substitute for diagnosis |
| Coverage | Relevant code paths and test layers exercised | Large areas rely only on slow end-to-end tests |
| Artifact retention | Useful logs, reports, traces, and videos retained | Failures cannot be investigated after the job ends |
| Parallelism | Time saved per additional worker | Workers sit idle or compete for shared resources |
| Compute usage | Runner minutes or equivalent resource consumption | Cost rises without faster or safer feedback |
How to estimate pipeline health
Start with a defined observation window, such as the last 20–30 pull-request runs or the previous four weeks. Avoid judging the pipeline from one unusually large change. Export workflow timestamps, job durations, test results, retries, worker counts, and artifact sizes from your CI system or test reporting tool.
Calculate the following measures using the same population of runs where possible:
- Average queue time = total time waiting for a runner ÷ number of runs. Also record the median or a high percentile so one overloaded period does not hide the normal experience.
- Average execution time = total runner time ÷ number of completed runs. Separate setup, build, unit, API, browser, and teardown stages when possible.
- First-attempt pass rate = runs passing without a retry ÷ total runs × 100.
- Retry rate = retried runs or tests ÷ total runs or tests × 100. Pick one definition and keep it stable between reviews.
- Cost estimate = billable runner units × provider rate, or internal runner hours × estimated hourly infrastructure cost. If the provider uses a different billing unit, use that unit rather than converting it into an assumed price.
- Cost per useful result = estimated pipeline cost ÷ number of first-attempt, actionable results. This helps distinguish productive parallelism from duplicated work.
For test coverage, do not rely on one percentage alone. Record the proportion of critical user journeys, changed code, supported browsers, API contracts, and risk-sensitive integrations covered by automated checks. A high statement or line coverage number does not automatically prove that the deployment path is protected.
Next, score each metric. Add a short note explaining the score, the data source, and whether it is a median, average, or percentage. The note matters because a number without its definition cannot be compared reliably next month.
Inputs and assumptions
A useful audit separates observed data from assumptions. Capture these inputs before making changes:
- Run volume: pull-request, merge, scheduled, release, and rerun counts.
- Workflow shape: jobs, dependencies, sequential stages, matrix dimensions, and test shards.
- Runner inputs: operating system, machine size, worker count, startup time, and whether runners are shared or dedicated.
- Test composition: unit, API, integration, browser, visual, and smoke checks, including their typical durations.
- Reliability data: first-attempt failures, known flaky tests, infrastructure failures, and legitimate product failures.
- Retention needs: which reports, traces, screenshots, videos, and logs are needed for triage and compliance.
- Financial inputs: the CI provider’s current billing unit, internal infrastructure estimate, or budget allocation.
Do not compare runner minutes directly across providers or machine types without checking how each system measures usage. Pricing, included capacity, concurrency limits, caching behavior, and billing rules can change. Store the source and date of each financial input in the audit worksheet.
Keep optimization constraints explicit. For example, reducing artifact retention may lower storage use but make failures harder to diagnose. Increasing parallelism may shorten elapsed time while increasing compute consumption or causing test data collisions. A healthy decision improves the agreed outcome without silently damaging another one.
Worked examples
Example 1: Finding the main delay
Assume a team reviews 100 pull-request runs. The average queue time is 6 minutes and average execution time is 18 minutes, so the average end-to-end wait is 24 minutes. If a capacity review shows that the queue accounts for one quarter of the wait while the browser test job accounts for most execution time, the team has two separate problems: runner availability and test duration.
Adding workers may improve queue time, but it will not fix a browser job that performs unnecessary setup or repeats the same environment preparation for every shard. First measure whether a faster cache, better fixture reuse, selective test tags, or more balanced sharding reduces execution time. Then assess whether additional capacity is still justified.
Example 2: Estimating the effect of parallelism
Suppose one test job takes 40 runner-minutes when executed on one worker. A two-way split might reduce elapsed time, but it will not necessarily reduce total runner-minutes: setup, browser startup, uneven test distribution, and shared database contention can add overhead.
Use two calculations:
- Elapsed-time improvement = old wall-clock duration − new wall-clock duration.
- Resource change = new total runner-minutes − old total runner-minutes.
Adopt the change only after checking both results against the team’s priority. If pull-request feedback is the constraint, a modest resource increase may be reasonable. If cost is the constraint, improve test selection or shard balance before adding workers. For practical shard design, see the Parallel Test Sharding Guide.
Example 3: Separating failure from flakiness
Imagine 200 runs with 180 first-attempt passes, 12 legitimate product failures, and 8 failures later cleared by retry. The first-attempt pass rate is 90%. The retry rate is 4% if measured by runs. Those figures tell different stories: product failures require engineering attention, while retry-cleared failures require investigation of test or infrastructure reliability.
Do not improve the dashboard by increasing retries until the pass rate looks better. Track retry-cleared failures separately, preserve their artifacts, and identify the tests responsible. The Flaky Test Troubleshooting Guide provides a focused process for this work.
When to recalculate
Run a lightweight review monthly and a deeper audit after a major test-suite expansion, runner change, workflow redesign, or sustained increase in build duration. Recalculate sooner when developers report delayed feedback, retries become routine, a new browser or operating system is added, or CI usage rises without a corresponding increase in delivery value.
At each review, compare the current score with the previous one and inspect trends rather than isolated values. Record one owner and one next action for every metric scoring 0. Prioritize in this order:
- Restore trustworthy feedback by addressing systemic failures and high-impact flakiness.
- Reduce queue and execution time for the workflows developers use most often.
- Improve coverage of critical paths and changed code.
- Optimize parallelism, caching, artifacts, and runner capacity against measured usage.
Refresh provider limits, pricing inputs, caching options, and concurrency assumptions at least every six months or after a major platform change. Keep the worksheet, formulas, and metric definitions in version control so the next audit can reproduce the result. A pipeline health checklist is valuable only when it leads to a small, visible improvement before the next review.