Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Keep the authoritative instance in one database

1a9b383890c40885709804293cd3a75e775f06a0 · Keenan Nemetz · 3d ago · parent 12221a79

Keep the authoritative instance in one database

Move the CI queue and the sealed secret rows into instance.db, leaving index.db as the one derived database. Backups now copy the single authoritative file, and the index stays disposable.

Hooks and the SSH front door use the instance database for run credentials and required checks. The admin db commands and documentation now describe one authoritative database plus the derived index.

This was migrated once by hand on the rodent.software instance; there is no migration command and no legacy-layout check in the shipped code.

server/ci.go +1−1

@@ -371,7 +371,7 @@ func (s *Server) watchRefs(ctx context.Context) {
371 371 //
372 372 // It is what makes the spool a latency optimisation instead of a promise. The hook
373 373 // runs after the refs move and may fail to write its spool file without failing the
374 // push (a crash between the two, a full disk), and `runs.db` can be deleted while
374 // push (a crash between the two, a full disk), and the run rows can be removed while
375 375 // jobs are queued. Both are answered the same way: a ref tip is the durable
376 376 // statement that a commit is live, so a tip no cursor has recorded is work owed.
377 377 //