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.

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

ci/agent/proc_unix.go → ci/container/proc_unix.go +1−1

@@ -1,6 +1,6 @@
1 1 //go:build unix
2 2
3 package agent
3 package container
4 4
5 5 import "syscall"
6 6