toolinglinear.app ↗

AI coding has made CI a bottleneck, so we reworked ours to keep up

Linear's test suites nearly quadrupled this year, yet PR wait time fell from over 6 minutes to just over 5. Faster runners, tsgo, eight shards and less setup per shard did it.

Linear · · 10m read

Thin white vertical lines on black, packed tightest at the center

Why we picked it · the editor's summary

Agents sped up how fast Linear writes code, and every pull request still has to pass CI, so CI became the constraint. Moving to third-party runners made jobs 34% faster on average, the native TypeScript compiler cut the weekly median tsc check by 73%, and per-shard setup fell by roughly 44%; without that, eight test shards would have spent 15-19 minutes of runner time on setup alone. Sharing module state between test files was the largest single gain, roughly 17% in monthly savings, and the riskiest, so files with fake timers or shared state stayed isolated. Pull request wait time went from more than 6 minutes to just over 5 while the suites nearly quadrupled. Before you add shards, measure what each one spends on setup.

Read on Linear ↗

Comments

Loading comments…