Skip navigation
A new GitHub Actions runner launches every week now.
0:00 / 0:23

A new GitHub Actions runner launches every week now.

Yonas Beshawred

@yonasbe2.4K followers

Visit on X
120 likesDownloadOriginal post

22,159 views

A new GitHub Actions runner launches every week now. But getting faster runners is just one part of what the best engineering teams do to speed up their CI. Introducing CI Playbooks ▶️ an agent-friendly library of 253 GitHub Actions optimizations from companies running software factories. We analyzed 416 pull requests and commits, and 182 blog posts, talks, and podcasts from ten companies: 1. Anthropic: CI job volume grew 25x in six months as Claude came to write 80% of its code 2. DoorDash: build and test cut from 22 minutes to 6 3. Linear: jobs 34% faster while test suites almost quadrupled 4. Mastra: 29m 56s to 5m 06s p95 on StarSling runners 5. OpenAI: about 30 CI PRs took median CI from about 10 minutes to 4.5 6. Ramp: its coding agent accounts for 74% of merged PRs 7. Shopify: an agent running experiments made the Polaris build 65% faster 8. Spotify: deployer image build went from 2h28m to about 17 minutes 9. Stripe: runs about 5% of its full Ruby test suite per build 10. Uber: CI resource usage down 53%, wait times down 37% Some of these companies aren't using GitHub Actions as their CI engine internally so we translated all the optimizations they've talked about or made publicly in their repos, into their GHA equivalents. Every technique comes with its original source and a prompt your coding agent can run on your repo. Add .md to any playbook URL for the markdown version, or just hand this URL to your agent: There's tons to dig into here, I'm going to highlight some of the findings I found most interesting 🧵

19 Comments

Comments from the original post on X (Twitter)

  • Yonas Beshawred's profile picture

    @yonasbe

    Of the 210 CI speed techniques in the playbooks, 7 are a move to faster runners. The other 203 are changes to caching, test selection, sharding, setup and the critical path.

    4 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    Top techniques across the ten playbooks: 1. Cache dependencies: 9 of 10 2. Measure test concurrency: 9 3. Shard long test jobs: 8 4. Run independent steps in parallel: 7 5. Move slow jobs to faster runners: 6 Faster runners rank fifth.

    3 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    The biggest wins come from running less. Stripe runs about 5% of its Ruby test suite per build, with a median of 0.5%. Uber's SubmitQueue cut CI resource usage by 53% and sped up wait times by 37%.

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    Automatic retries can cost more than the failures they fix. Bun's CI auto-retried every timed-out test shard. Across about 200 builds, about 670 retries: 465 timed out again and 182 were canceled. The fix: retry only when a machine is lost.

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    Caches can cost more than they save. Across 289 release runs, OpenAI's Codex spent 66,295 seconds saving caches and 1,515 seconds restoring them. They removed the cache step.

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    The scoreboard: DoorDash: 22 to 6 min build and test OpenAI: about 10 to 4.5 min median CI Shopify: Polaris build 65% faster Spotify: image build 2h28m to about 17 min Mastra: 29m 56s to 5m 06s p95 on StarSling runners

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    All 253 techniques collapse into 61 patterns the ten companies keep landing on, and every one is in ci-speedup, our open source skill. Point your coding agent at the skill in your repo and it ranks what's slowing your CI by measured wall-clock time, from your own runs:

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    Start with the techniques that show up across every playbook:

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    Most teams don't realize that faster runners is the foundation you need to start with and build optimizations on top of. @starslingdev is the only CI service that gives you faster GitHub Actions runners with agents that ship the optimizations in these playbooks for you, automatically while you sleep.

    2 likes

  • timo's profile picture

    @timo_creates

    @starslingdev @dbworku great list

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    @starslingdev @dbworku Thanks! More coming soon

  • Aaron's profile picture

    @Amoise101

    @starslingdev @dbworku This is good stuff

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    @starslingdev @dbworku Thank you! 🙏🏾

  • James Penning's profile picture

    @jpenning0

    @starslingdev @dbworku Faster runners was my first instinct too, then I realized my agents were just opening way more PRs. Is there a section for agent-heavy repos, where PR volume jumps overnight?

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    Yeah faster runners are a good first step. But good question about agent-heavy repos! All of the playbooks fit that description, but best thing to do is point your agent at the URL or grab the at the top of the page and your agent will figure out the best approach for your repo:

    1 like

  • Nacho | Scale with X creators's profile picture

    @Ignaciosolere

    @starslingdev @dbworku Congrats on CI Playbooks. Turning hard-won CI lessons into something other teams can put to work is a great idea. Thanks for sharing it openly. If you want help reaching more engineers through developer creators, happy to lend a hand

    2 likes

  • Yonas Beshawred's profile picture

    @yonasbe

    @starslingdev @dbworku Thanks a lot!

    1 like

  • Kala's profile picture

    @kalapowered

    @starslingdev @dbworku 465 repeat timeouts and 182 cancellations out of about 670 retries is a fairly expensive way to ask the same question again

  • Wallet Watcher's profile picture

    @alv_fatima

    @starslingdev @dbworku 253 optimizations is a lot to sift. Curious how many are runner-side vs workflow-side. The runner launches don't help if the job graph is serialized.