Skip to content

Plan 2 acceptance: jobs on a Mac mini

These runs went from Gavin's laptop (a MacBook Pro, macOS) to his Mac mini (Apple silicon, 16 GB, macOS 27.2.1) over tailcat, on 2026-11-25.

  • Runner: installed with allmyram install --join --limactl /opt/homebrew/bin/limactl, built from wip/plan-2-macos-runner at e032589, which includes main at e1a07fb. The client was built from the same commit.
  • Lima: Homebrew's 2.3.0.
  • VM image: Garden Linux 2150.15.0 with allmyram's feature, revision 2 (allmyram-vm-2150.15.0-2.raw.zst, sha512 b76cd802…). It was put in the runner's cache beforehand, because the release isn't published yet.

Install and join

  • Join. The install joined by invite: fingerprint LCCV-FYZN, approved on the laptop at 16:17:21. The runner then:
  • unpacked the cached image, with no download;
  • created the VM and its 100 GiB allmyram-data disk;
  • passed its egress self-check at 16:17:58, 37 s after the join. All fourteen results were ok.
    • Blocked: direct connections to 1.1.1.1, the LAN gateway, a tailnet peer, the proxy host's port 22, and the Mac's own addresses over IPv4 and IPv6.
    • Through the proxy: pypi.org gives 200. The LAN gateway, the tailnet peer, localhost and the proxy host give 403.
  • Exit status. allmyram install exited 0.
  • Git refusal. The first submit was refused with could not check snapshot … for Git LFS paths.
  • Cause: the runner runs /usr/bin/git, and the LFS check uses git check-attr --source, which needs git 2.40. The mini's /usr/bin/git followed an old standalone /Library/Developer/CommandLineTools (Apple Git 2.39.5), not its Xcode 27.2 (git 2.54). Software Update had nothing to offer, because those tools have no package receipt.
  • Fix: Gavin ran sudo xcode-select -s /Applications/Xcode.app/Contents/Developer, and the next submit worked.
  • Follow-up: kata ay7n asks for a preflight in the binary that checks this at install and start.

Step 1: the real suite

In a Transpire worktree at 877c3a0fa, with the VM already running:

allmyram run --runner gavins-mac-mini --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 123 passed, 1 warning in 4.47s, exit 0, 29.1 s end to end. That commit of Transpire collects 123 tests; Plan 1's 128 came from an older one. A first job on a stopped VM took 36.8 s end to end.

Step 2: failures are reported faithfully

  • -- false exits 1, and -- sh -c 'exit 3' exits 3.
  • 512 MiB written under --memory 256M exits 137 with run … was killed for running out of memory.

Step 3: a job with a service

Not run: allmyram run has no flag for services yet.

Step 4: disconnect and resume

  • Paused client. A job printed line 1 to line 60, one a second, then exited 5. Its client was stopped with SIGSTOP for 30 s, then continued. It printed every line once and exited 5.
  • Killed client. A 40-line job exiting 7 lost its client to SIGKILL after line 8. Then allmyram attach printed lines 1–40 once each and exited 7.

Step 5: runner restart

launchctl kickstart -k gui/501/name.allmyram.runner at 16:32:09, mid-job: - The client printed runner "gavins-mac-mini" restarted and stopped run … and exited 126. - The VM booted fresh at 16:32:11, and the runner's egress self-check passed at 16:32:22. - In the VM afterwards: no workspaces, no containers, and /var/lib/allmyram/warden still XFS on the data disk (/dev/vdb).

Step 6: sleep

Not run. The mini runs as a server and doesn't sleep.

Step 7: footprint

What Footprint
VM process (com.apple.Virtualization.VirtualMachine) just after a boot, with only the self-check run 979 MB
VM process after the suite and the out-of-memory job 2082 MB
Lima's host agent (limactl) 104 MB
allmyram runner RSS 54–64 MB
After 5 minutes with no runs (vm_idle_stop) no VM or limactl process; the runner alone, 57 MB

The VM never gives back a page its jobs touched, so its footprint keeps the peak of its busiest job until the idle stop. The clean-stop marker was written at that stop, so the next start reuses the instance. Gavin judged the ~1 GB at boot fine.

Step 8: nothing else touched

  • ps -axo user,comm shows only Gavin's user for allmyram, limactl and the VM process.
  • There is no ~/.lima. Everything Lima keeps is under ~/Library/Application Support/allmyram/lima.
  • pfctl was never run, and nothing ran as root on the mini. sudo there needs a password, and no step asked for one apart from Gavin's own xcode-select.

Known gaps

  • Mac heartbeats carry no host readings (kata 1ewf).
  • allmyram run can't submit services, so step 3 is untested.
  • The image isn't published, so a fresh Mac needs it copied into the runner's cache with just vm-image-cache.