← Back to Blog
Story / Founder

How I Diagram a CI/CD Pipeline So Every Failure Has a Place

How I Diagram a CI/CD Pipeline So Every Failure Has a Place

A delivery path that only lives in someone's head is hard to review and harder to debug. That is why I started drawing a CI/CD pipeline diagram so every failure has a place: stages in order, with a labelled spot beside each one for the failure that changes what happens next.

Here is the working habit itself: which stages belong on the page, where failure places sit, and how the picture is drawn and shared. ByteDiagram appears later and is our product, made by us. Because I founded it, read the tool notes as a disclosed founder's take.

Why a pipeline should not live only in someone's head

Without a picture, the path from a commit to a running service is easy to talk about in vague steps and hard to question. Build, test, deploy and notify each hide different ways of going wrong, and those ways are easy to skip in a hallway conversation.

Google's Site Reliability Engineering book describes release engineering as the work of building and delivering software in a way that is repeatable rather than a one-off. It argues that changes to any part of that path should be intentional, and that operators need to know how binaries and configurations were produced. A labelled pipeline page is a small, personal version of that idea: it makes the path and its failure places visible before the next change lands.

Once an image is built, the cluster side of the story is a separate picture. For that footprint, start with the deploy path that starts once CI has built an image. This post stays on the pipeline itself, not on the cluster components that receive the rollout.

What I put on the page

A typical stage list, with the failure place beside each one:

  • Build: the build breaks or produces an artifact nobody can reproduce. Failure place: stop and report to the author of the change.
  • Test: a test fails or flakes. Failure place: block the merge and show which suite failed.
  • Deploy: the release does not roll out or fails its health checks. Failure place: roll back to the last good version.
  • Notify: the right people never hear the result. Failure place: a named owner or channel for every red stage.

A useful CI/CD pipeline diagram is a strip of stages, not a catalogue of every job the runner knows. In my view, each stage earns a box when it can fail in a way that changes the next action, and that failure needs a labelled place of its own under or beside the stage.

As general guidance when you diagram CI/CD stages, keep the happy path as a single solid line through the page, and give every pipeline failure you care about its own outline so it cannot be mistaken for a normal step. Support words such as build, test, deploy, rollback and notify belong on the page only when they name a real stage or a real next action.

An example CI/CD pipeline diagram drawn for this post, with four dashed stages build, test, deploy and notify, each with a labelled failure place underneath (build breaks, tests fail, rollout stuck, alert missed), a solid happy-path arrow through the stages, and a dashed loop from deploy back to build labelled retry after failure

Above is a sample pipeline drawn for this article rather than a live delivery path of mine. Four dashed stages sit left to right: build with a compile box and a "build breaks" failure place, test with unit and integration boxes and a "tests fail" place, deploy to a cluster with a "rollout stuck" place, and notify with an alert box and an "alert missed" place. A solid happy-path arrow crosses the stages, and a dashed loop from deploy back to build is labelled "retry after failure".

Why every failure needs a labelled place

CI/CD pipeline failure modes are easier to discuss when each one already has a box. Google's canarying chapter in the SRE workbook defines a canary as a partial, time-limited deployment of a change, evaluated before the rest of the service follows. The same chapter lists reproducible builds, automated builds and automated tests among the principles that make safe releases possible. A diagram does not replace those practices; it gives the team a shared place to point when one of them fails.

Release engineering at that scale also stresses that frequent releases leave fewer changes between versions, which makes testing and troubleshooting easier. On a one-page pipeline map, that idea shows up as short stages with clear failure places, rather than a long undocumented stretch from commit to production.

A labelled failure place also helps when the question is whether to roll forward or roll back. The page shows which stage broke and which stages already succeeded, so the next action is a choice about that stage rather than a guess about the whole path.

When a notify stage exists, treat a missed alert as its own failure place rather than folding it into deploy. An operator who only sees "deploy failed" will look in the wrong log. Separating the notify box keeps CI/CD pipeline failure modes honest about which channel actually broke.

How I draw and share it

A still image is enough for most pipelines: a PNG or SVG kept next to the pipeline configuration, or linked from the repository README, is easy to find when a stage goes red.

Readers who open ByteDiagram for the same kind of page will find these controls. Built-in icons sit in the Icons panel, AWS Services among them. The "Section" shape whose label is "Dashed zone for grouping steps" can fence a stage group such as build, test or deploy. Templates supply an initial layout; "Auto-arrange" straightens boxes after edits. Under Shapes, a Kubernetes tile appears in the architecture list and can mark a deploy stage that lands on a cluster.

When the stages are labelled, its Export menu includes PNG, SVG and Animated GIF (checked 28 Oct 2026). A still image is usually enough for a pipeline review; animation helps when the point is showing each stage in order without rewriting the layout.

Some platforms render a graph straight from a live workflow definition. That category sits apart and was not tested by us. A page drawn by hand records the stages and failure places the team agrees to care about, independent of any one runner.

To try the habit yourself, sketch your pipeline stages and failure places in the guest canvas; no sign-in is required to edit.

What this diagram is not

In my view, this page is not a runbook, not a tool picker and not a substitute for logs. It will not tell you which line failed inside a job, and it will not choose Jenkins, GitHub Actions or GitLab for you. Its job is narrower: keep the stages honest and give every failure you care about a labelled place.

When the deploy stage includes a shared cluster and a choice between rolling forward or rolling back, a separate post covers deploy and rollback choices drawn next to the shared cluster. Keep that picture beside the pipeline map rather than merging the two.

Keeping the pipeline map and the cluster map apart also stops a review from mixing two different questions. One page asks whether the delivery stages are clear; the other asks where a release lands once an image exists. Mixing them usually hides a failure place on one of the two paths.

FAQ

What should a CI/CD pipeline diagram include?

In my view, it should show each stage in the order they run, and a labelled place for the failures that change what you do next at that stage. It does not need every possible error. The goal is a page you can point at in a review and ask a clear question.

Should every failure mode appear on the diagram?

Only the ones that change the next action. Noise, such as a flaky retry that always recovers on its own, can stay off the page. The diagram earns its keep when a labelled failure place tells someone what to check next.

Do I need to animate a CI/CD pipeline diagram?

A still page is enough for most reviews. Timeline controls and an Animated GIF help when the order of stages itself is the point you need to show. For many teams, a labelled still image remains the clearer everyday choice.

Sources

Links below were checked on 28 October 2026.

Label the next failure before it lands

Pick the pipeline your team runs most often. Draw the stages in order, add a failure place under each one you actually care about, and look at the page once in the next review. The question to ask is simple: if this stage breaks, does everyone agree where to look?

Give every failure a place on the page

ByteDiagram is our own tool. Fence each stage with a dashed section, label the failure place beneath it, and export a still image to keep with the pipeline review.

Visit ByteDiagram