Skip to main content

Build farm administration

Ouroboros builds and tests code on your own machines. Each machine runs the ouroboros-runner agent. The agent makes an outbound connection to your deployment and takes the builds Ouroboros sends it, so your machines need no open inbound ports. Together the runners are the build farm.

This page covers setting the farm up and keeping it healthy: pools, enrollment tokens, enrolling a machine, reading a runner's health, and draining or removing runners. It also covers how runners authenticate. The agent's commands are described in ouroboros-runner enroll and run.

Everyone in the workspace can read Build Farm (/build-farm). Only an Owner or a Maintainer can create pools, enroll, drain or remove runners, or mint and revoke enrollment tokens. Anyone else sees the switches in their real positions, switched off, and a runner's menu holds View details alone.

The build farm: the fleet's figures, the live build, the runners table, the pools and the enroll card.
The Build Farm page for Acme Robotics, headed 5 runners. 2 pools. 78% cache hits., with Submit build, Build Analyzer, Pool settings and + Enroll runner. Four figures read Runners online 4/5 with forge-03 offline · 2h, Builds today 25, Avg build time 4m 00s and Cache hit rate 78%. The Runners table lists forge-01 building #479 zephyr build, forge-02 idle, forge-03 offline last seen 2h ago, anvil-mac idle with a shield mark, and bigiron draining #472 HIL test rig · finishing, each job labelled Demo data, with their pools and CPU. Beside it the Enroll a runner card shows the pool picker set to pool-a, the enroll command with a masked token, Copy command and Manage tokens, and the Pools card begins below.The Build Farm page for Acme Robotics, headed 5 runners. 2 pools. 78% cache hits., with Submit build, Build Analyzer, Pool settings and + Enroll runner. Four figures read Runners online 4/5 with forge-03 offline · 2h, Builds today 25, Avg build time 4m 00s and Cache hit rate 78%. The Runners table lists forge-01 building #479 zephyr build, forge-02 idle, forge-03 offline last seen 2h ago, anvil-mac idle with a shield mark, and bigiron draining #472 HIL test rig · finishing, each job labelled Demo data, with their pools and CPU. Beside it the Enroll a runner card shows the pool picker set to pool-a, the enroll command with a masked token, Copy command and Manage tokens, and the Pools card begins below.

The page shows:

  • Runners online, Builds today, Avg build time and Cache hit rate — the fleet in four figures. Under Runners online, the runners that are offline and for how long.
  • Runners — the fleet table, described under Runner health.
  • Enroll a runner — the command that adds a machine.
  • Pools — each pool, its switch, the Default tag on the workspace default pool, and Configure →.

Pools​

A runner always belongs to one pool, and the pool says how its builds run. Create a pool before you enroll the first runner. Choose Pool settings, or Configure → on the Pools card, to open Configure pools. Then choose + New pool:

FieldWhat it means
NameWhat --pool says on an enroll command and what a build selects. Lower-case letters, digits and dashes, up to 64.
DescriptionOne line on the card, such as firmware builds. Up to 200 characters.
Executorcontainer — builds run in a pinned image; or shell — builds run on the machine itself.
ImageFor a container pool, the image every build runs in — registry, path and tag.
Env allow-listOne variable name per line. A build's environment holds only these; the runner drops every other variable.
ConcurrencyHow many builds one runner of this pool may run at once — per runner, not per pool. From 1 to 64.

Choose Create pool. Changing a pool's executor affects only builds submitted afterwards.

  • The switch on a pool's row turns it off: it takes no new builds and keeps its runners and history.
  • Delete pool works only on an empty pool. A pool that runners or builds still name can only be switched off.
  • Auto-scale to cloud is shown on each pool, switched off — arrives with cloud runners (v2). Builds stay on your machines.

The default pool​

Every workspace that has a pool has exactly one default pool, tagged Default on the Pools card. A workflow's build or test stage whose Runner pool is $default builds there — and the shipped workflow templates set every build and test stage to $default, so a workflow made from a template builds as soon as the workspace has a pool and one runner in it.

  • The first pool you create becomes the default.
  • Make default on another pool's row moves the tag to that pool. The previous default stops being the default at the same moment.
  • Deleting the default pool moves the default to the workspace's oldest remaining pool, and the audit log records where it went. Deleting the last pool leaves no default: the Ready to run? check then reports build_pool_required for any $default stage.
  • A run keeps the pool it started building on. The first $default stage of a run uses the default pool at that moment, and every later $default stage of the same run uses that pool too — changing the default does not move a run that is already building.
