~ knotless Search/
↑↓ move↵ open⇧↵ all results

socialweb.computer/socialweb-computer-kcp

socialweb.computer: a compute market on atproto (kcp)

1 collaborator
0
0

docs: ci-debug: mistakes that cost a cycle, and the rule each left

Merged johnandersen777.bsky.social asked to merge into main from socialweb.computer/socialweb-computer-kcp:phase-2
docs/ci-debug.md+36−2
@@ -160,8 +160,9 @@ scripts/ci-test.sh staging 2>&1 | tee "$CI_HOME/staging-$(git rev-parse --short
```
CI's input is the default (`input_default`: one staging network, two bidders, every entry of `tests/entries.txt`,
`deadlineMin` 250). A single entry is for the held network (below), or:
`CI_TEST_INPUT='{"layout": "multi", "provision": "infra", "deadlineMin": 250, "suite": ["0005"]}' scripts/ci-test.sh staging`.
`deadlineMin` 250). A single entry is for the held network (below). There is no subset form: in the multi layout the
gate starts only when `suite` is `true`; a list (`"suite": ["0005"]`) stands the network up, holds it 65 s, takes it down
and exits 0 with zero entries run (2026-11-20; to be made a failure after plan 0040's rolls).
CI, for a commit:
@@ -357,6 +358,13 @@ them as leftovers (plan 0040 findings, 2026-11-18).
As bob on hat-8; the target's `requester` set to `sha:<the rc's commit>` (plan 0040 step 14). No landing on main while it
runs.
The static test host needs `SWC_REPO=<the checkout>` in its environment, as `promote.sh` sets it; without it the run
ends at once.
This gate runs its requester on the host. `promote` runs it inside a VM rented on a prod bidder, so a hat-8 pass says
nothing about guest-side rules or WebRTC from a guest to a guest on the same host: for those, rent a VM on prod with
`--guest-tools socialweb-computer` and run the entry from inside it ("Mistakes that cost a cycle", 5).
## Iterate on a held staging network
Do not stand staging up per fix (about 8 min each). One network per build, every entry on it (owner, 2026-11-15):
@@ -465,6 +473,32 @@ unit alone: `_SYSTEMD_USER_UNIT=socialweb-computer-bidder@<handle>.service`); it
its VM units: `runuser -u swc-bidder -- env XDG_RUNTIME_DIR=/run/user/$(id -u swc-bidder) systemctl --user list-units "socialweb-vm-*"`; an entry's
requester on the atproto VM: `/home/stg/stg/s/dev/stg/apps/dev/stg-<request name>/logs/core.log`.
## Mistakes that cost a cycle
The lead's own, on plan 0040 (2026-11-20). Each has the rule it left; plan 0040 Findings has the runs.
| # | What I did | What it cost | Rule |
|---|---|---|---|
| 1 | Proved `0007:upgrade` on a network where I had put the binaries on the bidders by hand | In the full gate the test host copied 4 x 590 MB over the overlay: the entry timed out at 60 min and the load failed `0009:run` | A proof on a hand-prepared network does not count for anything a fresh network does differently. Prove on a fresh network, nothing pre-staged |
| 2 | Accepted the capacity redesign on six reviews and the entries written for it; nobody ran `0014:abandon` | A product regression (500 for an accept the bidder cannot read yet) reached the final hand cycle; one more 2 h cycle | A change is proven by every entry of each family it touches, not a sample. A review is not a run |
| 3 | Let the secrets work change a shared test-host call (`repo.listCreated`) and proved it only on staging | `0006:compat` failed on prod as alice (her repo is large; staging repos are new); one more 2 h cycle | A change to a shared host call is run by every caller, against the largest real repo it will read (alice on prod, read-only) |
| 4 | Asked for a seven-entry staging run without checking a subset path exists; did not read the run's end | The run exited 0 with zero entries; 40 min before I saw it | Read the gate summary line and count the RESULT lines of every run. `exit 0` is not a result. If the count is not the list's, it failed |
| 5 | Ran the hand prod entries from hat-8 itself and called three WebRTC entries "first proven by the roll" | Promote 93fd8c11 red (28 of 31): its requester is inside a rented guest, booted by the old bidder; a 4 h roll and a rollback | Rehearse in promote's topology: the requester inside a VM rented on a prod bidder, the target on the same host. Anything "only the roll can prove" gets a rehearsal designed first |
| 6 | Shipped a guest-side rule (decision 54) and expected promote's own VM to have it | Same red promote | What a release changes in guest rules, guest agent or vmexec is not on guests booted before the roll. Ask of every such change: who boots the guest that needs it |
| 7 | Trusted agents' watchers and my own (a Monitor that expired, a watcher on the wrong file, a tail opened before the file existed) | Failures and ended runs sat unread four times, 27 to 30 min each | After arming a watcher, check it against the real file once. Read result files myself every 15 to 20 min. A watcher must fire on every end state, not only on success |
| 8 | Told an agent to stop new proofs, and another to do a subset, to save time | The proofs cut were the ones that mattered | Never trade a proof for time. If a full gate is the only path that exists, run the full gate |
| 9 | Let a fix change the tree under test after its "final" cycle, three times | Each needed a further cycle | Land only a tree that passed whole. A fix after the cycle means another cycle: plan for it, do not argue it away |
| 10 | Changed a host's firewall with a command I had not read back | It errored on the zone name and changed nothing; caught because I printed before and after | Print the state before and after every change on a host |
Before a pull is queued, each of these is a yes:
- Every entry of every family the change touches ran, on a fresh network, nothing pre-staged.
- The gate summary line and the RESULT count were read from the log, by the lead.
- Shared test-host or module changes ran against prod's largest repo, read-only.
- Anything that differs on prod (hosts, routers, repo sizes, a requester inside a guest, guests booted by the old
bidder) has a rehearsal that has that difference, or is written in the pull as unproven with the reason.
- The tree in the pull is the tree that passed.
## Do not waste time
Learned on plan 0040's hand cycles (2026-11-17/18); each line cost time once.
AGENTS.md+1−0
@@ -743,6 +743,7 @@ again; user_data installs `atirc-agent.service`
On a held staging network: rerun one entry with `--on-fail freeze`, swap in a release build of a fix (never a `--dev`
build: its requester never comes Ready), and get into that entry's guests through its control socket's `ssh_exec`; the
copy-paste commands are docs/ci-debug.md, "Iterate on a held staging network", steps 5 to 5c.
Before queueing a pull read docs/ci-debug.md "Mistakes that cost a cycle": its checklist is the bar for "run out of band".
- atlibs pins: `tests/Cargo.toml`'s atlibs-host, atlibs-iroh, atlibs-kube, atlibs-ssh (one atlibs repo rev: they are its workspace's crates) and identlink follow one tested
set, atlibs `pins.json`, as the knotless runner does (fork branch `runner-atlibs-composition`, deployed by
knotless-fork-infra `versions.env`; each of atlibs and knotless-fork-infra checks its own pins on push in its