Linear Cuts CI Wait Time to 5 Minutes as Tests Quadruple
Software / analysis
Linear Cuts CI Wait Time to 5 Minutes as Tests Quadruple
A Sept. 21 engineering post credits third-party runners, a native TypeScript compiler and doubled test sharding, not just more machines, and the fix still leaves a bigger industry number untouched.
Linear says it cut the median wait for a pull request to clear continuous integration from more than 6 minutes to just over 5, even as its test suite nearly quadrupled since the start of the year, according to a Sept. 21 post by engineer Mufeez Amjad on the company's own blog. The claim is worth taking seriously because Linear is measuring the exact problem coding agents are supposed to be creating industry-wide: code arrives faster than anything downstream can check it.
Why an assigned issue became an engineering post
Amjad wrote that the project began when "Tuomas, our CTO, had assigned an issue to me, titled 'CI costs are high.'" The diagnosis that followed doubled as an explanation of why CI has become a talking point across the industry this cycle: "Agents have made it exponentially faster to ship code, but validating those changes hasn't quite kept up at the same rate. Every PR still has to pass through CI, so as development accelerates, CI becomes a bottleneck, driving up infrastructure costs and leaving developers and agents waiting longer for feedback." Linear's own suite grew by roughly 2,000 tests a week over the period, according to the post, which runs on Vitest as its test runner and pnpm for package management, both named without being replaced.
What actually moved the number
The post lists five separate changes rather than one fix. Linear moved off GitHub Actions to third-party runners with faster CPUs and storage, and replaced the standard actions/checkout step with a custom composite action that adds retry logic and connection timeout controls. It adopted tsgo, a native TypeScript compiler, cutting the weekly median of its tsc type check by 73%. It moved ESLint's rules to Oxlint and rewrote its own custom lint rules to use static analysis instead of full type information, cutting API lint time by 68% and full-repository lint time by 55%. It doubled test sharding from four shards to eight and added module state sharing under strict isolation rules, which brought the slowest shard down from roughly 300 to 379 seconds to about 195 seconds. Batching seven previously independent checks into two jobs saved about 87,000 runner-minutes a month, which Linear said equals 11.8% of its total CI usage.
| Metric | Before | After |
|---|---|---|
| Median PR wait for CI | More than 6 minutes | Just over 5 minutes |
| Test shards | 4 | 8 |
| Slowest shard | 300 to 379 seconds | About 195 seconds |
| Runner-minutes saved monthly | — | About 87,000 (11.8% of total usage) |
The number the post does not include
Linear's post measures CI runtime, not how long a finished pull request waits for a human to look at it, and that second number is where LinearB's 2026 Software Engineering Benchmarks Report, built from 8.1 million pull requests across more than 4,800 organizations, points to a different bottleneck. LinearB found that AI-assisted pull requests wait 4.6 times longer before a reviewer picks them up than unassisted ones, even though they are then reviewed twice as fast once someone starts. At the 75th percentile, LinearB's own data puts agentic pull requests at 17.6 hours of pickup time against 3.4 hours for unassisted work, and it attributes the gap to three causes: agent-authored pull requests have less clear ownership, agentic flows get pointed at low-priority backlog items nobody is watching for, and reviewers hesitate longer on larger or more complex AI-written changes. Those changes are larger to begin with. At the same percentile, AI-assisted pull requests ran 408 lines against 157 for unassisted ones, a gap LinearB ties directly to the slower pickup. AI-generated pull requests were accepted within LinearB's measurement window 32.7% of the time, against 84.4% for unassisted work.
- Agentic AI pull requests17.6 hours
- Unassisted pull requests3.4 hours
Source: LinearB, 'AI in software development: what the 2026 data shows,' accessed 2026-09-22
A pull request that clears CI in 5 minutes can still sit unreviewed for the better part of a day if nobody owns it, which is the gap Linear's post does not claim to have closed. That gap matters more as agentic coding tools scale past individual teams. Coding-agent startups are now raising rounds that value them at $5 billion, and the volume of machine-written code entering review queues is a separate problem from how fast that code compiles or passes lint, a distinction visible even in how coding agents' own output gets open-sourced faster than anyone can audit it line by line.
Linear's fix would stop looking durable if its own median wait time climbs back up as the roughly 2,000 weekly tests keep compounding faster than its infrastructure investment, or if a future post from the company has to address pickup time rather than runtime. Amjad's post does not say what Linear's own PR pickup time looks like, only how fast a PR moves once CI starts, which leaves the metric LinearB's data flags as the wider industry's actual constraint unmeasured in Linear's own account of the fix.
Sources
Sources
More in Software
- 01Qualcomm Ships a Snapdragon X2 Linux Preview, Certifies Ubuntu for 2027The Sept. 23 developer preview pairs a custom kernel with Debian 13 for kernel developers only, and Qualcomm says first-generation Snapdragon X Elite laptops get no official support commitment at all.
- 02A New Postgres Safety Checker Meets Its Limits on Hacker NewsSafe-Not-Safe, built by a former Cloudflare Postgres lead who supported 170-plus product teams, grades a migration in the browser, but a rival maintainer showed within hours why static rules alone can't see what a live database will actually do.
- 03Microsoft Copilot Adds Autopilot as Just 7% of Seats PayThe Sept. 25 relaunch bills coding and autonomous agents by usage on top of the existing $30-a-month license, while Microsoft's own announcement never names the rival already leading enterprise AI use.
- 04Independent Testing Cuts Floci's 24-Millisecond Claim to 3 SecondsFloci's own docs claim a 24-millisecond startup against LocalStack's 3.3 seconds, but an April benchmark measured Floci itself at roughly 3 seconds, as the free AWS emulator passes 25,000 GitHub stars five months after LocalStack's free tier ended.