wardn runner
Connect this machine so Wardn's tests run on it, and keep it running as a service.
A runner is a machine of yours that runs Wardn's work in containers. See Runners for the guide; this page lists the commands.
| Command | What it does |
|---|---|
wardn runner start | Checks for a container engine, registers the machine as a test worker, and serves runs in the foreground. |
wardn runner start --service | The same, then installs it as a service that starts with the machine. |
wardn runner run | Serves from a runner that was already set up, without needing your login. What a service runs. |
wardn runner status | Whether it is set up and running, the service state, and what Wardn sees of it. |
wardn runner stop | Stops the service, or the process running in another terminal, letting its current runs finish. |
wardn runner logs [-f] [-n 100] | The runner's log. |
wardn runner uninstall [--remove] | Removes the service. With --remove, also deletes the runner in Wardn and its files here. |
Flags of wardn runner start
| Flag | Default | Meaning |
|---|---|---|
--name | the hostname | The runner's name in Wardn. |
--tests | true | Run tests. |
--agents | false | Also run agents on this machine, in isolated containers; see Runners. With --gateway-url, --gateway-ca-file, --model-key-file, --model-key-env, --runtime-image, --sandbox-image, --sandboxes and --allow-private-host. |
--service | false | Install as a service. |
--labels | none | key=value pairs, comma separated. |
--slots | 2 for a new runner | How many runs at once. |
--engine | docker, else podman | The container engine command. |
--test-agent-binary | this executable on Linux | A Linux build of wardn or wardn-test-agent for test containers. |
--network, --callback-url | the host network when Wardn is local | How test containers reach Wardn. |
--sandbox | auto | auto keeps each test container to its policy (the deployment under test, the hosts its suite lists, Wardn); off turns that off on this machine, which then runs only suites that allow reduced isolation. |
--replace | false | Take over a runner of that name registered elsewhere. |
--drain | 5m | How long a stopping runner waits for its runs. |
--dir | ~/.config/wardn/runner (or WARDN_RUNNER_DIR) | Where it keeps its files. |
The runner's directory holds runner.json (what it registered as), worker-token (its token, 0600), runner.log and the staging directory of runs in flight. The worker token is the only credential the runner keeps; your login is used to register and not again.