Skip to content
Hire me
← All writing

My release checklist starts with the rollback

Before a deploy, I decide how to check the release and what to do if that check fails.

Before I deploy a small web application, I write down the release I’m about to install and the version it will replace. I also note any database or queue changes. That gives me the information I need if the first sign of trouble is an error in a workflow I cannot reproduce locally.

Check whether the old version can still run

If the release changes a database table, I ask what the previous code would see after the migration. Adding an optional column is usually easier to roll back from than removing one that old code still reads. A deploy can also leave old jobs in the queue, so I check whether the new workers can read those payloads.

When a change makes rollback unsafe, I write down the recovery procedure before deploying. That can mean a forward fix or restoring data from a backup, depending on what the migration did and which writes have happened since.

Pick one real workflow to verify

I choose the smallest workflow that exercises what changed. For a change to uploads, I’d upload a disposable file, check that the expected record appears, and open the resulting file through the application. If a worker processes it, I’d confirm that the job completed.

Then I check errors and failed jobs over the same time window. An HTTP success on the first request tells me little about the steps that happen later.

Keep the recovery steps close

My checklist ends with the command or control I would use to switch back, the data changes I cannot undo that way, and the checks I’d repeat after recovery. I also leave the previous release available until the new one has passed those checks. That saves time when the decision has to be made under pressure.

Discussion

No comments yet.

Leave a comment

Comments are reviewed before they appear.

Maximum 5000 characters

Your name and comment are public. Your email address stays private.