Change freeze
A set window, such as the days around a big launch or a holiday, when no changes go to production: no deploys, no config or infrastructure changes, and often no feature flag flips (a deploy freeze blocks only the deploys). The deploy pipeline checks the window and blocks changes inside it, and only an urgent fix with a named approver gets an exception. A freeze doesn't make code safer, it only stops changes, so work piles up and the first deploys after it are bigger and riskier.
Deploy on Wednesday, before the freeze; deploy during the freeze and the pipeline blocks it; or ship an approved emergency fix, which needs a named approver.
Shipped: 0 · Blocked by the freeze: 0 · Exceptions: 0
A change freeze runs from Thursday 18:00 to Monday 09:00, for Friday's big launch. Production runs v2.3.
Say it in a prompt
Add a change freeze to our GitLab CI deploy pipeline from Thursday 18:00 to Monday 09:00 (Europe/Berlin) for Friday's launch, using a deploy freeze period: the deploy job fails with "Change freeze until Mon 09:00" whenever $CI_DEPLOY_FREEZE is set, and lock feature flag and config changes for the same window. Allow an urgent fix only through a separate manual emergency-deploy job: with GitLab Premium, put it on a protected environment that needs a deployment approval from the incident-leads group; on the free tier, make the job fail unless $GITLAB_USER_LOGIN is on the incident-leads list. Log the approver and the reason with the deploy. Ship the launch work by Wednesday so there is a day to watch it, and plan Monday's first deploys as small batches, not everything at once. Vague vs precise prompt
Vague prompt
don't let anyone deploy during the launch Typical resultPosts a message asking people not to deploy, or turns off the deploy job for everyone. Nothing in the pipeline checks the date, an urgent fix has no way through, nobody knows when the freeze ends, and on Monday everything that waited goes out at once.
Precise prompt
Add a deploy freeze from Thursday 18:00 to Monday 09:00 in the CI pipeline: the deploy job fails with the end time while the freeze is on, and feature flag and config changes are locked for the same window; an urgent fix ships only through a manual job approved by the incident-leads group, logged with the approver and the reason; ship the launch work by Wednesday and split Monday's deploys into small batches. Typical resultDeploys, flag flips and config changes inside the window are stopped at the pipeline with a clear message; an urgent fix can still ship with a named approver on record, and the launch work has been live since Wednesday. Monday's held-back changes go out in small steps instead of one big risky deploy.
Seen on
- GitLab docs, Deploy freeze: A maintainer sets a freeze window with a start and an end written as cron entries. During the window the pipeline gets a CI_DEPLOY_FREEZE variable, and deploy jobs can be set to not run while it is there.
- GitLab Handbook, Production Change Lock: Production changes stop during events, major holidays and other times when fewer engineers are around; automated deploys pause. The strictest lock blocks all code deploys and all feature flag toggles, and an exception needs a written reason and a named approval.
- UK Ministry of Justice, Technical Guidance: Code freezes: Warns that changes get rushed out before a freeze and that the batch shipped right after it is high risk, and recommends smaller, regular changes over freezes.
You might describe it as
- no deploys over the launch weekend
- lock production before the holidays
- block deploys in a set window unless someone approves
Not to be confused with
- Feature flag
A change freeze stops deploys, and often flag changes too, for a set window; a feature flag lets teams deploy code switched off right up to the freeze and turn it on later, when it is safe.