{"id":1511,"date":"2026-11-19T03:40:00","date_gmt":"2026-11-19T03:40:00","guid":{"rendered":"https:\/\/cotocus.in\/blog\/?p=1511"},"modified":"2026-11-19T03:40:00","modified_gmt":"2026-11-19T03:40:00","slug":"diagnose-release-pipeline-with-a-sketch","status":"publish","type":"post","link":"https:\/\/cotocus.in\/blog\/diagnose-release-pipeline-with-a-sketch\/","title":{"rendered":"Diagnosing a Slow Release Pipeline With a Pencil Sketch"},"content":{"rendered":"<p>The symptom is familiar to many delivery teams: releases take longer every quarter, builds fail for reasons nobody can reproduce, and a simple change needs a small ritual of reruns before it goes out. Everyone has a theory, and none of the theories agree. Before anybody touches the pipeline configuration, I recommend a much humbler remedy: draw the release pipeline on paper, as it exists today, in boxes and arrows. This article frames the problem, shows how the sketch diagnoses it and describes the fix that tends to follow.<\/p>\n<h2>The problem: a pipeline nobody has seen whole<\/h2>\n<p>Release pipelines grow by accretion. A step is added after an incident, another after an audit comment, a third because a new tool was adopted. Each addition made local sense. Together they form a structure that no individual holds in their head. Configuration files describe it line by line, but a long file is the worst possible way to understand a flow, because it hides shape.<\/p>\n<p>The consequences are predictable: duplicated checks that run twice, slow steps placed before fast ones, tests that depend on an environment another job is still changing, and gaps where something important is assumed to happen &#8220;somewhere earlier&#8221;. None of these shows up in a config file as an error. They show up on a drawing.<\/p>\n<h2>The diagnostic: sketch what actually happens<\/h2>\n<p>Gather two or three people who touch the pipeline, one sheet of paper and a pencil. Ask them to draw what happens from the moment a developer finishes a change to the moment it is live. Insist on describing reality, not the intended design. You will usually get several different drawings, and the differences are the first finding.<\/p>\n<ol>\n<li><strong>Draw the stages left to right.<\/strong> Commit, build, test, package, deploy, verify. Add anything the team really does that is not in the official list, such as a manual approval or a Slack message that someone watches for.<\/li>\n<li><strong>Write the duration under each box.<\/strong> Use honest estimates. Rough numbers are enough to show where the minutes go.<\/li>\n<li><strong>Mark every point where a person waits.<\/strong> A small clock icon works. Human waiting is usually the biggest hidden cost.<\/li>\n<li><strong>Mark every point where a check could stop the release.<\/strong> Circle the ones that have never failed in living memory; they may be dead weight, or they may be guarding something rare and important.<\/li>\n<li><strong>Draw the failure arrows.<\/strong> What happens when each stage goes red? Who is told, and where does the work go next?<\/li>\n<\/ol>\n<h2>What the drawing usually shows<\/h2>\n<p>In teams that run this exercise, a handful of patterns recur. The slowest, most flaky stage tends to sit early, blocking everything behind it. Two stages turn out to check the same thing. A stage that everyone believes is automatic is in fact a manual step with a reminder. Security-related checks, when present, are bolted on at the very end, so problems found there are the most costly to fix. If that last pattern rings true, the reasoning in <a href=\"https:\/\/cotocus.in\/blog\/mastering-pipeline-security-why-early-safety-checks-matter-in-devops\/\">this argument for placing safety checks early in a delivery pipeline<\/a> explains why the drawing should be reshuffled so that the quick, informative checks come first.<\/p>\n<h2>The solution: redraw, then change one thing<\/h2>\n<p>With the real flow on the table, draw a second version showing the flow you would prefer. This is the cheap bit. You can try reordering stages, merging duplicates or splitting a slow job in two without touching a single configuration file. Compare the two drawings and note the smallest edit that would give the largest gain. Resist the temptation to fix everything.<\/p>\n<p>Typically the best first edit is one of these:<\/p>\n<ul>\n<li>Move the fastest informative check to the start so that bad changes fail in seconds.<\/li>\n<li>Remove one duplicated stage and record why it was safe to drop.<\/li>\n<li>Replace a human wait with an automatic notification.<\/li>\n<li>Add the missing verification step after deployment, so that &#8220;it is live&#8221; is confirmed rather than assumed.<\/li>\n<\/ul>\n<p>Make that one change in the real pipeline, observe it for a week, then return to the sketch for the next. This keeps risk small and gives the team visible evidence that each edit worked.<\/p>\n<h2>A short illustration<\/h2>\n<p>Consider a team whose release took most of an afternoon. Their first sketch showed six stages, which matched the documentation. Their second, drawn by asking each person what they really did, showed nine: a hand-run database check, a wait for a colleague to approve in chat, and a smoke test that someone started from a laptop. Tallying the durations on paper showed that the three hidden steps accounted for more than half the elapsed time, while the automated stages everyone had been tuning accounted for far less. The team stopped optimising build times and automated the approval notification and the smoke test instead. Nothing in the repository would have pointed them there, because none of those steps lived in the repository.<\/p>\n<p>The lesson generalises: effort follows whatever is visible, so make the whole pipeline visible first.<\/p>\n<h2>Why paper rather than a diagram tool?<\/h2>\n<p>The roughness has value. A diagram from a tool looks authoritative, and people hesitate to correct it. A pencil sketch invites argument. It also forces selection: on a page, you cannot draw forty tiny boxes, so you must decide what matters. That selection is the diagnosis. Teams moving toward more security-minded delivery can pair this exercise with a roadmap such as <a href=\"https:\/\/cotocus.in\/blog\/a-complete-devsecops-roadmap-for-developers-and-security-teams\/\">a staged route through DevSecOps for developers and security staff<\/a>, checking each stage of the route against the stages of their own drawing.<\/p>\n<p>It is worth agreeing, before the next incident, on how the sketch will be used when something does break. A failed release is a good moment to pull out the drawing and mark where the failure entered and where it could have been caught sooner. Over a few incidents the page becomes a map of lessons, and new arrivals can read it in minutes to grasp why the pipeline looks the way it does.<\/p>\n<h2>Pitfalls of the exercise<\/h2>\n<p>Three mistakes recur. First, drawing the official process rather than the real one; if the sketch looks suspiciously clean, ask who does the manual steps. Second, treating the drawing as a verdict on individuals. The aim is to understand a system, and blame ruins honesty. Third, letting the sketch gather dust. File it with the project, date it and revisit it after the next two or three changes.<\/p>\n<h2>A word on the equipment side<\/h2>\n<p>Facilitators sometimes run these workshops on shared tablets and conference-room screens, which means the odd display or pairing problem eats ten minutes. For quick checks on everyday devices, the independent <a href=\"https:\/\/osnivo.com\/\">Osnivo<\/a> reference, which splits its guidance into stages from choosing to maintaining a device and runs a community Q&amp;A, can help the room get moving again.<\/p>\n<h2>Closing the loop<\/h2>\n<p>The diagnosis is rarely mysterious once the pipeline is on paper. What looked like a pile of unrelated annoyances usually resolves into two or three structural issues, each fixable by a small and reversible edit. The sketch costs an hour of three people&#8217;s time. The slow, flaky releases it addresses cost far more, every week, in a manner that nobody had measured because nobody had seen the whole.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When releases get slow and flaky, a hand-drawn map of the real pipeline exposes hidden steps and points to the smallest fix worth making first.<\/p>\n","protected":false},"author":4,"featured_media":1512,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[168],"tags":[],"class_list":["post-1511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"_links":{"self":[{"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/posts\/1511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/comments?post=1511"}],"version-history":[{"count":1,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/posts\/1511\/revisions"}],"predecessor-version":[{"id":1607,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/posts\/1511\/revisions\/1607"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/media\/1512"}],"wp:attachment":[{"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/media?parent=1511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/categories?post=1511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/tags?post=1511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}