For many (perhaps most) people visiting this site, this may be obvious. If you're new to continuous delivery and want to know what all the hubbub is about, this post is for you.
At my last job we did a pretty decent job at continuous integration. When a developer would make a change to the codebase, a build would run automatically and we would know if it had passed all of the unit tests. The problem was simple; the organization was chock full of functional silos. The automation didn't get beyond the development team.
The process (which may look familiar to you) was something like this…
- Development team worked on code using their own automation until something was "ready" for QA.
- The Development team would upload a file onto a file share where the QA team could download it.
- The QA team would download the file to install on their systems, and sometimes they would even get the right file.
- The file would fail to install about half the time.
- Someone from the development team would go over to QA, make some changes on their box and the file would install.
- The QA team would finish, put the file on a different fileshare and then IT Operations would download it.
- IT Operations wouldn't know about the local change made in QA, so their deployment would fail.
- IT Operations would say lots of unkind things about Dev, Dev would call IT Ops all sorts of bad names.
repeat.
Enter the DevOps movement and continuous delivery.
Now everything should be automated, all the way from first code commit to production deployment.
Application Changes…
- Someone commits code and causes CD system to automatically build and test the change.
- If those tests pass, the CD system automatically promotes the code and runs the automated functional tests.
- The QA department can look at any "green" build and deploy it to their environment automatically.
- The IT Operations department can look at any "green" QA tested build and deploy it to their environment automatically.
Infrastructure Changes…
- Someone commits code and causes CD system to automatically build and test the change.
- If those tests pass, the CD system automatically promotes the code and runs the automated functional tests.
- The QA department can look at any "green" build and deploy it to their environment automatically.
- The IT Operations department can look at any "green" QA tested build and deploy it to their environment automatically.
Database Changes…
- Someone commits code and causes CD system to automatically build and test the change.
- If those tests pass, the CD system automatically promotes the code and runs the automated functional tests.
- The QA department can look at any "green" build and deploy it to their environment automatically.
- The IT Operations department can look at any "green" QA tested build and deploy it to their environment automatically.
(you may notice a pattern here)
This is all completely oversimplified of course, but the core idea here is that everything is tested in every environment all the time. If we need to launch a new feature we can get it into our customers hands when it's the right time for the business, not when the deployment was finally figured out.
Releases become a non-event, maybe even boring, and that's a good thing.