Quickstart
Connect a repository, upload your first report and see flake rates in about five minutes.
Install the CLI
The CLI is a single binary. Run it with npx, or install it once on your runners.
npx plinth init
curl -fsSL https://get.plinth.example/install.sh | sh plinth init
plinth init asks for a project token, writes plinth.yml and prints the step to add to your pipeline.
Upload reports
Add one step after your tests. Run it even when tests fail, or Plinth only sees the green runs.
- name: Upload test reports if: always() run: npx plinth upload "reports/**/*.xml"
Plinth stores test names, durations and failure messages. It never reads your source code, environment variables or build artifacts.
Flake rate
A test is flaky when it passes and fails on the same commit. Its flake rate is the share of its last 50 runs on a branch that failed and then passed without a code change.
- Runner failures, such as lost connections or out-of-memory kills, do not count.
- Each branch has its own rate, so experiments on a feature branch never affect main.
Quarantine
A quarantined test still runs and still reports. Its failures are marked as known and no longer fail the pipeline. Quarantine is off until you turn it on for a branch.
Test splitting
Pass the shard count and index, and Plinth prints the files that shard should run, balanced by recorded duration.
CLI reference
| Command | What it does |
|---|---|
plinth init | Creates plinth.yml and stores the project token. |
plinth upload <glob> | Uploads report files. Add --shard when running in parallel. |
plinth split | Prints the test files for one shard. Needs --shards and --index. |
plinth quarantine ls | Lists quarantined tests on the current branch. |
Config file
project: storefront reports: "reports/**/*.xml" quarantine: branches: [main] threshold: 0.05 # flake rate over the last 50 runs never: ["payments/**"] split: shards: 4
REST API
Every request uses a bearer token from your workspace settings. Responses are JSON and paginated with a cursor.
curl https://api.plinth.example/v2/tests?status=flaky \ -H "Authorization: Bearer $PLINTH_TOKEN"
2 failures are known flakes and were quarantined. 1 failure is new:
Merge unblockedupload › resumes.