Skip to content

Jobs from Compose acceptance: smaug and a Mac mini

These runs went from Gavin's laptop (macOS) over tailcat on 2026-12-01, with the client config ~/.config/allmyram-join/client.json, to two runners:

  • smaug (Debian 13, x86-64), running the Linux binaries from wip/compose-jobs at 67d4757, installed with deploy/linux/install.sh;
  • the Mac mini gavins-mac-mini (macOS 27.2.1, arm64), running the macOS binary from d6d39c0, installed with allmyram install.

The client was built from d6d39c0. Between 67d4757 and d6d39c0 only tests, docs and the justfile changed. Both runners passed their egress self-check after the install.

The workload is a scratch git repo holding this compose.yaml:

services:
  db:
    image: docker.io/library/postgres:18
    environment:
      POSTGRES_PASSWORD: t
    volumes:
      - pgdata:/var/lib/postgresql
    healthcheck:
      test: ["CMD", "pg_isready", "-h", "localhost", "-U", "postgres"]
      interval: 5s
      start_period: 60s
      start_interval: 1s
  job:
    image: docker.io/library/postgres:18
    environment:
      PGPASSWORD: t
    depends_on:
      db:
        condition: service_healthy
volumes:
  pgdata:

The healthcheck names -h localhost. Postgres's image first runs a temporary server that listens only on its unix socket, so a socket check can pass while the job's psql -h db is still refused. The warden's integration test failed that way on smaug the same day, before its check was changed to TCP.

Step 1: the dry run

allmyram run --dry-run -- psql -h db -U postgres -c 'select 1' exited 0 and printed the job: image docker.io/library/postgres:18 with the command replaced, PGPASSWORD, the default limits (4 GiB, 4 CPUs, 4096 pids), service db with its environment and healthcheck (timeout 30s and retries 3 from Compose's defaults), depends_on db healthy, and the alias job. The named volume pgdata is per-run storage, so it doesn't appear in the job.

Step 2: the run

allmyram run --runner RUNNER -- psql -h db -U postgres -c 'select 1':

Runner Exit Output Timing
smaug 0 select 1's one row the warden created the pod at 11:06:44.6, started main at 11:06:50.0 once db was healthy, and stopped the run at 11:06:51.3
gavins-mac-mini 0 the same 18 s from submit to exit, just after the reinstall recreated the VM

Step 3: status during the wait, and Ctrl-C

To keep the run waiting long enough to look at it, slow.yaml is compose.yaml with start_interval: 30s and start_period: 120s. With --compose-file slow.yaml, allmyram status a few seconds after submit printed, on both runners:

{"run_id":"r-…","state":"WaitingForServices","exit_code":0,"reason":"","waiting_for":["db"],"created":"…"}

An interrupt then gave:

allmyram: interrupted; cancelling run r-… on runner "…" (interrupt again to stop waiting)
allmyram: run r-… was cancelled

and exit 130. status afterwards said Stopped, reason Cancelled.

Runner Interrupt to exit
smaug 11 s the first time, 0.5 s the second
gavins-mac-mini 1 s

The runner ended smaug's first run within a second of the interrupt (its finished time); the rest was the client's connections. tailcat's connection set-up took between 1 s and 30 s for the status calls in the same session, so the 11 s is connection time.

Step 4: a warned field and a refused one

Run with compose.yaml and a second file on top:

  • tmpfs: ["/var/scratch"] on job warned and ran: allmyram run: Ignoring: service job: tmpfs: /var/scratch: the path is ordinary per-run storage on disk.
  • volumes: ["./data:/data"] on job was refused with exit 125: allmyram run: service job: volumes: /…/compose-accept/data at /data: bind mounts are not supported.

Step 5: transpire

A scratch repo held transpire's docker-compose.yml (identical to its checkout's that day) and the design's compose.allmyram.yaml (job/compose/testdata/transpire/). allmyram run --dry-run -- just check exited 0 with no warnings:

  • the job: image registry.example/transpire-dev:2026-11, command just check, depending on postgres and spanner-emulator-health being healthy;
  • services postgres (healthcheck pg_isready -U transpire), spanner-emulator, and spanner-emulator-health (a curl check of the emulator's REST port, depending on spanner-emulator started);
  • the global pad uv-cache at /cache/uv, soft maximum 10 GiB;
  • fake-gmail left out, since nothing the job needs depends on it.

Without the override file the same command was refused with exit 125: allmyram run: no service "job" in docker-compose.yml; name one with --service, or pass --image to run without services.

Running just check itself needs a toolchain image that doesn't exist yet, which is outside this work. transpire's postgres healthcheck checks the unix socket, so it has the start-up race the note at the top describes.