runs-on to a Ravion label, and Ravion starts a fresh runner for that one job, in the execution environment the label names.
Quick setup
- Connect your GitHub organization and AWS account, then create a dedicated CI execution environment. See Requirements.
- Use
type=sandboxwithcpu=auto,memory=autoanddisk=autofor automatic sizing. - Add
interruptible=trueonly to jobs that are safe to stop and rerun from the beginning. This allows Spot hosts; leave it off for jobs that publish, deploy or push.
Set up Ravion runners with automatic sizing and Spot where safe.
github-actions with your execution environment’s given ID or unique ID, and test in the label’s id with a distinct name for each job. Keep the run ID, run attempt and matrix index expressions so concurrent jobs don’t share a label. See Unique labels.
How it works
- GitHub sends Ravion a webhook when a job using either Ravion label format is queued. See Ravion label format.
- Ravion registers a just-in-time runner for that job only, and starts a sandbox or EC2 instance for it in your execution environment.
- The runner picks up the job, runs it, and is removed when the job ends. Each job gets a fresh runner. On sandboxes, its disk starts from an earlier run’s saved disk unless you set
disk_cache=off. See Disk cache.
When GitHub’s webhooks are late
GitHub’s webhooks sometimes arrive late or not at all, especially during GitHub incidents. Ravion doesn’t rely on them alone. It keeps checking GitHub for queued jobs that use Ravion labels and starts runners for them, so a delayed or dropped webhook doesn’t leave your jobs stuck in Queued. You don’t need to configure anything or rerun anything. GitHub still assigns every job to a runner. If GitHub Actions stops handing out jobs entirely, no runner can start them, and Ravion picks them up as soon as GitHub recovers.Startup time
In our benchmarks, these are the p50 times for a sandbox job, from GitHub queueing it to its first step:
Public-repository jobs take a few seconds longer.
For private repositories, Ravion takes the job only once its sandbox is up, so while a host boots the job shows Queued in GitHub, not In progress. Public-repository jobs are taken right away for identity checks, so they show In progress while the host boots.
To avoid boot waits after quiet periods or between bursts of jobs, keep hosts on hand with sandbox settings. See Bursty fan-out workloads.
Requirements
- GitHub App. The Ravion GitHub App is installed on a GitHub organization and connected to your Ravion organization. Runners register at the organization level, so personal accounts aren’t supported.
- AWS account. Your AWS account is connected in Settings / AWS accounts. Sandboxes require AWS account role policy 1.0.52 or later. See Update your AWS permissions.
- Execution environment. Create one in that AWS account in Settings / Execution environments. Ravion doesn’t create it for you. Set the label’s required
eevalue to its given ID (for example,ee=github-actions) or unique ID (ee=ee_…). Both refer to an execution environment in your organization; a job whoseeedoesn’t match one fails. The first sandbox job sets up the environment’s sandbox hosts, so there’s nothing else to provision. - Linux jobs. Runners are Linux only. Sandboxes run x86_64 Ubuntu 24.04, and EC2 runners run Amazon Linux 2023 on x86_64 or ARM. macOS and Windows runners aren’t supported, so keep those jobs on GitHub-hosted runners. They can run in the same workflow as your Ravion jobs.
Use a dedicated execution environment
Run GitHub Actions in its own execution environment, not the one your production services use. Ideally, put it in a separate AWS account, or at least a different region, from production. To pick the region, see Choose a region. CI jobs run code from every branch and from third-party actions. A separate environment keeps those jobs in their own VPC, away from production resources. A separate AWS account also keeps AWS permissions and service quotas apart, so a busy CI day can’t use up capacity production needs. Ravion creates a runner group named Ravion in your GitHub organization the first time it registers a runner. The group is available to all private repositories in the organization.Labels
A Ravion label is either one label that starts withravion/ and contains
key=value segments separated by /, or a list with a bare ravion label and
separate key=value labels. Keep the Ravion label or list as the job’s only
runner configuration; don’t combine it with self-hosted or other labels.
You can also write the quick setup label as a list. The order of the entries doesn’t matter:
id value unique for each concurrent job.
Sandbox
Mark jobs that are safe to run twice as
interruptible=true, such as tests, lint and builds. Leave it off for jobs that publish, deploy or push.
Automatic sizing
Self-sizing jobs: stop guessing machine sizes. Setcpu, memory or disk to auto and Ravion sizes the sandbox for you.
- Automatic CPU, memory and disk work with or without
interruptible=true. You can mix automatic and fixed values. - Automatic sizing starts at the size of the runner the job last ran on before Ravion, when its labels say how big that was, such as
blacksmith-8vcpu-ubuntu-2404. Otherwise it starts at 4 vCPU, 16 GiB memory and 40 GiB disk. Fixed values stay fixed. - Sizes are learned per repository, workflow file and job name.
- For interruptible jobs, Ravion can test smaller sizes. If a job runs out of memory or disk, Ravion gives it more and reruns it automatically, up to twice per workflow run. GitHub shows the failed attempt, then the rerun.
interruptible off:
ravion analytics ci rightsize, and the listCIAnalyticsRightsize API) only cover fixed-size jobs. A job whose latest run used cpu=auto or memory=auto gets no recommendation, because automatic sizing already picks its size each run. If all your jobs are auto-sized, an empty list is expected: it doesn’t mean there’s no data or that every job is sized right. The API’s meta.autoSizedExcluded counts the jobs left out. To see what an auto-sized job booked and used, open it in CI analytics, or use ravion analytics ci jobs (bookedCpu, bookedMemoryGib, peakVcpu, peakMemoryMib) or ravion analytics ci workloads.
CPU, memory and limits
cpu is what the job books, and what its AWS cost in Usage is based on. The Ravion fee is per job minute, whatever the size.
nproccan show more vCPUs thancpu. The extra vCPUs are best effort. They’re part of the host you pay AWS for, but Usage attributes the job’s cost bycpu. If a tool sizes its worker pool fromnproc, set the worker count explicitly.- Sandboxes have no swap. A job that runs out of memory hits the Linux out-of-memory killer.
cpugoes up to 32. Withauto, memory goes up to 256 GiB and disk up to 2,000 GiB. A fixed size that fits no host fails the job.
If a Spot host is reclaimed
When AWS reclaims a Spot host, Ravion moves each running job live to another host, where it carries on without a restart or retry. In rare cases, such as when a move can’t finish before AWS’s deadline, Ravion runs the same GitHub job again from the start on a new runner, and the last retry runs On-Demand. Jobs withoutinterruptible=true never run on Spot.
When a job ran again, its setup step shows a line such as Ravion runner retry: attempt=2 retries=1 previous_failure=spot_interrupted. The AWS cost in Usage includes the interrupted attempt. The Ravion fee counts only the attempt that finished.
EC2
EC2 runners start a whole instance per job, boot Amazon Linux 2023, and have no disk cache. If AWS reclaims an
ec2-spot instance, GitHub fails the job.
The runner image
Sandbox jobs boot an x86_64 Ubuntu 24.04 image with the apt packages GitHub’subuntu-24.04 runner image installs. These include build-essential, Clang 18 and the native build headers common gems, wheels and Node.js packages compile against, such as zlib1g-dev, libssl-dev, libffi-dev, libyaml-dev, libpq-dev, libmysqlclient-dev, libxml2-dev and libreadline-dev. It also has Node.js 24 with npm and Yarn 1, Go 1.26, Rust, Python 3.12, GitHub CLI (gh), Docker with Docker Compose, the AWS CLI, the PostgreSQL client, Google Chrome, jq and yq. Like GitHub’s images, apt-get install doesn’t ask for confirmation. See What runs inside a sandbox for the full list.
Sandbox jobs set NODE_OPTIONS to --max-old-space-size=<MiB>, 75% of the sandbox’s memory, so Node can use the memory the job runs with. GitHub-hosted runners leave NODE_OPTIONS unset. A NODE_OPTIONS your workflow sets replaces Ravion’s for that step.
To run a command without it, unset it for that command:
NODE_OPTIONS: "" in the workflow gives an empty value, not an unset one. Node treats the two the same, but tests and tools that check whether NODE_OPTIONS is set don’t.
The image’s Node.js 24 and Go 1.26 are in the Actions tool cache, so actions/setup-node and actions/setup-go asking for those versions use them without a download. Every other version starts out missing from the tool cache.
The image is still much smaller than GitHub’s hosted runner images. Their ubuntu-latest also comes with several versions each of Node.js, Python, Java, Go, Ruby and .NET, plus databases and cloud tools. The Ravion image has no Ruby, Java, .NET, PHP or pnpm. If a job needs something missing, install it natively in a run step:
- System packages with
apt-getandsudo, for examplesudo apt-get update && sudo apt-get install -y python3-pip. - Language versions with the usual
setup-*actions, such asruby/setup-ruby,actions/setup-java,actions/setup-pythonorpnpm/action-setup. - Anything else by downloading its binary or installer.
Firewall rules in containers
Sandboxes run their own Linux kernel, not GitHub’s. That kernel supports the legacy iptables tables (filter, mangle and nat) for both IPv4 and IPv6. Its nftables support has no IPv6. On the sandbox itself, iptables and ip6tables already use the legacy tables.
Container images that install iptables, such as Debian 11 or later and Ubuntu 22.04 or later, use the nftables backend by default. If a container started with --cap-add=NET_ADMIN adds its own firewall rules, its ip6tables commands fail with errors like these:
Dockerfile after iptables is installed:
iptables-legacy and ip6tables-legacy directly. A container with its own network namespace, such as one on a Docker bridge network, keeps its rules apart from the sandbox’s and Docker’s. A container started with --network host shares the sandbox’s firewall, so its rules can break the runner’s or Docker’s networking. A container started with --network container:<name> shares that container’s firewall. The same image keeps working on GitHub-hosted runners, whose kernels have the legacy tables too.
The kernel also lacks the iptables raw table and the comment, multiport, mark and statistic matches. Rules that use them fail with either backend.
The job user
As on GitHub’s hosted runners,run steps that run directly on the sandbox run as the runner user (user ID 1001), not as root. HOME is /home/runner, and the workspace is under /home/runner/work. The user can run sudo without a password and is in the docker, adm and systemd-journal groups, so docker works without sudo.
Commands that write outside the workspace and /home/runner need sudo. Examples are apt-get and creating directories under /var, /opt or /etc. To give a job a directory of its own, create it once and hand it to runner:
sudo, these commands fail with Permission denied.
In a container: job, steps run inside the job’s image instead, as that image’s user and with its tools. The image might have no runner account or sudo, so this section doesn’t apply there. Many images run as root, so their steps don’t need sudo.
Before November 17, 2026, sandbox jobs ran as root from /root/actions-runner/_work. If a workflow written for that fails with Permission denied, add sudo to the commands that need root. The first run after the change starts with a fresh disk cache.
The host’s CPU
Inside a sandbox,/proc/cpuinfo and lscpu show a generic CPU model: Intel(R) Xeon(R) Processor on an Intel host, or AMD EPYC on an AMD host. Firecracker, the virtual machine monitor sandboxes run on, replaces the real model name so a sandbox looks the same on every host. To find out what your job ran on, use these environment variables instead:
Both describe the host the job started on. The Set up job step also shows them under the sandbox’s size, for example
Host: c8id.8xlarge · Intel(R) Xeon(R) 6975P-C. On type=ec2 runners, /proc/cpuinfo already shows the real model, and the Set up job step shows it as CPU: ….
run steps that run directly on the sandbox get both variables. Docker containers don’t, including services: and container:, so a job whose steps run in a container: can’t read them. To record the host for such a job, drop container: and start the container from a run step on the sandbox instead. That step can forward the values, for example with docker run -e RAVION_HOST_INSTANCE_TYPE -e RAVION_HOST_CPU_MODEL ….
When you compare job times with another runner, compare jobs that ran on the same CPU model. Sandbox hosts mix instance types, such as c8id, m8id, r8id, i7i and i7ie, and their processors differ in speed.
AWS credentials
Each sandbox job gets its own IAM role, served at the standard instance metadata endpoint (169.254.169.254, IMDSv2 only). The AWS CLI and SDKs in run steps find it with no setup. Set AWS_REGION yourself, because the endpoint doesn’t provide one.
Docker containers in the job, including services: and container:, can’t reach the endpoint, and their requests time out. See AWS credentials for how to give containers credentials without printing them in the job log, and how to use GitHub OIDC.
Docker isn’t logged in to any registry when a job starts, and the job role has no IAM policies by default. To push images or Buildx caches to Amazon ECR, see Amazon ECR.
If a job hits a problem you can’t explain — a tool that won’t install, a missing kernel feature, or anything unexpected — contact support.
Unique labels
GitHub can hand a queued job to any idle runner whose labels match. Every job needs anid that is unique to it, so a runner Ravion started for one job never picks up another. Build it from the run ID, the run attempt, the job’s name and its matrix index:
id.
If two unfinished jobs share a label, Ravion fails both, and each job’s annotation names the other job. Jobs from an earlier attempt of the same run don’t count, because GitHub only reruns a run after all of its jobs have finished.
Invalid labels
Invalid configuration in either label format fails a private job, and the job’s annotation says which key is wrong. Unrelated extra labels (for example,self-hosted) or multiple Ravion namespaces leave the job queued.
Compared with RunsOn
RunsOn also runs GitHub Actions jobs in your AWS account, but it starts one EC2 instance per job. Each job gets a whole instance of a fixed EC2 size, billed from launch until the job ends. Ravion runs many jobs as sandboxes on shared hosts, so its cost depends on how well those hosts are used, and that improves as you run more jobs.Why Ravion gets more efficient at scale
- Sizes that fit the job. A RunsOn job rounds up to the next EC2 size, so a job that needs 5 vCPU pays for 8. With automatic sizing, Ravion sizes each sandbox in whole vCPUs and 1 GiB of memory, rather than rounding up to an EC2 size. Jobs without
interruptible=truekeep extra memory and disk headroom. - Slightly tighter fits. Automatic sizing also gives a job a little less than its peak when tests show that doesn’t noticeably slow it down.
- Shared reserved compute. Most jobs don’t hit their CPU peak at the same moment. Ravion lets jobs on the same host share their reserved compute when that doesn’t affect their performance, so each host runs more work.
- Better packing with more jobs. The more jobs that run at once, the more ways Ravion has to fill each host. Short jobs fill the gaps beside long ones, so fewer hosts sit partly empty.
- Cheaper cache reads. When a disk chunk is already on a neighboring host, Ravion reads it from there instead of from S3. More hosts mean more of these reads, and fewer S3 requests.
- Lower-cost instance types. Ravion picks the lowest-cost instance types that fit the work, across Spot pools, and rarely needs storage-optimized instances.
Why a few runs don’t show the real cost
RunsOn costs about the same per job at any volume. Ravion doesn’t, so a short trial overstates its cost:- Hosts launch for one run. With no other work running, each burst of jobs boots its own hosts. As jobs finish at different times, the hosts sit partly empty until the slowest job ends. At real volume, other runs fill that space.
- Sizing hasn’t learned yet. Automatic sizing starts generously and gets tighter over the first runs of each job.
- There’s nothing to share. Shared compute and neighboring-host cache reads need other jobs and hosts running at the same time.
cpu=auto, memory=auto and disk=auto. Run it for a few days of normal traffic. Then compare the same days: Ravion’s AWS and Ravion costs in Usage against RunsOn’s whole bill, including EBS volumes, public IPv4 addresses, its control plane and its license.
Track cost and usage
Go to Settings / Execution environments and choose your CI environment.- Usage shows what your jobs cost. In By pipeline, expand GitHub Actions Runner to see runs, minutes, AWS cost and Ravion cost for each repository, then each workflow. Time to start shows how long jobs waited for capacity and for their runner to start. Costs show up about an hour after jobs run.
- Sandbox hosts shows the hosts running now, how many jobs they’re running, and each host’s CPU and memory use. Hover a host’s chart to see the jobs on it.
Public repositories
Jobs from public repositories, including pull requests from forks, run only on sandboxes, and only when you allow them:- Go to Settings / Execution environments, choose the environment, then open Config / Sandboxes.
- Turn on Allow public repositories.
GITHUB_TOKEN restore a disk but never save one. Automatic sizing works the same as for private repositories, including automatic reruns for interruptible jobs only. Jobs from public repositories with an invalid label, or that ask for EC2, stay queued.
Next steps
AWS credentials
The job’s IAM role, Docker containers and GitHub OIDC.
Migrate workflows
Every change to make when moving jobs.
Caching
Disk cache, Actions cache and artifacts in S3.
Sandboxes
How the sandbox fleet, disk cache and Spot hosts work.
Sandbox settings
Machine types, idle hosts and host storage.