Merge queue and release
On a branch with a merge queue, Putnami tests the exact commit that becomes the head of the branch, lands it, and releases the set that test published: nothing is built again after the merge.
Status: available with hosted CI on a GitHub repository. A repository that keeps its own CI merges with its own rules, and the Release tab reads only the channels and environments Putnami hosts.
Put a pull request in the queue
Turn on auto-merge, with GitHub's Enable auto-merge button or:
gh pr merge --auto --squash <number>That is the only request: there is no label and no other command. A build started from an issue turns it on itself once its pull request is ready.
The pull request enters the queue once all of these hold, and you do not click again:
- It is open and ready for review, not a draft.
- Its head applies on the line ahead: no conflict with an entry in line or with the base branch.
- Its head has a green run whose Putnami Verdict passes. Open review findings over your threshold, or a squash message that breaks a rule, keep it out; so does a review of the head that has not arrived yet. When no review arrives within 30 minutes of the run's end, the verdict fails. The queue page says which one: decide the findings or fix the pull request's title and body on the change page, wait for the review, or run the head again.
- No decision waits for a person at its head: no declaration to approve and no gap to accept. See Validation.
- Its diff touches nothing under
.github/workflows/. The Putnami GitHub App cannot push workflow files: a person with admin rights merges such a change. - It has the reviews the base branch's rules require.
A pull request from a fork never enters: a person with admin rights merges it.
What the queue lands, and in what order
The line is in the order the requests arrived.
- It builds a queue commit: the squash of the pull request on top of the
entry ahead, or on the branch head for the first entry. Its message is
<title> (#<number>), and the pull request's author is in aCo-authored-by:line. - It tests that commit. A queue run runs the branch's rule on it and
publishes its release set on a staging channel of its own,
queue-<number>-<attempt>. Approvals carry over when the declaration is the same. Each entry tests what changed since the branch's last green commit, so an entry behind another also tests what the entries ahead changed. - It lands the commit. When the queue run is green and every entry ahead is green, the base branch moves to the queue commit, and GitHub marks the pull request merged. Landing an entry lands the entries ahead with it.
- It deploys. The run's deploy phase moves the followed channels, such
as
canary, to the set the queue run published, in landing order. When several entries land together, the newest set deploys and the others end "landed with #N".
Up to 4 queue runs build side by side on a branch by default, 1 to 16 with
--depth. No queue run moves a channel others follow: only the landing does.
When the queue commit asks a question of this change that nobody decided, the entry leaves the line and keeps auto-merge on. Decide on the change page: the pull request enters again at the end of the line.
The head's verdict holds in the line too. When it fails after the pull request entered, for example on a late review's findings or an edit of its title, or waits for a new review, the entry leaves the line the same way. Its queue run stops, and the entries behind it are built again without it. Once the verdict passes again, the pull request enters again at the end of the line.
Read where a change stands
The Putnami Verdict check of a queued pull request stays in progress, so
GitHub's auto-merge cannot merge it outside the queue. Its title says where
the change stands:
| Title | What it means |
|---|---|
| Merges through the queue | Not in the queue: turn on auto-merge, or a condition above does not hold yet. |
| Merges through the queue: waiting for you: N decisions | Decide on the change page; the pull request enters by itself. |
| Merges through the queue: conflicts with #N ahead | Rebase on the commit the check names, then push. |
| Merges through the queue: queued at position N | In line; its queue run has not started. |
| Merges through the queue: running | Its queue run is running. |
| Merges through the queue: waiting to land | Its queue run is green; it lands with the entries ahead. |
| Merges through the queue: landed | The base branch holds the change. |
Merges through the queue: paused by <login> |
A person paused the queue. The change keeps its place. |
Dropped from the merge queue: <reason> |
The entry left the queue: the summary says why and what to do. |
A failed or canceled check is not held: GitHub shows it red.
putnami cloud ci queue listprints the entries in line, the requests that wait, what landed or dropped in
the last 24 hours, and the commit to rebase on. It takes --branch, main by
default.
A push to the head drops the entry: the new head enters again by itself. To leave the queue, turn auto-merge off or close the pull request. A person who manages the workspace can also remove an entry, or put back one that dropped, from the Queue page of putnami.app.
Turn the queue on, pause it
A repository admin turns the queue on from a checkout of the repository:
putnami cloud ci queue
putnami cloud ci queue enable --dry-run
putnami cloud ci queue enableThe first command reads the branch's setting and whether its rules let the
queue land. The queue lands as the Putnami GitHub App, so enable changes the
branch's rulesets once you confirm, with your own GitHub credentials: the App
becomes the bypass actor of the pull request rule, and of no other rule.
--dry-run shows that change without making it.
To stop the queue for a while, pause it: nothing new is built and nothing lands, every entry keeps its place, and pull requests still enter.
putnami cloud ci queue pause --reason "release freeze until 14:00"
putnami cloud ci queue resumeci queue disable turns the queue off and empties it: pull requests that
still have auto-merge on then merge as on a branch without a queue.
Follow a change to each environment
The change page's Release tab follows the change after its merge:
One sentence says where it stands, such as "Merged. The release is on its way.", or one sentence per environment, the most urgent first.
The path: merged, released, then each environment, one step per stage with its time. Before the merge, the same path says when each step will come, from each environment's last deploys, and no step says live.
One card per environment that deploys the change, a failed service first:
Card What it means Deploying · N of M ready The deploy is running. Live Every service of the change serves it. Live except <service>Some services serve it; the named ones failed or were held back. Failed, Held back No service of the change serves it. Replaced by a later deploy A later deploy replaced the one that brought the change. Outcome not proven The deploy ended, and Putnami cannot tell whether what serves holds the change. An environment that follows the release's channel and holds no deploy of the change says so.
What the change produced, project by project: Docker images, configs, npm packages and Go modules.
Before the merge, the tab also shows the pull request's pr-N channel. An
environment deploys a release when it follows the channel the release moved;
see Environments follow channels.