TExcelTAD
Home › DevOps Engineering: Overview & Roadmap › Mini Project: Map and Measure a Release Process

Mini Project: Map and Measure a Release Process

In this project you take a real team's release process, map every step from "code finished" to "running in production", measure where the time goes, and design the pipeline that replaces it. It uses no cluster and no cloud account: the tools are a notebook, the team's existing data and the models from this course. The result is a one-page report you could hand to a team lead, and the first item in your portfolio.

The plan

Step What you do From lesson
1. Pick a process your team's, a past employer's, an open-source project's (its CI history and release notes are public), or the example below
2. Map the value stream list each stage with its hands-on work time, its waiting time and how often it passes first time The Three Ways
3. Measure delivery compute the four keys from a few weeks of deployments DORA Metrics
4. Design the pipeline map each manual stage onto an automated pipeline stage and the course that teaches it CI vs Continuous Delivery vs Deployment
5. Model the result re-run the value stream model with the new stages and compare
6. Write it up the one-page report at the end of this lesson Field Notes

Step 1–2: map the value stream

Interview the people involved, or reconstruct it from timestamps: pull request opened and approved, CI started and finished, ticket moved to "QA", deployment logged. For each stage write down:

  • work: hands-on time someone actually spends on it;
  • wait: time the change sits before the stage starts;
  • %C&A (percent complete and accurate): how often the stage's output is good enough that the next stage does not send it back.

The example team below ships a web service once a week. Changes go through review, a CI build, a manual QA pass on a shared staging server, a weekly change advisory board (CAB) meeting, and a manual deployment by the one engineer who knows how. The model computes the lead time, the flow efficiency (work as a share of lead time) and the share of changes that pass every stage first time (the product of the %C&A values). Its second half models the pipeline proposed in step 4:

python · try it yourself
# stage, process hours (hands-on work), wait hours (before the stage starts), % complete & accurate
before = [
    ("code review",            1.0, 26.0, 85),
    ("CI build + unit tests",  0.5,  2.0, 90),
    ("manual QA on staging",   6.0, 40.0, 80),
    ("change advisory board",  0.5, 70.0, 95),
    ("manual deploy by Sam",   2.0, 18.0, 90),
    ("smoke check",            0.5,  0.5, 100),
]

def report(name, stages):
    print(f"--- {name}")
    print(f"{'stage':<26}{'work h':>7}{'wait h':>8}{'%C&A':>6}")
    for stage, work, wait, ca in stages:
        print(f"{stage:<26}{work:>7.1f}{wait:>8.1f}{ca:>6}")
    work = sum(s[1] for s in stages)
    lead = work + sum(s[2] for s in stages)
    first_pass = 1.0
    for s in stages:
        first_pass *= s[3] / 100
    worst = max(stages, key=lambda s: s[2])
    print(f"lead time {lead:.1f} h ({lead / 24:.1f} days), hands-on work {work:.1f} h, "
          f"flow efficiency {work / lead:.0%}")
    print(f"changes that pass every stage first time: {first_pass:.0%}; longest wait: {worst[0]}")
    return lead

lead_before = report("before", before)
after = [
    ("code review (4 h goal)", 1.0,  4.0, 90),
    ("CI: build, tests, scans", 0.4, 0.1, 95),
    ("deploy to staging",      0.1,  0.0, 98),
    ("automated e2e tests",    0.3,  0.0, 95),
    ("canary + auto promote",  0.5,  0.2, 98),
]
lead_after = report("after", after)
print(f"\nlead time: {lead_before:.1f} h -> {lead_after:.1f} h ({lead_before / lead_after:.0f}x faster)")
--- before
stage                      work h  wait h  %C&A
code review                   1.0    26.0    85
CI build + unit tests         0.5     2.0    90
manual QA on staging          6.0    40.0    80
change advisory board         0.5    70.0    95
manual deploy by Sam          2.0    18.0    90
smoke check                   0.5     0.5   100
lead time 167.0 h (7.0 days), hands-on work 10.5 h, flow efficiency 6%
changes that pass every stage first time: 52%; longest wait: change advisory board
--- after
stage                      work h  wait h  %C&A
code review (4 h goal)        1.0     4.0    90
CI: build, tests, scans       0.4     0.1    95
deploy to staging             0.1     0.0    98
automated e2e tests           0.3     0.0    95
canary + auto promote         0.5     0.2    98
lead time 6.6 h (0.3 days), hands-on work 2.3 h, flow efficiency 35%
changes that pass every stage first time: 78%; longest wait: code review (4 h goal)

