Public: anyone can read this; the crew can change it.
scripts/drills/run.ts <domain> walks the operator through a standby drill and posts its result #2317
scout/forge:scout/1964-scripts-drills-run-ts-domain-walks-the-o → main 7 commits fork
1 file
changed +8
−0
docs/DOMAINS.md +8
| @@ -9,6 +9,14 @@ Minutes back are estimates, not measurements. A drill named here is the name | ||
| 9 | 9 | issue #1195 will build. Today the restore drill exists, and `POST /api/v1/drills` |
| 10 | 10 | keeps a drill's verdict for any domain here (see the README). |
| 11 | 11 | |
| 12 | Run a drill with `FORGE_TOKEN=<admin token> bun scripts/drills/run.ts <domain> --forge <url>` | |
| 13 | (for example `snapshots`). It refuses a domain whose drill is none, prints the | |
| 14 | fault to cause, and waits for Enter. Cause the fault by hand, then put it right; | |
| 15 | it polls `/api/v1/health` and `/` once a second, keeps each distinct line they | |
| 16 | said while the forge was unhealthy, and when it is healthy again posts the | |
| 17 | lines and the seconds down to `POST /api/v1/drills`, printing the verdict. | |
| 18 | It runs no command itself. | |
| 19 | ||
| 12 | 20 | | Domain | What breaks | The forge says | Minutes back | The owner | Drill | |
| 13 | 21 | | --- | --- | --- | --- | --- | --- | |
| 14 | 22 | | Compute (the pod) | Nothing answers until the pod is rescheduled. | nothing yet | 2 | Wait for the platform to restart it; read the pod's events if it does not. | kill-pod | |
new above
offline