From 0f5231b3a19d2461772592681108bd653fc71920 Mon Sep 17 00:00:00 2001 From: Rahul Varghese Date: Thu, 1 Oct 2026 13:51:37 +0530 Subject: [PATCH] =?UTF-8?q?NR5:=20the=20README=20says=20what=20this=20is?= =?UTF-8?q?=20=E2=80=94=20your=20own=20runners,=20in=20your=20own=20accoun?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nimbus-runners is the standalone self-hosted option: GitHub's webhook, the fleet, the job, and nothing else in that path. The README says so, lists what the fleet delivers with the numbers the status file records, gives the three steps to use it, and sets it beside Orunbase managed runners. Orun-Task: NR-6 Co-Authored-By: Claude Fable 5.1 --- README.md | 63 ++++++++++++++++++- .../IMPLEMENTATION-STATUS.md | 2 +- work/epics/nimbus-runners-baseline/epic.yaml | 2 +- work/tasks/NR-6.TaskContract.yaml | 14 +++++ 4 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 work/tasks/NR-6.TaskContract.yaml diff --git a/README.md b/README.md index f462680..1a5c1ab 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,64 @@ # nimbus-runners -An Orun baseline for ephemeral, spot-priced, self-hosted GitHub Actions runners on AWS, built on [github-aws-runners/terraform-aws-github-runner](https://github.com/github-aws-runners/terraform-aws-github-runner) with its own GitHub App. +Your own GitHub Actions runners, in your own AWS account, on spot instances: one fresh VM per job, gone when the job ends. -Status: design. The epic lives in [`work/epics/nimbus-runners-baseline/`](work/epics/nimbus-runners-baseline/). +This is an [Orun](https://orunbase.com) baseline built on [github-aws-runners/terraform-aws-github-runner](https://github.com/github-aws-runners/terraform-aws-github-runner). It is the self-hosted option, and it stands alone: GitHub tells the fleet a job is queued, the fleet boots a runner, the job runs. Nothing else is in that path. No Orunbase service, no shared pool, no credential that leaves your account. + +``` +GitHub ── workflow_job ──► API Gateway ──► webhook λ ──► SQS ──► scale-up λ ──► EC2 spot (1 job, then terminated) + ▲ │ + └──────────────────────── runner registers with a single-use JIT config ◄────────┘ +``` + +## What you get + +| | | +|---|---| +| **Isolation** | One ephemeral instance per job, registered with a single-use JIT config. No runner is reused. | +| **Cost** | About $0.0008 per runner-minute (2 vCPU / 8 GiB spot, EBS and IPv4 included) against $0.006 on GitHub-hosted. Idle cost is about $4 a month. A monthly AWS budget alarm is part of the fleet. | +| **Burst** | 100 runners by default, across seven instance types and five availability zones, spot with on-demand fallback when a pool is empty. | +| **Start time** | A prebuilt image (`image/`) with the runner, Docker and Node baked in. No user data, no downloads at boot. | +| **Missed webhooks** | GitHub never retries a failed delivery. A sweeper re-requests failed `workflow_job` deliveries for jobs that are still queued. | +| **Blast radius** | Every role carries a permissions boundary; the deploy role can only touch resources under the fleet's prefix. The GitHub App key lives in SSM and never passes through Terraform state or CI. | + +Measured on [sourceplane/orun-cloud](https://github.com/sourceplane/orun-cloud), which has run its CI lanes here since 2026-09-30: + +| Measure | Result | +|---|---| +| 50-job burst | 50 of 50 passed | +| 51-lane verify, cold | 51 of 51 passed; from the plan finishing to a lane's first step, p50 74 s | +| A production main push (17 lanes) | about $0.07 on the fleet against $0.46 on GitHub-hosted | + +## Use it + +1. **Fork or instantiate** this repository and set your prefix, labels, allowed repositories, runner cap and budget in [`infra/fleet/terraform/local.tf`](infra/fleet/terraform/local.tf). +2. **Follow [`BOOTSTRAP.md`](BOOTSTRAP.md)**: the AWS role, your GitHub App, its three values into SSM, the webhook URL, the quotas, the image. +3. **Point a workflow at it:** + + ```yaml + runs-on: [self-hosted, linux, x64, nimbus] + ``` + +The fleet is one Terraform root (`infra/fleet/terraform`). This repository deploys it with `orun` through the [`stack-granite`](https://github.com/sourceplane/stack-granite) `terraform-aws` composition, with GitHub OIDC for AWS and no long-lived keys; the root is plain Terraform and applies with any backend if you would rather run it yourself. + +## What is in here + +| Path | What | +|---|---| +| `infra/fleet/` | the fleet: network, runner module, lambdas, budget, the webhook-redelivery sweeper | +| `image/` | the Packer image and its provisioning script | +| `.github/workflows/runner-ami.yaml` | builds the image and publishes its id to SSM | +| `BOOTSTRAP.md` | the steps that need a person | +| `work/` | the epic, design and as-built status ([`work/epics/nimbus-runners-baseline/`](work/epics/nimbus-runners-baseline/)) | + +## Self-hosted or managed + +| | nimbus-runners (this repository) | Orunbase managed runners | +|---|---|---| +| Where jobs run | your AWS account | an Orunbase-operated cell | +| GitHub App | yours | the Orunbase App | +| Who decides when a runner starts | GitHub's webhook, the moment a job is queued | Orunbase, when the plan says the job can run | +| What you operate | the fleet, its image, its quotas | nothing | +| Depends on Orunbase at run time | no | yes | + +Choose this one when you want the runners inside your own boundary and nothing between GitHub and your account. It does not change when managed runners change, and it never requires them. diff --git a/work/epics/nimbus-runners-baseline/IMPLEMENTATION-STATUS.md b/work/epics/nimbus-runners-baseline/IMPLEMENTATION-STATUS.md index e0a0eff..f7701ef 100644 --- a/work/epics/nimbus-runners-baseline/IMPLEMENTATION-STATUS.md +++ b/work/epics/nimbus-runners-baseline/IMPLEMENTATION-STATUS.md @@ -9,7 +9,7 @@ As-built ≠ intent. This file records what actually shipped, and every place th | NR2 — the fleet | ✅ applied to prod; App `sourceplane-nimbus-runners` installed | NR-3: [#4](https://github.com/sourceplane/nimbus-runners/pull/4), [#5](https://github.com/sourceplane/nimbus-runners/pull/5), [#6](https://github.com/sourceplane/nimbus-runners/pull/6) | | NR3 — the image | image live; burst test waits on the Lambda quota | NR-4: [#7](https://github.com/sourceplane/nimbus-runners/pull/7), [#8](https://github.com/sourceplane/nimbus-runners/pull/8), [#10](https://github.com/sourceplane/nimbus-runners/pull/10), [#13](https://github.com/sourceplane/nimbus-runners/pull/13), [#14](https://github.com/sourceplane/nimbus-runners/pull/14), [#15](https://github.com/sourceplane/nimbus-runners/pull/15), [#16](https://github.com/sourceplane/nimbus-runners/pull/16) | | NR4 — orun-cloud on the fleet | **cut over 2026-09-30**; 7-day watch running | NR-5: [orun-cloud#1732](https://github.com/sourceplane/orun-cloud/pull/1732) (merged), trial [#1730](https://github.com/sourceplane/orun-cloud/pull/1730) (closed) | -| NR5 — the baseline | | | +| NR5 — the baseline | the README positions the repository as the standalone self-hosted option (2026-10-01); `baseline-v1` tag and registration still open | NR-6 | ## Measurements diff --git a/work/epics/nimbus-runners-baseline/epic.yaml b/work/epics/nimbus-runners-baseline/epic.yaml index 945e0af..76b8926 100644 --- a/work/epics/nimbus-runners-baseline/epic.yaml +++ b/work/epics/nimbus-runners-baseline/epic.yaml @@ -35,4 +35,4 @@ spec: - name: "NR5 — the baseline" exitCriteria: - "baseline-v1 is tagged, registered with orun baseline register, and orun baseline new nimbus-runners builds a fresh fleet in a test account" - tasks: [] + tasks: [NR-6] diff --git a/work/tasks/NR-6.TaskContract.yaml b/work/tasks/NR-6.TaskContract.yaml new file mode 100644 index 0000000..aa9ae8d --- /dev/null +++ b/work/tasks/NR-6.TaskContract.yaml @@ -0,0 +1,14 @@ +apiVersion: orun.io/v1 +kind: TaskContract +metadata: + name: NR-6 + title: "The README says what this is: your own runners, in your own account" +spec: + goal: "A reader landing on the repository learns that nimbus-runners is the standalone self-hosted option, what it costs and delivers as measured, how to use it, and how it differs from Orunbase managed runners." + affects: + - "README.md" + - "work/**" + doneWhen: + - "the README states that no Orunbase service is in the job path and names the three steps to use the fleet" + - "every number in the README is one the status file records as measured" + gates: []