Client engagement · Case study
From a release every 2 weeks to several a day at Flexio
Nine months of pairing with the team on TDD and CI/CD: change failure rate from 50% to 10% and recovery from days to 10 minutes.
- 2 weeks → dailyrelease frequency
- 50% → 10%change failure rate
- 1–2 days → 10 minmean time to recovery
- 3 → 9 monthsengagement extended
The problem
Flexio released once every 2 weeks, half of those releases caused a failure in production and recovering from one took 1 to 2 days. Developers committed about twice a week and worked in silos across front end, back end and infrastructure.
What I built
- Daily pairing sessions with the developers on test-driven development, in their codebase and on their backlog.
- A CI/CD pipeline that deploys on merge, with smoke tests after each deploy and automated rollback when they fail.
- Infrastructure managed as code with Terraform.
Decisions and tradeoffs
Coach inside the work, not in a classroom
I paired on real features instead of running a course. Progress on the backlog is slower in the first weeks, and that tradeoff was agreed with leadership up front. In return the habits stick because the team builds them on their own code.
Measure with the four DORA metrics
Deployment frequency, lead time, change failure rate and recovery time were tracked from the first week, so the engagement was judged on results and not on activity.
Automate rollback before speeding up
Smoke tests and automated rollbacks came before the push for more frequent releases. A team that can recover in 10 minutes can afford to release many times a day.
Results
- Releases went from 1 every 2 weeks to multiple per day.
- Lead time from integrated code to users went from 2 weeks to minutes.
- Change failure rate went from 50% of releases to 10%.
- Mean time to recovery went from 1–2 days to 10 minutes.
- Commit frequency went from 2 per week to multiple per day, and the planned 3-month engagement was extended to 9 months.