Skip to content

AUTOMATION, TESTS, TELEMETRY

DevOps & Site Reliability

Automate releases and watch what you run. Write deploy and health-check tooling in one language, test it with zz test, and keep services observable through structured logs and exit codes.

Operations tooling is code, and code deserves the same checking as the rest of your system. Write deploy scripts, health probes, and migration jobs in ZZ, cover them with the built-in test runner, and emit machine-readable logs a collector can ship. Because the compiler rejects mistakes before the process starts, a bad deploy fails in CI rather than in production.

  • `zz build` emits native binaries; `zz test` runs suites with filters, tags, and parallelism.
  • Structured logging in JSON or text, with levels and spans that survive a pipeline.
  • Process control — run, spawn, wait, and inspect status, stdout, and stderr.
  • Service checks over plain HTTP and TCP, using the same stdlib the service itself uses.
  • One language for the service and its tooling, so the deploy script cannot drift from the API.

Modules

std.logstd.processstd.httpstd.teststd.env
migrate.zzzz
Run
import std.log
import std.process

func main() {
    log.set_format("json")
    log.set_level("info")
    log.to_stderr()

    match process.run("./migrate.sh", []) {
        .ok(out) => {
            if out[0] == 0 {
                log.info("migrate ok")
            } else {
                log.error("migrate failed with status {out[0]}")
                process.exit(1)
            }
        }
        .err(e) => {
            log.error("could not run migrate: {e}")
            process.exit(1)
        }
    }
}

Runs in the playground — no install required. Open it

All four domainsBack to use casesCase studiesDocs