A new GitHub Actions runner launches every week now.
@yonasbe2.4K followers
22,159 views
19 Comments
Comments from the original post on X (Twitter)

@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

@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

@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

@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

@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

@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

@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

@yonasbe
Start with the techniques that show up across every playbook:
2 likes

@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_creates
@starslingdev @dbworku great list
2 likes

@yonasbe
@starslingdev @dbworku Thanks! More coming soon

@Amoise101
@starslingdev @dbworku This is good stuff
2 likes

@yonasbe
@starslingdev @dbworku Thank you! 🙏🏾

@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

@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

@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

@yonasbe
@starslingdev @dbworku Thanks a lot!
1 like

@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

@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.