The Pools card: the workspace default pool carries the Default tag, and every other pool offers Make default.
The Pools card of the Build Farm page with two pools. pool-a, firmware builds on the zephyr-sdk 0.17 image with three runners, carries a Default tag beside its name; pool-b, HIL & macOS jobs, offers Make default beside Submit build. Each pool has its enable switch on the right.The Pools card of the Build Farm page with two pools. pool-a, firmware builds on the zephyr-sdk 0.17 image with three runners, carries a Default tag beside its name; pool-b, HIL & macOS jobs, offers Make default beside Submit build. Each pool has its enable switch on the right.

A hosted runner pool​

This version of Ouroboros has no hosted runners: every runner is a machine you enroll. OURO_HOSTED_RUNNER_POOL is reserved for one. Today it changes only what the Smart Defaults card on Get Started offers a new workspace. Leave it false.

Enrolling a runner​

  1. On the Enroll a runner card, choose the Pool.
  2. Choose Copy command. Ouroboros mints a new enrollment token and puts the whole command, with the token, on your clipboard: Copied — treat this as a secret.
  3. On the machine, paste and run it. It downloads the agent from your deployment, enrolls it into the pool and connects.
Minting a token: Copy command puts the whole enroll command, with a fresh single-use token, on your clipboard.
The Enroll a runner card after Copy command: Run this on any machine that can reach ouroboros.acme.dev:443, pool-a chosen, the command curl -fsSL 'https://ouroboros.acme.dev/install.sh?version=0.5.0' | sh -s -- with --tenant 'acme-robotics', --pool 'pool-a' and a masked --token, the line Token orb_enroll_••••0909: expires in 24h · 1 of 1 use left, and the notice Copied — treat this as a secret.The Enroll a runner card after Copy command: Run this on any machine that can reach ouroboros.acme.dev:443, pool-a chosen, the command curl -fsSL 'https://ouroboros.acme.dev/install.sh?version=0.5.0' | sh -s -- with --tenant 'acme-robotics', --pool 'pool-a' and a masked --token, the line Token orb_enroll_••••0909: expires in 24h · 1 of 1 use left, and the notice Copied — treat this as a secret.

The command looks like this, with the token masked on the card:

curl -fsSL 'https://ouroboros.example.com/install.sh?version=0.5.0' | sh -s -- \
--tenant 'acme-robotics' \
--pool 'pool-a' \
--token 'orb_enroll_…'

On the hosted Ouroboros, the same script is also served at https://get.ouroboros.build — see install.sh.

The new runner's row appears in the table within a few seconds of the agent connecting.

The card needs two settings from your deployment administrator before it can mint anything:

Without them, minting is refused: This deployment does not know the https address runner machines reach it at, or serves no runner release, so a command would install nothing. Nothing was minted.

The enroll command is a secret

Until it expires or is used up, the token in the command can add a machine to your farm. Paste it only on the machine you are enrolling. Don't put it in a ticket, a chat or a script that is checked in. If it may have leaked, revoke it under Farm tokens.

If your browser blocks the copy, nothing is left live: Your browser blocked the copy, so the token that was just minted has been revoked. Allow clipboard access for the page and copy again.

Run in a container​

If you run workers in containers, use the official image instead of the installer. It is built from the released binary for linux/amd64 and linux/arm64, and published with the release as ouroboros-runner:v<version> on the registry your deployment publishes to.

The image keeps the runner's identity on a volume at /var/lib/ouroboros-runner, and it takes the enrollment settings from environment variables. Enroll once, then run. The identity stays on the volume, so a restarted container reconnects without enrolling again:

docker-compose.yml
services:
runner-enroll:
image: ouroboros-runner:v0.10.0
profiles: [enroll]
command: ["enroll", "--tenant", "acme-robotics", "--pool", "pool-a"]
environment:
OURO_RUNNER_SERVER: https://ouroboros.example.com
OURO_RUNNER_TOKEN: ${OURO_RUNNER_TOKEN}
volumes:
- runner-state:/var/lib/ouroboros-runner

runner:
image: ouroboros-runner:v0.10.0
restart: unless-stopped
volumes:
- runner-state:/var/lib/ouroboros-runner

volumes:
runner-state:
OURO_RUNNER_TOKEN='orb_enroll_…' docker compose --profile enroll run --rm runner-enroll
docker compose up -d runner

enroll refuses to run twice against the same volume, so run it only the first time. To enroll again, remove the volume first.

Running jobs in containers​

The image carries no Docker daemon. To let the runner run jobs in containers, mount the host's socket where the agent looks for it, and give the container the socket's group:

volumes:
- runner-state:/var/lib/ouroboros-runner
- /var/run/docker.sock:/var/run/docker.sock
group_add:
- "${DOCKER_GID}"
The socket is root on the host

Anything that can use the Docker socket can start a container that controls the host. Mount it only on a machine you dedicate to the farm. Without the mount, the runner reports that it has no container executor and declines jobs that need one. Set OURO_RUNNER_NO_SHELL to true to also stop it running jobs inside its own container.

