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.
Put job execution behind an interface
de3eec162f93a697575c8bc756bd496fe4020376 · Keenan Nemetz · 2h ago · parent f784d769
Put job execution behind an interface Job execution was container-shaped all the way into the runner: ci/agent created the network, started the services and the job container, and held *container.Container and *container.Network values directly, and `vole workflow run` kept its own copy of the same orchestration. The only abstraction was Config.Runtime, a string naming one of three flag-compatible CLIs, which is enough for docker, podman and nerdctl and nothing else. ci/execute is that seam. An Executor prepares the job's image, starts its environment, runs one step while the caller keeps the lease alive, stops it, reclaims what a killed runner left behind, and bounds its own storage. A Sandbox is one job's environment: the job, the services beside it, and the network they share. Capabilities is what a backend can honour, so a job that asks for a network or for services is refused before it starts rather than quietly given less. ci/container implements it and takes over the orchestration that was in ci/agent and cmd/vole: the per-attempt network, the service containers and their log collection, the stale-container and stale-network reclamation, and the image build and prune coordination. The isolation flags are unchanged. This is the boundary a virtual-machine backend needs: a macOS guest behind Tart (#356), a Windows guest, or a Linux microVM disagree with a container about pids limits, user namespaces, tmpfs, capabilities and mounts, so they cannot be expressed as another runtime string. Nothing about the image or workflow schema changes here. closes: 01M8Z2M9PVKPNH923S3VJ5FR5E
ARCHITECTURE.md +9−1
| @@ -173,7 +173,8 @@ parts of Vole without running the `vole` command. | |||
| 173 | 173 | | `metadata` | Issues, requests, releases, comments, approvals, and validation | | |
| 174 | 174 | | `ci` | Workflow validation and the job queue | | |
| 175 | 175 | | `ci/agent` | The embeddable runner: leasing, execution, and reporting | | |
| 176 | | `ci/container` | The container a job runs in, shared by the runner and `vole workflow run` | | ||
| 176 | | `ci/execute` | The execution interface a job runs behind: one implementation per kind of environment | | ||
| 177 | | `ci/container` | The OCI implementation: the container a job runs in, shared by the runner and `vole workflow run` | | ||
| 177 | 178 | | `ci/cache` | The per-repository job cache: namespaces, environment, and eviction | | |
| 178 | 179 | | `server` | Network listeners and web pages, with adapters for SSH, Git HTTP, sites, and hooks | | |
| 179 | 180 | ||
| @@ -191,6 +192,13 @@ workflow, or references a definition under `.vole/images`, and the runner execut | |||
| 191 | 192 | it in a container. The runner pulls or builds the image and owns the container | |
| 192 | 193 | runtime; the server only pins the image and definition and records what ran. | |
| 193 | 194 | ||
| 195 | Where the steps run is behind one interface, `ci/execute.Executor`. The container is | ||
| 196 | one implementation; a job that needs a guest of its own — a macOS or Windows machine, | ||
| 197 | or a Linux microVM — is another, and the runner, the queue, the log, the cache, and | ||
| 198 | the record do not change for it. An executor states what it can honour (a network, a | ||
| 199 | service beside the job, resource limits) and the runner refuses a job that asks for | ||
| 200 | more, so a workflow is never quietly given less than it declared. | ||
| 201 | |||
| 194 | 202 | ## Next | |
| 195 | 203 | ||
| 196 | 204 | - [Backup and restore](docs/backup-and-restore.md) — protect the authoritative state | |