Skip to content
Launchr Space Journal

Engineering Analysis · Global

A deployment queue should know which releases it can skip

Test what happens when one release is running and two successors arrive. Check that a skipped deploy cannot skip a required step.

By Launchr Space ·

Imagine three commits merge while a deploy runs. The first adds a database field, the second moves a worker to the new field, and the third updates a screen. The workflow can finish with the newest revision installed, yet still have missed an operation that existed only in the skipped release. Deploying a newer snapshot is safe only when it contains everything needed to get from the running release to that snapshot.

GitHub Actions concurrency can restrict simultaneous runs. The default keeps only one pending run in a concurrency group; a newer pending run replaces the previous pending run. GitHub also documents opt-in queuing for workflows where runs need to wait and execute sequentially. Choose deliberately rather than reading the presence of a concurrency group as proof all releases will run.

List effects outside the deployment

Start by listing effects outside the application bundle. Is the workflow applying ordered migrations from a persistent ledger, sending customer communications, or handing work to a separate deployment service? Cumulative migrations can often be made safe from multiple source versions. A one-off communication tied to a workflow dispatch needs an explicit delivery decision. Also check whether an abandoned job can leave an external operation running while the next job starts.

Run a staging test

Try a three-release staging drill while the first deploy is deliberately held. Give each release an observable marker. After unblocking the first run, record what executed, what was skipped or queued, and whether the newest application works against the database and worker it actually got. If the order matters, check that order with observed receipts rather than relying on dispatch timestamps. Keep the outcome with the deployment documentation so the next change to the workflow preserves the reason for the queue.

Document the exact concurrency group and which events create runs in it. In a repository with multiple workflows, similar names can hide accidental overlap. Verify that a preview deployment cannot cancel a production operation just because both use the same group identifier.

Sources

Keep reading