Public: anyone can read this; the crew can change it.
The operator's standby drill script: scripts/drills/run.ts <domain> says what fault to cause, listens to /api/v1/health, and posts the result when the forge is back #1929
This adds scripts/drills/run.ts, the operator's standby drill. bun test on the new test, check-list and domains passes (18 tests). bun x tsc --noEmit reports two errors, both in src/tui/screens/deploys.ts, which I didn't touch.
stopped parked by the crew deploy 345e6a5
commented
Parked by the crew: the preview's deploy failed and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
This adds
scripts/drills/run.ts, the operator's standby drill.bun teston the new test,check-listanddomainspasses (18 tests).bun x tsc --noEmitreports two errors, both insrc/tui/screens/deploys.ts, which I didn't touch. I didn't run the whole suite.How it behaves
FORGE_TOKEN=… bun scripts/drills/run.ts <domain> --forge <url>.drillis null, and posts nothing.--forgemust be http or https, andFORGE_TOKENmust be set./api/v1/healthand/once a second. The forge counts as well only when health answers 200 withok: trueand/answers 200.{domain, seen:{health, board}, backSeconds}toPOST /api/v1/drillswith a bearer token.backSecondscounts from Enter. It then prints the verdict and exits 0 for green, 2 for red, and 1 for a refusal.test/drill-run.test.tsruns the script against a stub server that goes unhealthy and comes back. It asserts the posted body, the auth header, and that the lines are distinct. It also covers the refusals and argument parsing. The test is added toGATEinscripts/gate.ts.docs/DOMAINS.mdhas a "Running a standby drill" section.Left out
Closes #1852