See ouroboros-runner for the variables the image reads.

Enrollment tokens​

Each Copy command mints a token that enrolls one machine and expires after 24 hours. Every token is listed on Settings › Farm tokens (/settings/farm-tokens), which only Owners and Maintainers can read.

Farm tokens: every enrollment token, its pool, window, uses and who minted it.
The Enrollment tokens settings page, headed Every token minted to enrol a runner — which pool it admits into, how long it stays good, how many machines it has let in, and who minted it. Values are never shown again., with Open Build Farm and the Farm tokens tab selected. Two tokens are listed: orb_enroll_••••0002 for pool-b, revoked, minted by Maya Chen; and orb_enroll_••••0001 for pool-a, expires in 6d, 2 of 5 uses left, minted by Ken Suenobu, with Revoke. A note says revoking stops a token enrolling anything further, and machines it already enrolled keep their certificates.The Enrollment tokens settings page, headed Every token minted to enrol a runner — which pool it admits into, how long it stays good, how many machines it has let in, and who minted it. Values are never shown again., with Open Build Farm and the Farm tokens tab selected. Two tokens are listed: orb_enroll_••••0002 for pool-b, revoked, minted by Maya Chen; and orb_enroll_••••0001 for pool-a, expires in 6d, 2 of 5 uses left, minted by Ken Suenobu, with Revoke. A note says revoking stops a token enrolling anything further, and machines it already enrolled keep their certificates.

Each row shows the token's last characters, its pool, how long it stays good — or revoked — how many of its uses are left, and who minted it. The token's value is never shown again.

Revoke stops a token enrolling anything further, at once. Machines it already enrolled keep their certificates — retire those from the runners table.

Runner health​

The Runners table lists the fleet:

ColumnWhat it shows
RunnerThe machine's name and architecture, such as linux/arm64.
PoolThe pool it belongs to.
Statusbuilding, idle, draining, offline or removed. An offline row says when the machine was last seen: last seen 2h ago. An Outdated or Unsupported badge beside it means the runner needs an upgrade — see Upgrade a runner.
Current jobThe build it is running, if any.
CPU, RAMIts last reported load.
QueueBuilds waiting for it, such as q:2.
UptimeHow long the agent has run.

A runner sends a heartbeat every 10 seconds. If none arrives for about half a minute, its status turns to offline. It turns back as soon as the agent reconnects. When no runner is online, the page warns that Nothing can build until a runner reconnects: submitted builds wait in the queue.

To see everything about one runner, open its ⋯ menu and choose View details:

A runner's details: the machine, how it authenticates, and its last telemetry.
The details of runner anvil-mac. Machine: pool-b, idle, darwin/arm64, agent version 1.0.0, enrolled Sep 19, 2026, last seen 0s ago. Security: Bearer-token fallback — this runner connected without a client certificate, which is less secure than mTLS; certificate None — a runner on the bearer-token fallback holds no certificate. Telemetry snapshot: CPU 6%, RAM 5.0/64 GB, queues 0 and uptime 12d. A Close button.The details of runner anvil-mac. Machine: pool-b, idle, darwin/arm64, agent version 1.0.0, enrolled Sep 19, 2026, last seen 0s ago. Security: Bearer-token fallback — this runner connected without a client certificate, which is less secure than mTLS; certificate None — a runner on the bearer-token fallback holds no certificate. Telemetry snapshot: CPU 6%, RAM 5.0/64 GB, queues 0 and uptime 12d. A Close button.
  • Machine — pool, status, architecture, host name, agent version, when it was enrolled and its last heartbeat. A runner whose last connection was refused also shows Last refused: the reason code, when, and the sentence the agent was told.
  • Security — how it authenticates (see How runners authenticate) and its certificate's serial and validity.
  • Telemetry snapshot — its last CPU, RAM, queues and uptime. An offline runner shows no snapshot rather than an old one.

Upgrade a runner​

A runner's Status cell carries a badge when its agent is behind:

BadgeWhat it means
OutdatedThe agent is older than the newest release your deployment serves — the newest stable version in OURO_FARM_RELEASES_DIR. It still works.
UnsupportedThe agent is older than OURO_FARM_MIN_AGENT_VERSION, or its last connection was refused. The deployment will not accept it.

No badge means the agent is current, or has not reported a version yet. Unsupported needs OURO_FARM_MIN_AGENT_VERSION to be set, which it is not by default.

A refused agent exits instead of retrying, so the runner then shows offline. Its View details sheet keeps the reason under Last refused until the machine connects again.

To upgrade, run install.sh on the machine again — curl it from your deployment as the Enroll a runner card shows. An enrolled machine needs no token: the script installs the newest release and keeps the runner's identity, so it keeps its name and its pool. The badge clears when the upgraded agent reconnects.

Draining and removing a runner​

Open the runner's ⋯ menu:

  • Drain — the runner finishes the build it is running and accepts nothing new until you return it to service. The build is not interrupted, and there is no deadline. The row reads drain requested until the runner's next heartbeat, then draining. Drain a machine before maintenance.
  • Undrain — the runner accepts new builds again.
  • Remove — takes the runner out of the fleet for good. It is offered only for a runner that is offline or draining: removing a connected machine would orphan what it is building. When you confirm:
    • it leaves the table and every count on the page;
    • its certificate is revoked, so the machine cannot reconnect — bringing it back means enrolling it again;
    • the builds it ran keep their history and their logs;
    • the removal is recorded in the audit trail, with your name.

To retire a machine: Drain it, wait for its build to finish, stop the agent, then Remove it.

How runners authenticate​

When a runner enrolls, your workspace's own certificate authority issues it a client certificate, valid for 90 days; the runner renews it on its own once 30 days remain. Every connection after that is mTLS: the runner proves who it is with the certificate, and it checks the deployment's certificate in return. This is the normal mode, and the runner's details read mTLS — client certificate.

Runners connect to the farm gateway, the address in OURO_FARM_PUBLIC_URL. For mTLS to work, client certificates must reach the REST service:

  • TLS ends at the REST service — nothing to configure.
  • A reverse proxy in front ends TLS — the proxy must pass each client certificate on in a header, and OURO_FARM_CLIENT_CERT_HEADER names it. Set it only when nothing but your proxy can reach the REST service. See The farm gateway.

The bearer-token fallback​

Some corporate proxies strip client certificates and cannot be changed. For those, a runner can enroll with --bearer-fallback: instead of a certificate, it authenticates with a long random secret sent in each request.

This is less secure than mTLS: anyone who copies the secret from the machine can impersonate the runner. Ouroboros therefore shows it plainly: the runner's row carries a shield mark, and its details read Bearer-token fallback with this runner connected without a client certificate, which is less secure than mTLS.

The fallback is off in every workspace, and a runner that asks for it is refused. There is no screen to turn it on. If you must, the deployment administrator switches it on for one workspace in the database:

insert into ouroboros.workspace_settings (organization_id, runner_bearer_fallback)
select id, true from ouroboros.organization where slug = 'acme-robotics'
on conflict (organization_id) do update set runner_bearer_fallback = true;

Prefer fixing the proxy so client certificates reach the REST service. The setting covers every fallback runner in the workspace, not just enrollment: switching it off again (set runner_bearer_fallback = false) cuts every fallback runner off at its next connection. Move those machines to a certificate — Remove them and enroll them again without --bearer-fallback — before you switch it off.

What can go wrong​

  • Copy command is switched off with Create a pool first. A token always names a pool. Create one under Pool settings.
  • Minting is refused because the deployment does not know its https address. Set OURO_FARM_PUBLIC_URL and OURO_FARM_RELEASES_DIR on the REST service.
  • The install fails on the machine. The machine cannot reach OURO_FARM_PUBLIC_URL, or the token expired or was used up. Copy a fresh command.
  • A runner is refused because it asked for the bearer-token fallback. The workspace does not permit it. Enroll with a client certificate, or see The bearer-token fallback.
  • A runner is refused as too old. Its agent is older than OURO_FARM_MIN_AGENT_VERSION. The runner shows an Unsupported badge and the reason under Last refused. Upgrade it.
  • A runner shows offline. The agent stopped or lost its connection. Check the agent on the machine; it reconnects on its own once it can reach the deployment.
  • Remove is not offered. The runner is connected and not draining. Drain it first.
  • A pool cannot be deleted. Runners or builds still name it. Switch it off instead.
  • Ready to run? reports runs on the workspace default pool, and the workspace has no pool. A build or test stage names $default and there is no pool yet. Create one — the first pool becomes the default pool.
  • Builds wait in the queue. No runner in the build's pool is online, or every one is busy or draining — or no online runner has git. Every build checks its repository out first, so a runner whose hello says "git": false is offered no build.
  • A build of a private repository fails at once with the repository refused the clone: it is private and this workspace has no GitHub token to check it out with. Runners clone with the workspace's GitHub token; without one, only public repositories build. Connect a token under Settings › Sources. The token never reaches the runner in the offer or a log: the deployment hands it over once, for that checkout, and records the hand-over in the audit log as runner.source_credential_redeemed.
  • Builds clone from the wrong host. The deployment clones from https://github.com unless OURO_GITHUB_CLONE_BASE_URL names another host — set it for GitHub Enterprise Server, beside OURO_GITHUB_API_BASE_URL. See Containers.