Your first change
In about 15 minutes, you open a pull request, read what Putnami proved about it, take the decisions that wait for you, and land it. This is the loop every change follows.
What happens in the cloud
- You push a pull request. Hosted CI runs the checks on its head and posts
the
Putnami CIcheck. - The
Putnami Verdictcheck compares what the head proves with whatmainproves, and lists what waits for a person. - You approve the declarations the change edits, and an admin accepts the gaps it leaves.
- You turn on auto-merge. The merge queue tests the exact commit that lands, then merges it.
- The run of that commit publishes a release set and moves
canary. Each environment that followscanarydeploys the services that changed.
The journey of a change explains each step.
Before you start
- A repository connected to a workspace.
- A project with tests.
- To see the change run, an environment. The loop works without one: nothing deploys.
1. Turn on hosted CI
putnami cloud ci init
putnami cloud ci enableci initwrites aputnami.ci.jsonthat runs the jobs your workspace declares. Commit it.ci enablestarts a run on each push and pull request.
To keep your own CI instead, see keep your CI.
2. Turn on the merge queue
A repository admin runs this once, from a checkout of the repository:
putnami cloud ci queue enable --dry-run
putnami cloud ci queue enable--dry-run shows the change to the GitHub rules and makes none. Without the
queue, the pull request merges as GitHub's rules allow.
3. Open a pull request
Change a function and its test, push a branch, and open a pull request.
Hosted CI runs lint, test, build and validate on the head. Each phase
posts a GitHub check.
putnami cloud ci list
putnami cloud ci view <run>4. Read the verdict
On the pull request, read two checks and one comment:
Putnami CI: whether the run passed.Putnami Verdict: the answer, then what the change newly proves and what it loses againstmain.- The Putnami comment: what waits, and for whom. Putnami edits it after each verdict.
The change page in putnami.app shows the same answer, on the Checks tab. See the verdict and your decisions.
5. Take the decisions
A change that edits a declaration, such as a spec, waits for an approval. Open the change page, tab Validation, and select Approve feature on each card. A workspace admin approves, and so does a person the CODEOWNERS file names for the file.
A gap, such as a proof the change loses, waits for a workspace admin. The admin accepts it on the same tab, or you fix the change and push again.
Each decision counts at once, with no new run.
6. Land it
Turn on auto-merge with GitHub's Enable auto-merge button, or:
gh pr merge --auto --squash <number>The pull request enters the queue when its verdict passes and nothing waits. The queue tests the commit that lands, then merges it. Nothing builds again after the merge.
What you see
- On GitHub: the pull request is merged, with the squash commit
<title> (#<number>). - In putnami.app: the Release tab of the change page shows the release set and the deploy of each environment.
- In the terminal:
putnami cloud env status prodshows the new revision.
When it fails
| You see | Cause | Fix |
|---|---|---|
Putnami Verdict is failed |
a check failed | putnami cloud ci logs <run> --level error |
Putnami Verdict is infrastructure |
the platform failed to run a check | putnami cloud ci retry <run> |
declarations to approve stays open |
a declaration change waits | approve it on the Validation tab |
| the pull request does not enter the queue | a condition does not hold | see put a pull request in the queue |
the queue refuses a change to .github/workflows/ |
the GitHub App cannot push workflow files | a person with admin rights merges it |
Next
- Build from an issue: an agent writes the pull request
- Set up the review
- Validate a change
- Follow a change to each environment