If the answer is one person’s name, and when that person is on vacation, it is not released, this article is for you.
Manual deployments are one of those habits that seem free. They've been working for years, "we've always done this." The bill still arrives, only that doesn't appear in any invoice.
The hidden cost of manual releases
A manual release is a sequence of steps performed by a person: copying files, launching commands, updating the database, checking that everything responds.
Costs are in three forms.
Time. An hour per release, multiplied by a year's releases, multiplied by the people involved, and that time is almost always one of the most experienced developers.
Risk. A skipped step, a command launched on the wrong environment. It also happens to the best, especially on Friday night.
Dependence. The procedure lives in the head of one or two people. If you get sick, change work or go on holiday, the company does not release.
The changes accumulate, each release becomes larger, and a big release is more risky. It is a circle that tightens itself.
A picture I've seen several times
A development team with many requests for release and still manual processes. Too many manual steps in each deploy. Releases that depended on a few experienced people, the only ones to know the right sequence.
The process was born when the releases were one a month and had never been reconsidered.
What is a CI/CD pipeline, without jargon
A CI/CD pipeline is a conveyor belt for the code. The developer delivers a change, and from there on a machine always performs the same steps, in the same order:
- Building the application.
- Execute the tests automatic.
- Check that the code respects the standards decided by the team.
- Publication the new version, first in a test environment and then in production.
If a step fails, the tape stops and the change does not go on.
CI is for Continuous Integration: check every change as soon as it is delivered.CD is for Continuous Delivery: always have a ready version to release.
How to introduce it without stopping the job
The most common mistake is to want to automate everything at once. The team stops delivering for a month and the pipeline is already hated.
Write the current procedure
Before automating, write down every step of today's release. Often it is the first time that happens. This document alone reduces dependence on the few experienced people.
Automate a step at a time
Start from the most boring one or the most often wrong one. Each automated step is an immediate benefit, even if the rest is still manual.
Add equal controls for all
Automatic tests and quality verifications that are valid for every change, of anyone. You don't need a thousand tests from the first day: you just need those on the functions that, if you break, stop the company.
Simplify, then document
Automating a twisted process produces a twisted and automatic process. In case I followed, the release was first simplified and then documented: fewer steps, described so that anyone in the team could follow them.
What changes after
The results, in that team, were those that a well-made pipeline almost always brings.
| First | Afterwards |
|---|---|
| Many manual steps to each deploy | Pipeline CI/CD with standard controls |
| Release dependent on a few people | Simplified and documented process |
| Release lenses and different each time | Release faster and repeatable |
| Voltage at every release | Less operating risk and less stress |
The last line is not a detail. A team that does not fear the releases works better, and who was the only one who was able to release returns to do the job for which he was hired.
Most common objections
"We don't have time to do this." The time you are already spending it, one release at a time. The pipeline returns it.
"We don't have automatic tests." A pipeline that builds and publishes the application in the same way is already a step forward. The tests are added later, starting from the most delicate points.
"Our system is too special." Every system is, almost never at the point that you can't automate at least one part of the release.
"We prefer to check by hand." Human control remains, at the point where it serves. A pipeline can stop before production and wait for a person's approval. The difference is that the person decides whether to release, instead of running twenty commands hoping not to miss one.
How to figure out if it's working
The first: how many people in the team are able to make a release. If two become all, the dependency is gone. The second: how often you release. If the frequency goes up without increasing the problems in production, the pipeline is doing its job.
From where to
At the next release, ask who does it to write down every step and how hard it lasts. You will have written procedure, an estimate of cost and the list of candidates for automation.
If you want an external evaluation, in shardana.ai, from Cabras (Oristano), we start from a technical audit: we analyze code and process of release and tell you what to automate first and with what commitment.