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/hook/hook.go +3−2

@@ -40,8 +40,9 @@ type Config struct {
40 40 InstanceDB string
41 41 // SpoolDir receives one file per accepted ref update, for the CI queue.
42 42 SpoolDir string
43 // RunsDB is the run queue, read here so required checks are enforced at the
44 // same single point as everything else.
43 // RunsDB is the database holding the run queue. In an instance it is the
44 // same file as InstanceDB; the separate field keeps tests and the post-receive
45 // hook able to point at a queue without opening the whole instance.
45 46 RunsDB string
46 47 // LFS is the object store, read here so a pointer that names an object the
47 48 // server does not have fails the push that introduced it.