CI/CD
CI/CD (continuous integration and continuous delivery) is a practice where every code change automatically goes through a chain of steps from commit to release: build, automated tests, and deployment to a stand or to production. The chain is called a pipeline. Like a factory line, each change goes through the same steps, and a defect stops at the first step that fails. CI means developers often merge small changes into a shared branch and each one is checked; CD means a ready version can be released at any moment, and with “continuous deployment” it is released automatically.
The pipeline has two halves. CI checks every code change, CD delivers the checked version to users. A failing step stops the change: it goes no further.
CI (continuous integration) means developers often merge small changes into the shared branch and check each one. Integration here is the merging of different people’s work into one shared version of the code, and “continuous” means the merges happen so often that people’s work hardly drifts apart. Every merge is built and tested automatically, so a conflict or an error is found minutes after the change, while it is small, not weeks before a release. Conditions: changes are small, the shared branch always stays working, build and tests take minutes, and a failed build is fixed at once.
CD (continuous delivery) means that every version that passed the CI checks is delivered automatically through the stands (test, pre-prod) to the state “ready to release”: it can be released to production at any moment by one decision of a person. The continuous deployment variant removes that decision too: a version that passes all the checks is released to production by itself. Delivery here means the whole path of a version from the shared branch to production, not only the last step of the release.
Frequently asked questions
What is CI/CD?
A practice where every code change automatically goes through build, tests and deployment along the same chain of steps, a pipeline.How is CI different from CD?
CI builds and checks changes that are often merged into a shared branch. CD carries the checked version to release; if it goes to production without a person, that is continuous deployment.What does a pipeline do from commit to release?
It builds the program, runs automated tests, deploys it to a stand and, if everything passed, to production.How does CI/CD relate to delivery speed?
Automated steps shorten change lead time and allow more frequent releases, so those delivery metrics improve largely thanks to the pipeline.Where it appears · 1
- Quint vs TLA+ · Specs and context