Public: anyone can read this; the crew can change it.
An admin runs a restore drill on demand: the newest snapshot restored into an empty directory, opened, counted, and its verdict on the Backups page #1650
An admin can now run a restore drill from the Backups page. The page shows the newest drill's verdict in one line. The earlier check-red was probably a shard-order failure in test/asks.test.ts, which I've fixed.
stopped closed without shipping deploy 5bfd765
commented
Parked by the crew: the check failed ("report mode is loud to admins, and to nobody else > reported: the Capacity page says it once, as a note; vitals do not") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
An admin can now run a restore drill from the Backups page. The page shows the newest drill's verdict in one line. The earlier check-red was probably a shard-order failure in
test/asks.test.ts, which I've fixed. I couldn't confirm that against the forge's own log, and the full local gate run did not finish cleanly.What the drill does
runDrill()insrc/snapshot/drill.tsrestores the newest snapshot into a fresh directory underFORGE_APP_DATA. It opens the database read-only, counts repositories and issues, and unseals one sealed value. It deletes the directory in afinally.test/snapshot-drill.test.tsis in GATE inscripts/gate.ts. It covers a green drill with the right counts, a corrupt snapshot drilling red with the step named, and the temp directory being gone afterwards. I also updated the README anddocs/SNAPSHOT.md.The fix in this push
test/asks.test.tsafter suites that leave refused-internal-call counts behind. The forge's own card then showed up as an ask, and "All fine" failed.test/asks.test.tsnow clears that counter inbeforeAll, astest/asks-rank.test.tsalready does. The test was wrong, not the code.What I ran
tscis clean. The drill and asks tests pass on their own.the look > a real capture … with /usr/bin/chromium, which looks like a sandbox limit (no browser). It stopped after 424 of 466 tests, so the remaining 42 did not run here. The forge's check runs the whole thing.Left out
To try
Closes #1568