Skip to content
Source
Sign inSign up

Pick where jobs run

CI / Speed and debugging

Pick where CI jobs run

Your CI jobs run on Ravion, the runner of the forge, in fresh VMs on AWS. To use the machines of a vendor, send the jobs of a repository, or one job, to a runner app.

5 min read

RunnerNameWhere a job runsWho bills it
RavionravionIn a fresh VM on AWS, through Ravion. It is the default. It runs jobs only after a site admin set it up.Source, in CI minutes
A runner appThe slug of the appIn a fresh VM of a vendor, who runs Source CI jobs as a Source app. See Run Source CI jobs on your machines.The vendor

To change the runner of a repository, you must be an admin of the repository. To pick the runner of one job, change its workflow file.

1. Pick the runner of the repository

  1. Open Settings, then CI under Code (/@<owner>/<repo>/settings/ci).
  2. In the card Runner, limits and approvals, pick a Runner:
    • Site default (Ravion) or Ravion. Both run the jobs on Ravion.
    • An app that is installed on the repository with the permission ci:runners. It shows as its name and its slug.
  3. Click Save runner.

Or use a terminal. Replace fast-runner with the slug of your runner app:

src ci settings --runner fast-runner
src ci settings --clear-runner

--clear-runner goes back to Ravion. REST and MCP do the same: PUT /api/v1/repos/<owner>/<repo>/ci/settings with { "runner": "fast-runner" }, or null for Ravion, and the tool set_ci_settings.

The forge refuses a name that is not ravion or the slug of an app installed on the repository with ci:runners.

2. Send one job to another runner

Set runsOn on the job. It wins over the runner of the repository. Replace fast-runner with the slug of your runner app:

import { defineWorkflow, pullRequest, setup } from '@tanstack-source/ci'

export default defineWorkflow('ci', { on: [pullRequest({ branches: ['main'] })] }).job('e2e', {
  runsOn: 'fast-runner',
  image: 'browser',
  egress: ['registry.npmjs.org'],
  steps: [
    setup.pnpm(),
    { name: 'Install', run: 'pnpm install --frozen-lockfile' },
    { name: 'E2E tests', run: 'pnpm test:e2e' },
  ],
})
  • runsOn takes ravion, or the slug of a runner app that is installed on the repository.
  • A pull request run takes runsOn from the base branch, as it takes its secrets and egress. So a pull request can not move its jobs to another runner before it merges.
  • When runsOn names no runner, the job fails before it starts. Its reason begins with "<name>" is not a runner, so the job can not start.
  • cloudflare is not a runner. A job with runsOn: 'cloudflare', or a repository with the runner cloudflare, fails before it starts.
  • When runsOn names an app that is not installed on the repository with ci:runners, the job fails, and its reason says so.

3. See where the jobs run

  • src ci settings prints the runner of the jobs that name none, like Runner: ravion.
  • The Billing page counts the jobs of each runner on rows of their own, like Ravion large, 4 vCPU and Runner app large, 4 vCPU. See See which containers ran.
  • When a job cannot start on its runner, it fails at once, and its reason names the runner. For example: Ravion is not set up on this forge (missing: the API key).

Done

Push a commit. Its jobs run on the runner that you picked, and src ci settings names that runner. A change of the runner holds for the runs that start after it.

How the forge picks the runner

For each job, the first of these that names a runner wins:

  1. The runsOn of the job.
  2. The runner of the CI settings of the repository.
  3. Ravion.

Two kinds of jobs never run on a runner app, whatever they name. When their runner is an app, they run on Ravion:

  • The jobs of a hidden workflow.
  • The jobs of an untrusted run, like a pull request from a fork.

What stays the same on every runner

  • The images and the sizes: node or browser, with the vCPU and the memory of the size of the job.
  • The steps, the logs, the findings, the artifacts and the checks.
  • The rules of secrets and egress. No secret value and no job token goes into the machine of the job. See On every runner.
  • The time limit of the job, and src ci exec and src ci shell.
  • A lost machine is a lost container, for example a spot host that AWS took back. The forge runs the cell again, in a new job on a new machine. A cell gets at most 3 machines: when the third is lost too, the cell ends as an error.
  • The queue of the account. A job past a limit waits in a lane of its own, apart from the containers of the software factory. See Limits.

Disks on Ravion

A trusted or protected run keeps a disk for each repository, so the next VM has the CI image already:

  • The jobs of a hidden workflow keep a second disk, apart from the other jobs.
  • A job with docker: true keeps a disk of its own too.
  • An untrusted run starts on a clean disk, and Ravion keeps none of it.

What Ravion costs

Ravion counts in CI minutes, by the size of the job:

Size on RavionCI minutes for each minuteList price for each minute
small, 1 vCPU1.444$0.00931
medium, 2 vCPU1.786$0.01152
large, 4 vCPU2.469$0.01593

In a public repository, a small job is free, up to 20,000 CI minutes for each account in each billing period. See Free CI for public repositories.

A runner app counts no CI minutes on Source: the vendor bills its machines. See The prices.