lead time: 167.0 h -> 6.6 h (25x faster)

The first table is typical of a manual process: 6% flow efficiency means a change spends 94% of its week waiting. Making QA testers or Sam work faster would barely help. The waits are the problem: the weekly CAB meeting, the shared staging server, the review queue. Only half the changes get through without being sent back at least once, and each send-back starts part of the wait again.

Step 3: measure delivery

Collect at least four weeks of deployments: for each one, the time of the oldest commit in it, the deploy time, whether it needed immediate intervention, how long recovery took, and whether it was an unplanned hotfix. Put them into the log format of DORA Metrics from a Deploy Log, run that example with your data and keep the table. If you have no real data, use the example team: one deployment a week, lead time around a week, and assume one deployment in four needs a hotfix (large batches fail more often).

Step 4: design the pipeline

Map every stage of the current process onto what replaces it, and note where you will learn to build it:

Current stage Replaced by Built in
code review with a long queue small pull requests, a review-time goal, CODEOWNERS Git, team agreement
CI build + unit tests the same, plus lint, SAST, secret detection and an image scan as gates CI/CD Pipelines
manual QA on a shared staging server automated end-to-end tests against a fresh environment per change CI/CD Pipelines, Docker Compose
weekly change advisory board the pipeline's checks and audit trail, plus peer review; an environment approval only where rules require one Environments, Approvals & Concurrency
manual deploy by one engineer an automated rollout with a canary step and automatic rollback on errors CI/CD Pipelines, GitOps
smoke check by hand dashboards and alerts on error rate and latency Observability

The second half of the model above is this design: lead time drops from about a week to under a day, flow efficiency rises from 6% to 35%, and more changes pass first time because automated checks run the same way every time. The model is optimistic on purpose. Real numbers will be worse at first, and that is fine: the report should say which assumptions the estimate rests on (for example "reviews within 4 hours").

Note: Removing a CAB is an organisational change, not a technical one. Present it as replacing a meeting with stronger evidence: every change reviewed, tested, scanned and recorded, with a rollback that takes minutes. DORA's research found that heavyweight external approval processes were associated with worse delivery performance and no better stability.

Step 5: try your own numbers

Change the stage list to your own process and run it again. Then experiment:

  • What happens if only the CAB wait goes to zero? (Lead time drops by 70 hours; the largest remaining part is the manual QA stage.)
  • What if the review queue stays at 26 hours but everything else is automated?
  • Can improving the manual QA stage alone lift the first-pass rate to 75%? Work out the product of the other stages' %C&A first.

Step 6: the report

Write one page, in Markdown in your lab-notebook repository:

markdown
# Release process review: <team / project>

## Today
- Value stream: <stage table>, lead time <x> days, flow efficiency <y>%
- DORA (last <n> weeks): deploys/week <a>, lead time (median) <b>, change fail rate <c>%, recovery (median) <d>
- Biggest waits: <stage>, <stage>

## Proposal
- <three to five changes, each linked to the wait it removes>
- Target pipeline: <diagram or stage list>

## Expected effect and assumptions
- Lead time <x> -> <x'> if <assumption>; first-pass rate <p> -> <p'>

## First step (next two weeks)
- <the one change to make first, and how we will measure it>

Checklist before you call it done:

  • every stage has work, wait and %C&A, with the source of each number
  • the four DORA keys are computed from data, not guessed
  • every proposed change names the wait or failure it removes
  • the first step is small enough to finish in two weeks
  • the report says what you will measure to know it worked

Test yourself

A process has 10.5 hours of hands-on work and a lead time of 167 hours. What is its flow efficiency?

  1. About 6%
  2. About 16%
  3. About 60%
  4. About 94%

In a manual release process with 6% flow efficiency, where is the biggest improvement usually found?

  1. Making each person work faster
  2. Removing or shortening the waits between stages
  3. Buying faster servers
  4. Adding more approval steps

Why does the model multiply the %C&A values of all stages?

  1. To get the average quality
  2. Because a change passes first time only if it passes every stage first time
  3. Because the values are percentages
  4. It is a convention with no meaning