Merge with the queue and follow the release
Turn on the merge queue so Putnami tests the exact commit that lands, merges it, and releases the set that test published. Nothing builds again after the merge.
The queue needs hosted CI on a GitHub repository. A repository that keeps its own CI merges with its own rules. See Keep your CI. Putnami never merges on its own: a person turns on auto-merge, or starts a build from an issue, which turns it on.
What happens in the cloud
- A pull request with auto-merge on enters the queue once its conditions hold. The line follows the order of the requests.
- The platform 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>), with the author in aCo-authored-by:line. - A queue run tests that commit and publishes its release set on a channel of its own,
queue-<number>-<attempt>. It moves no channel that others follow. - When the queue run is green and every entry ahead is green, the base branch moves to the queue commit. GitHub marks the pull request merged.
- The run's deploy waits for the landing, then moves the followed channels, such as
canary, to the published set, in landing order. When several entries land together, the newest set deploys and the others endlanded with #N.
Up to 4 queue runs build side by side by default. enable --depth sets 1 to 16.
Do it
Turn the queue on
A repository admin runs this from a checkout of the repository:
putnami cloud ci queue
putnami cloud ci queue enable --dry-run
putnami cloud ci queue enable
putnami cloud ci queue- The first command reads the setting of the branch and whether its rules let the queue land.
enable --dry-runshows the ruleset change and makes none.enablechanges the rulesets once you confirm, with your own GitHub credentials. The Putnami GitHub App becomes the bypass actor of the pull request rule, and of no other rule. The queue lands as that App.- Run
putnami cloud ci queueagain to verify.
Every verb takes --branch, main by default. queue disable turns the queue off and empties it: pull requests that still have auto-merge on merge as on a branch without a queue.
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>There is no label and no other command. The pull request enters once all of these hold:
- It is open and ready for review.
- Its head applies on the line ahead. A conflict that lies only in a generated
schema/http-routes.jsonorschema/grpc-services.jsondoes not count: the queue merges the route lists. - Its head has a green run whose
Putnami Verdictpasses. Review findings over your threshold, a squash message that breaks a rule, or a review that has not arrived keep it out. The review has 30 minutes after the run ends. - No declaration waits for approval and no gap waits for acceptance. See Validate a change.
- It touches nothing under
.github/workflows/: the App cannot push workflow files. A person with admin rights merges such a change. - It has the reviews the base branch rules require.
A pull request from a fork never enters. A push to the head drops the entry, and the new head enters again. To leave, turn auto-merge off or close the pull request.
Pause the queue
putnami cloud ci queue pause --reason "release freeze until 14:00"
putnami cloud ci queue resumeWhile paused, nothing new builds and nothing lands. Every entry keeps its place and pull requests still enter. A person who manages the workspace can land one change alone: on the Next page, Merge only this one.
Follow a change to each environment
The change page tab Release follows the change after the merge:
One sentence says where it stands, such as "Merged. The release is on its way."
The path shows merged, released, then each environment, with its time. Before the merge, it estimates each step.
One card per environment that deploys the change, a failed service first:
Card Meaning Deploying · N of M ready The deploy is running. Live Every service of the change serves it. Live except <service>The named services failed or were held back. Failed, Held back No service of the change serves it. Replaced by a later deploy A later deploy replaced it. Outcome not proven The deploy ended and Putnami cannot tell whether what serves holds the change. What the change produced, project by project: images, configs, npm packages and Go modules.
Before the merge, the tab shows the pr-N channel of the pull request. An environment deploys a release when it follows the channel the release moved. See Releases and environments.
What you see
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 | Meaning | Do |
|---|---|---|
| Merges through the queue | Not in the queue yet. | Turn on auto-merge, or fix the condition. |
| ...: waiting for you: N decisions | A decision waits. | Decide on the change page. |
| ...: conflicts with #N ahead | The head does not apply. | Rebase on the commit the check names. |
| ...: queued at position N, running, waiting to land | In line. | Wait. |
| ...: landed | The base branch holds the change. | None. |
...: paused by <login> |
A person paused the queue. | Wait. The change keeps its place. |
Dropped from the merge queue: <reason> |
The entry left. | Read the summary. |
A dropped change keeps auto-merge on at GitHub. Work shows Left the queue · <reason>, and the change page says why and what brings it back. A verdict that fails after entry, for example on late findings, drops the entry too. Once the verdict passes, the pull request enters again at the end of the line.
putnami cloud ci queue listIt prints the entries in line, the requests that wait, what landed or dropped in the last 24 hours, and the commit to rebase on.
When it fails
| You see | Cause | Fix |
|---|---|---|
enable is refused |
The code host cannot build queue commits, or the rules make the App bypass actor of more than the pull request rule. | Run enable --dry-run and read the ruleset change. |
| The pull request never enters | A condition above does not hold. | Read the Putnami Verdict title and the Next page. |
| Dropped with a conflict | The head conflicts with the line ahead. | Rebase on the commit queue list prints, then push. |
| Dropped, a decision waits | The queue commit asks a question nobody decided. | Decide on the change page. The pull request enters again. |