Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

GitHub Engineering 8 min read Case study mediumAdept

How GitHub uses GitHub Actions and Actions larger runners to build and test GitHub.com

GitHub moved CI for GitHub.com to GitHub Actions on larger runners, peaking at about 4,500 concurrent 32-core runners, 15,000 jobs per hour and 150,000 cores. Custom VM images that pre-bundle tools and a cached build of the project source, refreshed several times a day through an API, cut workflow time from about 50 to 12 minutes. Reusable workflows keep CI configuration and runner selection central across repositories, and reusing results when Git tree IDs match skips 300-500 runs a day. Isolated runners reach private VPC services through an OIDC-token-validating remote access gateway, whose scaffolding is open-sourced.

Related posts

  • How we tripled max concurrent jobs to boost performance of GitHub Actions

    GitHub Engineering mediumAdept

    GitHub Actions on GitHub Enterprise Server went from 2,200 to 7,000 max concurrent jobs on 96-core machines between GHES 3.2 and 3.6 through three main fixes. A hot path for workflow secrets and callback URLs had silently never used its cache, which only showed up in profile traces. Orchestration state moved from a single growing blob column to a per-event table with incremental reads and writes, cutting orchestration CPU by about 50%. Postback load to the Rails checks service was reduced by deferring step updates until run completion and removing duplicate completion events, with a message queue planned to replace the multi-hop HTTP delivery.

  • How GitHub reduced testing time for iOS apps with new runner features

    GitHub Engineering mediumAdept

    GitHub's iOS team cut CI testing time by 60%, from 38 to 15 minutes, by moving to Apple silicon M1 macOS runners (macos-14-xlarge) and splitting a single monolithic build-and-test job into per-module jobs across roughly 60 first-party modules. Small modules finish in 2-3 minutes, and failures are easier to isolate. The team also split each module's CI into separate build and test steps with xcodebuild's build-without-testing and test-without-building to find slow tests. Matching CI and laptop architecture lets engineers reproduce architecture-specific failures locally, and the team fans out 50 concurrent jobs per pull request.

  • Using GitHub Actions with Heroku Flow for additional Security Control

    Heroku Engineering mediumAdept

    Because GitHub Orgs can't allowlist Heroku IP ranges, Heroku offers a sample pattern: a self-hosted GitHub Actions runner deployed as a Docker app in a Heroku Private Space with static outbound IPs, plus a Heroku Flow Action. The action uses the Platform API's Source Endpoint to upload private repo code, deploy apps on push, dispatch or schedule events, and create, update or remove Review Apps on pull request events. A weekly scheduled workflow rebuilds and redeploys the runner to meet GitHub's 30-day update requirement. Tradeoffs include no repo link in the Review App UI, no automatic Heroku CI tests, no Fir support, and a custom runner image that other actions should be tested against.

  • Migrating Your GitHub CI to Hugging Face Jobs

    Hugging Face mediumAdept

    GitHub Actions jobs can run on Hugging Face Jobs by using a dispatcher Space and a GitHub App that receive `workflow_job.queued` webhooks. For any `hf-jobs-*` runs-on label, the dispatcher mints a short-lived runner registration token and launches an ephemeral self-hosted runner on matching CPU or GPU hardware. Setup takes duplicating the dispatcher Space on cpu-upgrade (cpu-basic can sleep and leave jobs queued), creating the App, and a one-line runs-on change. For Trackio, a Playwright Docker image cut CPU CI from 1m40s to 1m10s, and a new T4 GPU suite runs in 45s for under a cent.

  • GitHub’s Engineering Team has moved to Codespaces

    GitHub Engineering mediumAdept

    GitHub moved development of its 14-year-old, 13 GB github/github monolith from bespoke macOS laptops to cloud-hosted Codespaces, replacing fragile local environments with disposable, task-per-branch dev environments. Creation time went from 45 minutes to 5 by shallow cloning with background unshallowing and a nightly GitHub Action that builds a mostly-bootstrapped Docker base image for the devcontainer. It then dropped to 10 seconds with prebuilds, pools of fully cloned and bootstrapped codespaces. Centralized config also let them upgrade every engineer from 8-core to 32-core VMs with one line, share live previews via forwarded ports, and support Vim/Emacs users over SSH.

The quest for software engineering knowledge.

Look:
Layout: