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.
docs/runner.md +6−5
| @@ -282,7 +282,7 @@ whether a result counts. | |||
| 282 | 282 | The runner streams logs and finishes the attempt over the authenticated channel | |
| 283 | 283 | that leased it. The server checks that the account holds the lease, the record | |
| 284 | 284 | matches the assigned job, and uploaded artifact pointers exist. It then stores | |
| 285 | the attempt and result in `data/runs.db` in one transaction. Tagged release | ||
| 285 | the attempt and result in `data/instance.db` in one transaction. Tagged release | ||
| 286 | 286 | pointers are written to the `vole` branch separately. | |
| 287 | 287 | ||
| 288 | 288 | ## Logs | |
| @@ -319,7 +319,7 @@ the repository with the least work in progress. `max_jobs_per_repo` adds a hard | |||
| 319 | 319 | per-repository concurrency cap. The Admin page's **Runners** tab shows connected | |
| 320 | 320 | slots, active work, and queued jobs. | |
| 321 | 321 | ||
| 322 | - Run records live in `data/runs.db`, not the repository's metadata branch. | ||
| 322 | - Run records live in `data/instance.db`, not the repository's metadata branch. | ||
| 323 | 323 | - A push normally queues work immediately; a 30-second reconciliation compares | |
| 324 | 324 | refs with queued tips to recover missed notifications. | |
| 325 | 325 | - A replacement push cancels queued runs for the old commit and asks an active | |
| @@ -335,6 +335,7 @@ slots, active work, and queued jobs. | |||
| 335 | 335 | - Rerunning a finished run creates another attempt with the same pinned workflow, | |
| 336 | 336 | image, and secrets. | |
| 337 | 337 | ||
| 338 | Deleting `data/runs.db` loses CI history, queued work, in-flight attempts, and | ||
| 339 | contributor CI allow decisions. Current refs can be queued again from Git, but | ||
| 340 | only a backup restores finished history. Back up this database with the instance. | ||
| 338 | Deleting `data/instance.db` loses CI history, queued work, in-flight attempts, | ||
| 339 | contributor CI allow decisions, accounts, access rules, and stored secrets. | ||
| 340 | Current refs can be queued again from Git, but only a backup restores finished | ||
| 341 | history. Back up this database with the rest of the instance. | ||