Public: anyone can read this; the crew can change it.

Cloud tests share one recorded cloud, and the repository has a formatter config #16327

shipped production is serving it opened this has it

Landed in pull #16517 · run

opened this

Third of three things every subagent that built #16255 named as slowing it down; two small ones that touch the same habit.

  1. Six test files each hand-roll a fake of the DigitalOcean or Hetzner API (test/pinned-*.test.ts). Adding two provider calls (an SSH key made and deleted around a create) meant editing the expected call sequence in all six, and later changes (a leading read, a plan read, a catalog seed) did it again. One helper in test/helpers/ that records calls and answers like each provider, with the common sequences named (create, replace, read), so a new call in a driver is one line in one place. The existing tests move onto it in the same change; no second way remains.
  2. The repository has no formatter config and src/ uses long lines. An editor or agent hook that formats on save rewraps the whole file: a 45-line change became 189 changed lines, so agents change every existing src/ file by script to keep diffs honest. Add the formatter config that matches how src/ is written today (line width and all), so formatting a file is a no-op, and say in CLAUDE.md that it is there. Do not reformat the tree.

Proof: the pinned tests pass on the shared helper with fewer lines than before; running the formatter over src/ changes nothing.

Files: test/helpers/, test/pinned-forge.test.ts, test/pinned-hetzner.test.ts, test/pinned-claim.test.ts, test/pinned-ceiling.test.ts, test/pinned-harden.test.ts, CLAUDE.md

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs