FilOz operates RunsOn Flex in AWS us-west-2 (Oregon) for participating repositories in filecoin-project and FilOzone. This guide covers how to choose a runner, update a workflow, and verify the result.
The RunsOn GitHub App receives queued GitHub Actions jobs. The RunsOn service on ECS Fargate processes those jobs and starts temporary EC2 runners. Each runner executes one job and its instance is terminated afterward. RunsOn Flex architecture
These configurations have been used in Filecoin CI. Start with the smallest profile that fits the workload, then check runtime and resource usage on a PR. Each profile below uses a 64 GiB gp3 root disk (volume=64gb:gp3).
| Use case | Architecture | vCPU | RAM | family |
image |
|---|---|---|---|---|---|
| Small tests | x64 | 4 | 8 GiB | c6a+c7a |
ubuntu24-full-x64 |
| Larger builds and tests | x64 | 8 | 16 GiB | c6a+c7a |
ubuntu24-full-x64 |
| Parallel integration tests | x64 | 16 | 32 GiB | c6a+c7a |
ubuntu24-full-x64 |
| Memory-intensive tests such as Lotus NI-PoRep | x64 | 16 | 64 GiB | m6a+m7a |
ubuntu24-full-x64 |
| Small ARM64 tests | ARM64 | 4 | 8 GiB | c7g+c8g |
ubuntu24-full-arm64 |
| Larger ARM64 builds and tests | ARM64 | 8 | 16 GiB | c7g+c8g |
ubuntu24-full-arm64 |
builtin-actors example · Lotus profiles
In c7a.2xlarge, c is the series, 7 is the generation, a is the processor option, and 2xlarge is the size within that family. C5, C6, and C7 are successive generations of the compute-optimized C series. The size sets CPU and memory within a family. For example, c7a.2xlarge has 8 vCPU and 16 GiB RAM, while m7a.2xlarge has 8 vCPU and 32 GiB RAM. AWS naming conventions · C7a specifications · M7a specifications
| Part of name | Meaning | Examples |
|---|---|---|
c series |
Compute-optimized | c5, c6a, c7i, c8g |
m series |
General-purpose, with more RAM per vCPU than the C families in the table above | m6a, m7a |
g series |
GPU-equipped instances used for graphics and accelerated compute | g4dn, g5, g6, g6e |
a option |
AMD x64 processor | c6a, c7a |
i option |
Intel x64 processor | c6i, c7i |
g option |
AWS Graviton ARM64 processor | c7g, c8g |
d / n options |
Local instance storage / network and EBS optimization | c8gd, c7gn |
Match the instance architecture to the image and any native binaries the job uses. For example, select ubuntu24-full-arm64 with c7g or c8g.
C5 uses Intel Xeon x64 processors. These sizes are useful when comparing Intel and AMD runners with the same CPU and memory allocation.
| EC2 instance | vCPU | RAM |
|---|---|---|
c5.large |
2 | 4 GiB |
c5.xlarge |
4 | 8 GiB |
c5.2xlarge |
8 | 16 GiB |
c5.4xlarge |
16 | 32 GiB |
For a comparison run on a specific C5 instance, use its full type in the RunsOn label, for example family=c5.xlarge. AWS C5 specifications
These x64 instance types each have one NVIDIA GPU. The GPU memory column uses the values reported in AWS's EC2 instance specifications. CUDA compute capability describes the GPU's hardware target.
| EC2 instance | GPU | vCPU | System RAM | GPU memory | CUDA compute capability |
|---|---|---|---|---|---|
g4dn.xlarge |
NVIDIA T4 | 4 | 16 GiB | 16 GiB | 7.5 (sm_75) |
g5.xlarge |
NVIDIA A10G | 4 | 16 GiB | 22 GiB | 8.6 (sm_86) |
g6.xlarge |
NVIDIA L4 | 4 | 16 GiB | 22 GiB | 8.9 (sm_89) |
g6e.xlarge |
NVIDIA L40S | 4 | 32 GiB | 44 GiB | 8.9 (sm_89) |
AWS accelerated instance specifications · NVIDIA CUDA compute capabilities
Select a GPU instance and a compatible image for tests that execute kernels on the GPU. The Rust proofs GPU test uses ubuntu24-gpu-x64 and a 64 GiB gp3 root disk. It requests On-Demand capacity with spot=false and uses family=g6e.xlarge+g6.xlarge+g5.xlarge+g4dn.xlarge. Match the test's CUDA targets and memory needs before reusing the same candidate list. Rust proofs migration
family selects the hardware. image selects the OS and preinstalled software. The following Ubuntu 24.04 images are published by RunsOn.
| Image | Architecture | Preinstalled components | Use it for |
|---|---|---|---|
ubuntu24-full-x64, ubuntu24-full-arm64 |
x64, ARM64 respectively | GitHub Actions runner, Docker, Git, Python, Node.js, Java, Rust, GCC, Clang, CMake, and common tools | Builds and tests that use the preinstalled toolchains |
ubuntu24-minimal-x64, ubuntu24-minimal-arm64 |
x64, ARM64 respectively | GitHub Actions runner, Docker with Buildx and Compose, Git, and Python 3 | Container-based jobs and jobs that install their toolchains in the workflow |
ubuntu24-gpu-x64 |
x64 | Full x64 image software plus the NVIDIA driver, CUDA Toolkit, and NVIDIA Container Toolkit | Tests that use NVIDIA GPUs, including CUDA workloads in Docker |
RunsOn Linux images · RunsOn GPU images · Image build configuration
RunsOn rebuilds its Linux images on a 15-day schedule. Exact package versions can change between builds and the package lists can differ by architecture. Check required versions in a test run with commands such as docker --version or gcc --version. On GPU runners, use nvidia-smi for the GPU model and driver and nvcc --version for the CUDA compiler version. Keep version-specific setup in the workflow when the job depends on it.
For repository-specific dependencies, a job can request an approved custom AMI with ami=. Curio uses a custom AMI with YugabyteDB, PostgreSQL 18 and the Harmony test schema, Lotus, and proof parameters. Curio's .github/runs-on.yml records the AMI used by its test workflow. Curio CI image build guide
For a repository with the FilOz RunsOn app installed, set runs-on: on the job that should use the EC2 runner. For example, this matrix requests a 4 vCPU x64 instance with 8 GiB of RAM and a 64 GiB root disk per job.
jobs:
test:
strategy:
matrix:
suite: [unit, integration]
runs-on: runs-on=${{ github.run_id }}-${{ github.run_attempt }}-test-${{ strategy.job-index }}/env=production/cpu=4/ram=8/family=c6a+c7a/image=ubuntu24-full-x64/volume=64gb:gp3
steps:
- run: echo "Running ${{ matrix.suite }} tests"Use a distinct job identifier such as test in each job definition. In a matrix, strategy.job-index distinguishes the jobs within that definition.
| Label | What it controls |
|---|---|
runs-on=… |
The unique label used to match the runner to the job. |
env=production |
The RunsOn environment that handles the job. |
cpu=4 |
Requested vCPU count. |
ram=8 |
Requested memory in GiB. |
family=c6a+c7a |
Eligible EC2 instance families. Use a full instance type such as c7a.xlarge to request a specific model. |
image=ubuntu24-full-x64 |
Runner image and architecture. |
ami=ami-… |
An approved AMI ID to boot directly. |
volume=64gb:gp3 |
Size and type of the root EBS volume. |
spot=false |
Requests On-Demand instead of Spot capacity. |
Family names joined with + provide more capacity options. With family names, their order does not set launch priority. RunsOn label reference
Some repositories generate the workflow's runner settings. For example, Lotus defines them in cmd/ci/main.go and passes them to the workflow through its test matrix. Update the profile there when tuning a Lotus job. Lotus runner configuration
- Run the affected workflow on a PR. In Actions, open the job and check Set up job for the runner details, including the EC2 instance type when available.
- Check the RunsOn summary at the end of the job for CPU usage, peak memory, peak filesystem usage, and estimated cost when reported. Compare with a run of the same test suite and record the job links in the PR.
- If the job stays queued, ask a repository maintainer to confirm that the RunsOn app covers the repository and that the workflow targets the expected environment. If those match, share the run link with the FilOz CI maintainers so they can check launch errors, AWS quotas, and instance availability. RunsOn troubleshooting