Skip to content

Plan 1 acceptance: one job on smaug

These runs went from Gavin's laptop (macOS) to smaug (Debian 13, x86-64) over tailcat. They took place on 2026-11-22 and 2026-11-23, with allmyram installed by deploy/linux/install.sh. Unless a line says otherwise, the client was built from impl/plan-1 at 3ad21c1.

Install and restarts

  • sudo bash install.sh exits 0 and prints egress self-check: passed. All nine self-check results are ok. Direct connections to 1.1.1.1, the LAN gateway, a tailnet peer and the proxy host's port 22 are blocked. Through the proxy, example.com gives 200, while the LAN gateway, the tailnet peer, localhost and the proxy host give 403.
  • A loop on smaug restarted the runner, helper and egress units twice each, 25 s apart:
  • Runner and egress restarts: each logged exactly one tailcat listening line and one egress self-check passed=true line, 5–8 s after the restart.
  • Helper restarts: no runner log lines. The runner keeps running when the helper or containerd restarts.

Step 1: the real suite

In the Transpire checkout:

allmyram run --runner smaug --image ghcr.io/astral-sh/uv:0.12.0-python3.14-trixie-slim \
  --memory 4G --cpus 4 --workdir meristem -- \
  uv run pytest -q -m "not real_spanner" tests --ignore=tests/integration

The result was 128 passed, 1 warning in 6.23s, exit 0, 19.1 s end to end, with output streamed as it ran. The warning is meristem's own SAWarning, and it appears on the laptop too. Most of the remaining time is uv downloading 55 packages through the proxy, because each job starts with an empty cache. The same suite takes 2.3 s on the laptop with a warm cache.

The job needed no HOME override: a job that doesn't set HOME gets HOME=/tmp. The job's hostname is its run ID (seen: r-069977aedcba5c93).

Step 2: failures are reported faithfully

  • -- false exits 1, and a job that exits 3 makes the client exit 3.
  • A Python job allocating 1 GiB under --memory 256M is reported as "killed for running out of memory" and exits 137. (The plan said 512 MiB; 1 GiB was what was run.)

Step 3: egress from a real job

These were checked from inside a job by hand; it was not the full probe. - Direct TCP to 1.1.1.1 and to the LAN gateway is blocked. - Through the proxy, pypi.org gives 200 and the LAN gateway gives 403.

This agrees with the install's self-check above.

Step 4: disconnect and resume

  • Client paused: a 60-line job (echo n=$i; sleep 1), with the client stopped by kill -STOP for 30 s from line 12. After kill -CONT the client printed one lost the connection to runner "smaug" … reconnecting line, resumed, and exited 0. Lines n=1 to n=60 each appear exactly once.
  • Client killed: a 40-line job, with the client killed at line 13. Its last message named allmyram attach and allmyram cancel. allmyram attach replayed n=1 to n=40 exactly once and exited with the job's code, 7.

Step 5: runner restart

A 180-line job, with sudo systemctl restart allmyram-runner run at line 32. The client printed lost the connection … reconnecting, then runner restarted and stopped run …, and exited 126 about 16 s later. Afterwards no pods or workspaces were left on smaug. A job submitted while the runner was restarting was refused with "egress self-check has not passed" (exit 125).

Step 6: footprint

idle during the suite after the suite
allmyram runner RSS 38–41 MiB 40.6–41.4 MiB 41.2 MiB
allmyram-helper RSS 16–17 MiB 17.2–17.7 MiB 17.8 MiB

The idle range covers 2026-11-22 and 2026-11-23. The runner's first start measured 10.7 MB. The helper's cgroup also holds about 90 MiB of page cache from writing workspaces. That memory is reclaimable, so the helper's own memory is the 5.6 MiB of anon.

Step 7: nothing runs as root

ps -eo user,comm | grep allmyram shows allmyram-helper running as allmyram-helper, and allmyram (the runner) running as allmyram-runner. The long-running services never run as root.

Root is used by install.sh, and by allmyram-egress.service, a one-shot unit that runs ip and nft as root at every boot and every egress restart and then exits. That unit counts as part of install: it rebuilds the jobs' bridge and firewall rules, which don't persist across a reboot. The process check doesn't show it because it has already exited.

Output fidelity

Job output reaches the client byte for byte, with one exception. A \r\n line ending arrives as \n, because containerd's CRI logger splits lines and drops the \r before the newline. A lone \r, such as a progress bar's, arrives unchanged. (Checked with printf 'a\r\nb\rc\n', which arrived as a\nb\rc\n.)

After the final-review fixes

On 2026-11-23, smaug was reinstalled from the fix branch (allmyram 837c499e, allmyram-helper 26a3dee6) and these checks were rerun with a client from the same commit:

  • Groups: the runner process's groups are allmyram-stage and allmyram-runner, and never allmyram-helper, which owns containerd's socket. The helper's groups are allmyram-stage and allmyram-helper. Staging is allmyram-runner:allmyram-stage 2770.
  • A job that breaks its workspace: two jobs each made a read-only tree, then set /workspace to mode 000 in one and 755 in the other. Both ended normally with exit 0, and no workspace was left behind. Before the fix, either job would have kept its client waiting forever and stopped the runner from starting.
  • Output before exit: a job printing 20,000 lines and exiting 4 delivered all 20,000 lines and exited 4.
  • Time limit: --time-limit 8s exited 124, and the job's last lines (t=7, t=8) still arrived.
  • Ctrl-C mid-job: "cancelling run …", then "was cancelled", exit 130.
  • Ctrl-C during the image pull, before the run had an ID: the client waited for the submit, then cancelled the run, exit 130. No workspace was left behind.
  • meristem: 128 passed, exit 0, 14.0 s.

Known gaps

  • The helper's pod-creating integration tests still use the old spike's cgroup, which no longer exists. They need a test cgroup that dev-host.sh sets up.
  • Each job downloads its dependencies from scratch. A persistent cache (scratch pads) is future work.