Scratch pads acceptance: the laptop and smaug¶
These runs went from Gavin's laptop (macOS) to smaug (Debian 13, x86-64, ZFS
2.4.4) over tailcat on 2026-11-25, with the client config
~/.config/allmyram-join/client.json. smaug's data directory is the ZFS
dataset minipool/allmyram, moved there that day with
deploy/linux/move-to-zfs.sh.
Steps 1 to 4 ran against smaug's runner built from wip/scratch-pads at
cefea87's merge (54a2761 plus the final review's fixes, binaries
1b5f4e42…/90a709b7…), with a client from the same commit. That client
predates the merge of main's metrics work, so it used a copy of the config
without main's sinks field. Step 5 ran after main was merged in (0b48001,
binaries e34b0986…/0678ce48…) with the real config.
At start the runner logged pads are cloned
pads_root=/var/lib/allmyram/runner/pads, and no error from the check that
renames from staging into the pads directory work.
The workload is Transpire's webhooks service: cargo test (26 direct
dependencies, 50 unit tests), run from a Transpire checkout on main:
allmyram run --runner smaug --image docker.io/library/rust:1.91.0-slim \
--memory 8G --cpus 8 --workdir webhooks \
--pad target:/work/target --global-pad cargo-home:/cache/cargo \
--env CARGO_TARGET_DIR=/work/target --env CARGO_HOME=/cache/cargo \
-- cargo test
Step 1: cold, then warm¶
| Run | Exit | Wall time | Crates compiled | Downloads |
|---|---|---|---|---|
| 1 (both pads empty) | 0 | 88 s | 217 | every crate |
| 2 | 0 | 10 s | 1 (webhooks itself) |
none |
Both runs passed all 50 tests. The second run downloaded nothing (the global
cargo-home pad held the registry) and compiled only webhooks: each job
gets a fresh copy of the source, which is newer than its last build. No pad
warnings were printed, so the pads were clones, not plain copies.
Step 2: fresh¶
| Run | Exit | Wall time | Crates compiled |
|---|---|---|---|
--pad target:/work/target:fresh |
0 | 73 s | 217 |
the next run, without fresh |
0 | 12 s | 1 |
fresh started the target pad empty, rebuilt everything, and published;
the run after it was warm again.
Step 3: two runs at once¶
Two runs with the same target pad, started together:
| Run | Exit | Wall time | Crates compiled |
|---|---|---|---|
| first | 0 | 35 s | 1 |
| second | 0 | 17 s | 1 |
| the next run, alone | 0 | 11 s | 1 |
Both started warm from the same version and both passed; each published, the
later one becoming the latest, and the next run was warm. The plan asked for
two different branches; both runs were on main because the test did not
switch branches in Gavin's Transpire checkout. Different branches exercise
the same clone and publish, with separate pointers.
One of the runs printed allmyram: lost the connection to runner "smaug":
wait: remote command exited without exit status or exit signal;
reconnecting, then reattached and finished normally.
Step 4: a cancelled run publishes nothing¶
On a pad cancelprobe:
- A run wrote
/pad/beforeand exited: published. - A run wrote
/pad/after, then slept; Ctrl-C (SIGINT to the client) gaveallmyram: run r-0dc462353afcf868 was cancelled. - A run listing
/padsawbeforeonly.
Step 5: after merging main, and a reinstall¶
After main (metrics and sink) was merged into the branch and smaug
reinstalled from it, the runner again logged pads are cloned, the egress
self-check passed, and a run with the real config (which has a sinks
entry) listed /pad on cancelprobe as before: the pad survived the
reinstall.