Browse the docs

Run hosted CI

Connect a repository, enable hosted CI, and Putnami runs the pipeline you declare on every push and pull request, then publishes the release set.

Hosted CI verifies and publishes. Deploying is a separate step: an environment deploys when the channel it follows moves. To keep your own CI instead, see Keep your CI.

What happens in the cloud

  1. You push, or open or update a pull request. The platform reads putnami.ci.json at the commit and picks the rule that matches.
  2. It starts a run on a Putnami runner: lint, test, build, validate, then publish and deploy when the rule publishes.
  3. Each phase posts a GitHub check. The Putnami CI check summarizes the run.
  4. The run publishes a release set and moves only the channels the matching rule names, such as pr-{number} or canary. An environment that follows one of those channels deploys it.
  5. The Putnami Verdict check answers what the change proved and lost against main, and what waits for a person. See Verdict and decisions.
  6. Putnami keeps one comment on the pull request and edits it after each verdict.

Do it

Connect and enable

putnami cloud source connect --repo <owner>/<repo>
putnami cloud ci enable
putnami cloud ci subscription --output=json

New subscriptions use the canary runner channel. putnami cloud ci enable --runner-channel stable holds the runner on stable. putnami cloud ci disable stops new runs. It deploys nothing and deletes no service. To follow a producer channel, or pin one release set, run putnami cloud channels follow putnami stable.

Declare the pipeline

The root putnami.ci.json names the commands, the runner and the rules. This shape runs on pull requests and on main:

{
  "$schema": "https://putnami.dev/schemas/putnami-ci.json",
  "version": 3,
  "commands": ["lint", "test", "build", "validate"],
  "runner": { "selection": "impacted", "timeoutMinutes": 45 },
  "rules": [
    { "pullRequests": true, "publish": ["pr-{number}"], "baseline": "canary" },
    { "branches": "main", "publish": ["canary"] }
  ]
}
  • A push to a branch other than the default branch runs as its open pull request. With no pull request, it runs only when a branches rule names that branch. The default branch and tags always run.
  • A rule publishes immutable release-set members and moves only the channels it names. Add envs so an environment deploys itself after a channel moves.
  • baseline names a channel to compare with. The first run of a pull request then publishes only the members whose inputs differ from that channel's head. It reads the baseline and never moves it. It does not apply to "selection": "all", to tags, or to a run that checks every project.
  • A run reads only its sources: the commit, its base and putnami.ci.json. Editing a pull request title or body starts no run.

Every field is in Files. Check the file with putnami cloud ci validate. putnami cloud ci explain --event pull_request --branch <branch> --pr <number> shows which rule matches an event and what the run would publish.

Read a run

putnami cloud ci list
putnami cloud ci view <run>
putnami cloud ci logs <run> --level error
putnami cloud ci logs <run> --follow
putnami cloud ci status

Run ids accept an unambiguous prefix. view summarizes the phases and the failed tasks. logs carries the stream: each line reads <project:task> <message>, and --follow shows a line within a few seconds. Hosted run logs live 30 days. ci results <run> shows failed tests, coverage per project against its threshold, and diagnostics by file and line. ci timings <run> and ci insights <run> show where the time went. The full list of verbs is in CLI reference.

On putnami.app, the change page tab Checks answers first for the last commit: which checks fail, how far an open run got, or why no run tested it. Each check is a row with what it found and the command that runs it on your machine. Retry the failed checks or the whole run there, with or without the cache.

The tab and the run page also list the pipelines of any CI that runs your repository, GitHub Actions and GitLab CI included, with their failed jobs. putnami cloud ci list --commit <sha> and --change <number> read them, and ci providers says which CI is connected. When you connect a repository, Putnami reads the last 14 days of your CI once, and the CI health screen shows its tests, coverage, flaky tests and durations.

Read the pull request comment

Putnami keeps one comment on each open pull request of your repository. It says the verdict, what waits for whom, the approvals and accepted gaps, and links to the change page. Only the newest run on the head writes it. Putnami edits only the comment its own GitHub App wrote. The comment needs the Pull requests write permission. When a write fails, Putnami tries again within about 10 minutes, then less often, down to once an hour.

Read what a change proved and lost

The Putnami Verdict check leads with the proof diff: each requirement of your run compared with main at the base of your change. It counts what the change newly proved, lost, and left new and not proven. Verdict and decisions explains the answer, and Validate a change says who decides.

Read the cost

