CI
Run GitHub Actions jobs in sandboxes on your own provider accounts or on Sandcovery's own capacity paid from your credits, and compare each job's cost with a GitHub-hosted runner.
Sandcovery CI runs GitHub Actions jobs only for an organization on Pro or the Enterprise plan.
Sandcovery CI runs your GitHub Actions jobs in sandboxes on your own provider accounts, or on Sandcovery's own capacity paid from your credits, with a fresh runner for each job. When a job whose runs-on is a Sandcovery slug queues and every free runner of its repository, slug, and operating system already has a job queued ahead of this one, Sandcovery starts a sandbox and registers it with GitHub as a self-hosted runner whose labels are that slug and the job's operating system. The runner of a GitHub organization sits in a runner group open to that repository alone, and the runner of a personal GitHub account registers on that repository, which has no runner groups. It takes exactly one job, and unregisters when the job ends, and Sandcovery then destroys its sandbox. A runner is free until it takes its job, so a job that queues while a runner of its repository is free starts without waiting for a new sandbox. The runner has Docker, Compose, and Buildx, and no two jobs share a runner or its filesystem.
Sandcovery ends a runner that has taken no job once 10 minutes have passed since its start, no queued job of its repository, slug, and operating system remains, and GitHub reports it idle. Before a queued job keeps an idle runner, Sandcovery asks GitHub about the job, and records it as GitHub reports it if GitHub never sent its start or end. A runner with less than 15 minutes left before its sandbox ends takes no queued job's place, so Sandcovery starts another runner for that job. Each runner sandbox ends after 1 hour, or at the API key's maximum TTL if that is shorter, even mid-job. When an owner unlinks the GitHub organization or personal account, Sandcovery ends each idle runner at once and removes each busy runner's labels, so GitHub gives it no other job, and ends it after its job completes. A runner serves only the link it started under, even when the Sandcovery organization or another one links the same GitHub organization or personal account again.
Before a job can run, an owner links your GitHub organization or personal account.
Run a job on Sandcovery
Set a job's runs-on to one slug, <provider>/<vcpu>x<memory_gib> with an optional routing suffix, as a create takes:
jobs:
test:
runs-on: sandcovery/4x16:cheapest
steps:
- uses: actions/checkout@v7
- run: make testThe slug alone picks each job's machine and provider. A provider name such as boxd pins that provider, and sandcovery routes the job across every provider that runs CI jobs. Either number may be n, meaning any value, as in a create. A slug with no suffix routes as :cheapest. GitHub sends a job to a Sandcovery runner only when its runs-on is a Sandcovery slug, so every other job keeps its runner.
A job runs on Linux. Add windows or macos to its runs-on, in any case, such as GitHub's own macOS, to run it on that operating system:
jobs:
test:
runs-on: [sandcovery/4x16:cheapest, windows]Sandcovery then routes the runner only to providers whose sandboxes run that operating system, as a create with that os does. A runner for a job that names no operating system holds the label linux. GitHub can give a Windows or macOS runner a job of the same slug that names no operating system, so when a workflow runs one slug on more than one operating system, add linux to its Linux jobs. A job that names more than one operating system gets no runner and is listed with that reason. So does a job whose runs-on names any other label, such as self-hosted, x64, or a second slug, since its runner would hold only the slug and operating system, and GitHub gives a runner only a job whose labels it holds.
Sandcovery CI runs no jobs from public repositories. Such a job is listed with that reason and gets no runner. For a GitHub organization, the runner group Sandcovery makes for each repository refuses public repositories as well, and a personal account has no runner groups, so Sandcovery checks a job's repository when the job queues.
A queued job whose repository you remove from the Sandcovery CI GitHub App's installation, or leave out when you move the installation from all repositories to selected ones, is listed with that reason too and gets no runner, since GitHub then sends Sandcovery no more word of it. So is each queued job of an installation you suspend or uninstall.
How a job is routed
Sandcovery routes a runner sandbox the way it routes a create, with these differences:
- The candidates are the providers that run CI jobs on the job's operating system: those you hold a credential for first, then Sandcovery's own capacity, paid from your credits at list price, for a provider whose terms allow it.
- The installation's API key creates the runner sandbox, so that key's spend limit, provider allowlist, concurrency cap, and maximum TTL apply.
- A
sandcoveryslug sends each job to the best CI you have right now, so you never set a provider order. A provider is held back while its status shows an outage or an uptime below 90% over the last 15 minutes. It is also held back for 15 minutes after it rate-limits a create of your organization, refuses one for capacity or quota, fails one, or fails a runner start for you, unless a later create on it succeeds. Each job tries the ready providers first, ranked by the slug's suffix, or by hourly price when it has none. It tries held-back providers only when no ready provider can run the job or every ready create failed, so a job still runs when every provider you have is held back. - Your own provider keys come first. When every key you hold is rate-limited or depleted, or no provider you route to can take the job, Sandcovery's own Amazon EC2 capacity runs it, billed in Sandcovery Credit at list price. A job whose slug pins another provider falls back the same way. This applies only when the installation key's provider allowlist is unset or includes Amazon EC2. When Sandcovery capacity can't take the job, because your credit can't cover it or it has no account for the job's operating system or size, Sandcovery tries your held-back providers, rate-limited ones included, before the job waits or is refused.
- When every candidate answers a create with a capacity, quota or rate limit, a 5xx, or a timeout, the job keeps its place and Sandcovery tries every candidate again after 1 minute, then after 2, 4 and 8 minutes, and every 10 minutes after that, until a runner starts or GitHub stops waiting for the job 24 hours after it queued. Each failed try is listed with the job.
- When a runner fails to start, Sandcovery falls back to the next candidate. Start fails when docker run fails or the runner does not log
Listening for Jobswithin 120 seconds.
Providers that run CI jobs
A provider runs CI jobs when all of these hold: its default image runs Docker from boot, since each runner runs as a container on its sandbox's own Docker; Sandcovery can both write a file to its sandboxes and run a command in them; and Sandcovery writes its files without putting a command's environment inside the command. Depot runs none. The CI runner column of the provider board shows each provider's answer and reason.
Sandcovery hands each runner sandbox a just-in-time config for that one runner through the provider's file API, as a file in the sandbox's home that the runner's start command reads and deletes before the runner starts. The config is good for one runner and one job, and it can't register another runner. For a GitHub organization the runner joins its repository's runner group, and for a personal account it registers on the repository itself. Where Sandcovery writes a provider's files through a command, the file's bytes go beside the command, on its standard input or in its own environment field. The config never goes inside a command, since a provider can log the commands it runs. The runner removes it from its environment before any job step runs.
Cost compared with GitHub-hosted runners
The CI page of the dashboard lists your organization's jobs, newest first, with each job's provider, wait, duration, and two costs:
- List-price cost is the runner sandbox the job ran on at its provider's list price, from the sandbox's start until it ends: so far while it runs, and final once it ends. Each job a runner ran shows the same cost. Your provider bills your own account, or your credits pay it when the runner ran on Sandcovery's capacity.
- GitHub-hosted cost is the same job on GitHub's smallest x64 Linux runner with at least the runner sandbox's vCPUs that lets a job run that long, at GitHub's per-minute price, with the duration rounded up to the whole minute. It reads Not started or Running until the job completes, and None when no GitHub-hosted runner with that many vCPUs lets a job run that long.
When Sandcovery started no runner for a job, the page says why in place of the provider, such as an API key that reached its spend limit. When the cause is a failure inside Sandcovery, such as a database error, the reason is the code internal, and the details go to Sandcovery's error tracking. GET /api/v1/ci/jobs returns the same jobs.