Keep the base green without slowing anyone down.
Per-ticket checks stay narrow and fast. The gate runs your full test suite on the base in the background, when you choose, and files a fix ticket the moment it turns red.
- Four modes: schedule, idle, every N landings, manual
- Runs only when tickets have landed since its last run
- A red base files a priority-1 fix ticket, naming the suspects
- Reruns only the failed tests, with gate_rerun
$ swairm gate STARTED gate RED base 9c2e41a fails the gate since m2-04. Fix ticket fix-3 is filed: keep building. # fix-3 starts first; with gate_rerun it reruns only the tests that failed LANDED fix-3 4be0d17 GREEN 4be0d17 gate passed in 312s
Features
Everything in The gate
schedule (default)
Once a day at gate_at, 03:00 by default.
idle
When the machine's load is under gate_load percent of its cores, at most once an hour, and at the latest a day after the last run.
every
After gate_every landings, five by default.
manual
Only when you ask: swairm gate, or Run gate now on the board.
Its own worktree
The gate runs in a detached worktree on the base, so nobody's checkout changes under them.
A fix ticket
A red gate files a priority-1 fix ticket naming the landings since the last green run, and every agent hears it. The fix starts before other work.
Keep landing
Tickets keep landing while the base is red; the fix goes first.
Rerun the failures
gate_rerun says how to find failed tests in the log and rerun only those, one rule per test runner.
Pick it on the board
The gate control in the header picks a mode for one project, or for every project under All projects.
Commands
swairm gate | run the full suite on the base now |
swairm doctor [--fix] | check the setup; return stale claims, clean worktrees |
swairm status | whether the base is green |
Settings
gate | the full test command, run on the base |
gate_mode | when the gate runs by itself: schedule (default), idle, every or manual |
gate_at | schedule: the time of the daily gate (default 03:00) |
gate_load | idle: the load must be under this percent of the cores (default 50) |
gate_every | every: landings between runs (default 5) |
gate_rerun | how a fix ticket reruns only the failed tests, per test runner |
Set one with swairm config key=value, in swairm.json, or in the board's Settings. All about settings.
Why it works this way
The decisions behind it
Each one is a short record on GitHub: the context, the decision, and the options that were turned down.
Write the tickets. Let the swarm build them.
Install once. Every repository on your machine gets a swarm and a board.
curl -LO https://github.com/CodingNinja/swairm/releases/latest/download/swairm-macos.pkg && sudo installer -pkg swairm-macos.pkg -target /
go install github.com/CodingNinja/swairm/cmd/swairm@latest && swairm install