putnami cloud ci usage --window 72h
Billed cost (EUR, net of credits, per UTC day; the newest day can still grow):
  day           runs   per run      total
  2026-10-09      40      0.31      12.42
  2026-10-08      30      0.24       7.18
  2026-10-07      10      0.29       2.90
  all days        80      0.28      22.50
  compute=10.50  egress=5.30  cache=2.00  logs=0.50  gateway=4.20 (upper bound: it also serves the console and the APIs)

Spend is an estimate: measured machine time times a fixed hourly rate. Billed cost is what the cloud provider charged, net of credits, per UTC day. The window is 168h by default. The last line splits the total into compute and egress (your machines) and cache, logs and gateway (shared, split by your share of dispatched runs). The newest day can still grow: the provider reports a day over about three days. Today is not listed.

Read your flaky tests

A test is flaky when one run of a commit fails it and another run of the same commit passes it. The Checks tab lists the tests that flipped over the last 30 days. A failure of a known flaky test reads flaky on the run page. It changes no verdict.

Read the merge outcome

putnami cloud ci usage --output=json answers efficacy: what happened to the pull requests merged into your default branch, per UTC day. Putnami computes each day once, at 06:00 UTC, from the second morning after it.

Field Meaning
mergedPullRequests Pull requests merged that day.
revertRate Share that revert an earlier pull request.
fixShare Share whose title has the type fix.
medianDaysToFix Median days from an earlier pull request to its fix.
withoutGreenGateRate Share merged with no green hosted run on the head.
escapes For pull requests merged 14 days earlier: how many a later fix named, split by green or not.

A rate is null when nothing merged that day.

Recover

A mutating command needs --reason, and --yes in a non-interactive shell.

putnami cloud ci retry <run> --phase lint --reason "transient failure"
putnami cloud ci retry <run> --phase deploy --reason "registry 503 during the rollout"
putnami cloud ci cancel <run> --reason "superseded commit"
putnami cloud ci repair --reason "reconcile stale run state"
  • A run of some phases of a pull request publishes nothing. The next whole run publishes its preview. A queue run, a push to the default branch or a tag runs every phase, whatever --phase or --phases you name.
  • retry --phase deploy reopens the rollout of a run whose deploy phase failed or timed out. It opens no new run. The platform deploys the same release set again, and the new attempt's verdict becomes the run's. ci view lists every attempt. It is refused when the deploy is still rolling, already succeeded, opened no release, or the channel moved on.
  • ci repair closes stale rows and publishes the terminal checks again.
  • ci pause, ci drain and ci resume change the pipeline mode. Use them as a circuit breaker.

While the pipeline is paused, a push opens no run and the commit gets a neutral pipeline paused check. ci resume opens a run for each kept commit that is still current: the head of each open pull request, every commit on the default branch and every tag, and the head of another branch that still exists. The check then reads CI resumed. A queued run starts after the resume only within the lane queue wait, 4 hours by default. A re-run pressed while paused is not kept.

Run a draft pull request

A draft pull request runs no CI. Mark it ready, or add the label run-ci and push. Adding the label starts nothing. To run now: putnami cloud ci start --repo <owner/name> --pr <number> --sha <head> --reason "<why>". For a commit the default branch already ran, start answers that run and opens none.

Upload your local checks

The checks you run on your machine or in an agent session count as a green run in escapes once Putnami has the session record. The upload is off by default:

  1. Sign in with putnami cloud login.
  2. Set PUTNAMI_SESSION_REPORTER=@putnami/cloud in the environment of your putnami runs.

Your user needs the permission to manage runs. A machine token is refused. The session counts when it succeeded, ran lint, test, build or validate, ended before the merge, and arrived at most 15 minutes after it. It creates no run. Putnami deletes the session file after 30 days.

What you see

  • GitHub checks. Putnami CI, Putnami Verdict, declarations to approve, and one check per phase: lint, test, build, validate, publish, deploy, e2e. Hold checks explain a run that did not start: pipeline paused, draft pull request, re-run cooldown, ci workflow unreadable, re-run attempts exhausted.
  • putnami.app. Runs, the run page, the change page tab Checks, and CI health.
  • CLI. putnami cloud ci list and view <run>.

When it fails

You see Cause Fix
No run on a push A branch with no open pull request and no branches rule, or a paused pipeline. Open a pull request, add a rule, or ci resume.
draft pull request check A draft runs no CI. Mark it ready or add run-ci and push.
ci workflow unreadable putnami.ci.json does not parse. Run putnami cloud ci validate.
deploy red The rollout failed or timed out. ci retry <run> --phase deploy --reason "...".
A check stays stale A late GitHub write. ci repair --reason "...".

Next