CI/CD
These practices help teams merge small code changes often and use automated builds and tests to keep software ready to release. Updates can go live after someone approves them or automatically once required checks pass.
Also known as: непрерывная интеграция, continuous delivery
What CI/CD means
Continuous integration (CI) is the practice of merging small changes into a shared codebase frequently. Automated builds and tests tell developers quickly when a change breaks a build or conflicts with another change. A pull request can have a full suite of green checks, but leaving it on a separate branch for weeks still delays integration with everyone else's work.
CD can mean continuous delivery or continuous deployment. With continuous delivery, the team keeps validated changes ready to release on demand. A person may decide when to deploy, but doesn't have to assemble the release by hand. With continuous deployment, every change that clears the required checks goes to production automatically, without a separate human approval for that deployment.
What happens in a pipeline
A pipeline is the set of jobs that takes a change from source code to a tested build and, in many teams, to production. A pull request might trigger linting and unit tests for fast feedback. After a merge, the pipeline builds a versioned artifact, such as a container image or an installable package, and stores it in a registry. It can then deploy that artifact to staging, a pre-production environment, for checks that need a running application. If a required check fails, the pipeline stops that version from moving forward. Tools such as GitHub Actions and GitLab CI run the jobs; the team decides what those jobs must prove before letting a change through.
Example: shipping a checkout fix
A developer fixes a rounding error in a checkout service. Unit tests verify the calculation before the change is merged. After the merge, the pipeline builds a container image and deploys it to staging, where an integration test runs a checkout against a test payment provider. If the tests pass, the on-call engineer can approve deployment of that exact image to production. That's continuous delivery. If passing the required checks triggers production deployment without that approval, it's continuous deployment.
Where teams use it and what can go wrong
A web team may deploy to production several times a day. A mobile team may automate building, signing, and submitting an app while the store's review process still determines when users can get it. In either case, rebuilding for the final environment undermines earlier tests: changed dependencies or build settings can produce a different artifact. Promote the tested build instead, and supply environment-specific settings at deployment or runtime where the application supports it.
How it comes up in interviews
Expect to trace a commit through the pipeline and explain which failures block a merge, which block a deployment, and which are only visible after rollout. For a production failure, name a signal you'd watch, such as checkout error rate, and explain how you'd recover. Rolling back an image may be straightforward; rolling it back after an incompatible database migration may not be.