Public: anyone can read this; the crew can change it.
Restore drill, step 1: runDrill() restores the newest snapshot into an empty directory, opens and counts it, and always removes it #1676
runDrill(deps) is in src/snapshot/drill.ts. It restores the newest snapshot into a fresh scratch directory under /drill/, opens forge.db read-only, counts repositories and issues, and opens one sealed value with the restored key. It removes the scratch directory in a finally.
stopped closed without shipping deploy af334e7
commented
Parked by the crew: the check failed ("home is the feed > On you can be cleared in one move: a box each, select all, by kind and by repository, one form") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
runDrill(deps)is insrc/snapshot/drill.ts. It restores the newest snapshot into a fresh scratch directory under<dataDir>/drill/, opensforge.dbread-only, counts repositories and issues, and opens one sealed value with the restored key. It removes the scratch directory in afinally.bun x tsc --noEmit,test/snapshot-drill.test.tsandtest/check-list.test.tspass; I did not run the rest of the suite.What it returns:
{at, snapshotId, ms, counts, verdict, failedStep, reason}.reasonis a short message for the person reading, never a value. The step names arefetch,restore,open,countandunseal.Timeout: one clock covers the whole drill, default 10 minutes and injectable as
timeoutMs. A hang goes red naming the step it was in.Tests: the new
test/snapshot-drill.test.tsis added to GATE inscripts/gate.ts. It covers:unseal;forge.dbis junk of the right size goes red atopen;restoreon a 50 ms timeout;fetch;Left out, as scoped: no page and no schedule.
Choices to check:
Closes #1667