Self-hosted Runner

Registering and operating your own servers or Macs as CI/CD execution nodes instead of using cloud-hosted virtual machines, running tests and builds on fast local hardware without consuming monthly cloud CI quotas.

General Meaning

CI/CD platforms like GitHub Actions normally run test and build jobs on temporary cloud virtual machines (such as ubuntu-latest) billed by the minute.

A Self-hosted Runner is a daemon installed on hardware you own and manage (such as on-premises servers or Apple Silicon Macs) that polls or receives job dispatches from GitHub and executes CI workflows locally.

Why It Matters

  • Zero cloud CI quota consumption: Runs unlimited CI test suites without burning through GitHub Actions' 2,000 free monthly minutes or incurring overage charges.
  • Faster builds on dedicated hardware: High-performance local CPUs and NVMe SSDs complete builds and tests several times faster than small shared cloud VMs.
  • Access to local caches and LAN resources: Leverages local disk caches and internal network resources directly.

How the Site Factory Uses It

Introduced after a quota crisis on 2026-10-17 when 90% of GitHub Actions' monthly free minutes were consumed, the Site Factory runs all repository CI tests on self-hosted Apple Silicon runners (rules.md K82, ops/github_runner_plan.md), permanently keeping GitHub Actions cloud minute usage at 0 minutes.

Mac mini hosts 15 resident runners (13 Site Factory and site repos plus 2 external repos) consuming ~640 MB total idle RAM with 0% SSD wear and zero thermal warnings, while Studio 1 and Studio 2 also host runners for 12 Python site repos. Each runner on Mac mini uses runs-on: [self-hosted, honbu-mini] and isolates its $HOME directory under ~/actions-runners/_home/<repo> so CI tests never contaminate production state. On Mac Studio, .github/workflows/watchdog-tests.yml and ops/ci_gate/gate.py check mac.lock / step.lock before starting so CI never interferes with active LLM benchmarks. If Mac mini ever goes down, clearing the repository variable RUNNER_LABEL falls back to ubuntu-latest immediately.

Caveats & Operational Rules

  • Strict environment and credential isolation is mandatory: Because self-hosted runners execute directly on the host OS, each runner must isolate its working tree and $HOME and never expose production secrets to untrusted code.
  • Prepare a fallback for host downtime: If the local machine sleeps or loses power, CI jobs queue up; enforce always-on power settings and keep a documented toggle (RUNNER_LABEL) to fall back to cloud runners in emergencies.

Related Terms

References

  • Book: Mark Richards & Neal Ford, *Fundamentals of Software Architecture*, Chapter 11 (Bulkhead Pattern)

Verified: 2026-11-08