---
title: "AI coding has made CI a bottleneck, so we reworked ours to keep up"
description: "Linear cut pull request CI wait time from over 6 minutes to about 5 and halved runner time per test, even as its test suites nearly quadrupled."
url: "https://swe.quest/articles/ai-coding-has-made-ci-a-bottleneck-so-we-reworked-ours-to-keep-up-1594c74d280c863b"
canonical: "https://linear.app/now/ci-bottleneck-reworked"
source: "Linear"
published: "2026-09-21"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["ci-cd","developer-productivity","cost-optimization","typescript","performance"]
---

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

A post on [Linear](https://swe.quest/sources/linear.md), published 2026-09-21, 8 min read, Case study. Original: [https://linear.app/now/ci-bottleneck-reworked](https://linear.app/now/ci-bottleneck-reworked)

## Summary

Linear cut pull request CI wait time from over 6 minutes to about 5 and halved runner time per test, even as its test suites nearly quadrupled. The biggest wins came from faster third-party runners (34% faster jobs), switching to tsgo (73% faster typecheck), and rewriting type-aware lint rules as pure AST checks so ESLint and later Oxlint could skip TypeScript. Further gains came from trimming critical-path gating jobs with shallow, sparse and blobless checkouts, a retrying checkout action with low-speed git timeouts, filtered pnpm installs instead of caching node\_modules, schema snapshots instead of replaying migrations, and batching short checks, which saved about 87,000 runner-minutes a month. Splitting large Vitest files and moving to eight shards cut the slowest shard from 5.25 to 4.33 minutes.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- GitHub Actions workflows ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- pnpm workspaces
- TypeScript tooling ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

GitHub Actions, tsgo, ESLint, Oxlint, Vitest, pnpm, Linear

## Related posts

- [DevEx matters for coding agents, too](https://swe.quest/articles/devex-matters-for-coding-agents-too-3cf5bcfa910d65e5.md): incident.io · 2025-12-19 · Medium · 11 min read · Developer productivity, TypeScript, Build systems, AI for coding, Developer tools
  incident.io cut its typical lint-plus-compile feedback loop from over 90 seconds to under 10, arguing that fast toolchains matter even more when AI coding agents generate code faster than slow tools can validate it.
- [The quest for the five minute deploy](https://swe.quest/articles/the-quest-for-the-five-minute-deploy-9b91763fbfd58020.md): incident.io · 2025-07-22 · Medium · 9 min read · CI/CD, Go, Build systems, Caching, Developer productivity
  incident.io cut CI/CD times by moving from a hosted provider, where a cold Go build cache made compiling 15,000+ tests across 350+ packages the bottleneck, to Buildkite running on three self-hosted 48-vCPU servers.
- [Implement a GitHub Actions Testing Suite](https://swe.quest/articles/implement-a-github-actions-testing-suite-2bebf2196b8d7e8d.md): Railway · 2024-12-13 · Medium · 6 min read · CI/CD, Testing, TypeScript, Deployment
  Walkthrough of building a CI test suite with GitHub Actions for a TypeScript Fastify API deployed on Railway.
- [Optimizing Our E2E Pipeline](https://swe.quest/articles/optimizing-our-e2e-pipeline-880da9c129e2726b.md): Slack Engineering · 2025-04-14 · Medium · 5 min read · CI/CD, Build systems, Testing, Developer productivity, Cost optimization
  Slack cut redundant frontend builds in its monorepo E2E pipeline by using \`git diff\` three-dot notation against \`main\` to detect whether a PR touches frontend code, and when it doesn't, serving a recent production frontend build from S3 through an internal CDN instead of rebuilding.
- [Building a great developer experience at a startup](https://swe.quest/articles/building-a-great-developer-experience-at-a-startup-9f652c5e6c2db88a.md): incident.io · 2022-10-04 · Medium · 8 min read · Developer productivity, Go, TypeScript, Observability, CI/CD
  incident.io treats developer experience as leverage for sustaining engineering pace without accruing technical or product debt.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
