Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Linear 8 min read Case study mediumAdept

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

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.

Related posts

  • DevEx matters for coding agents, too

    incident.io mediumAdept

    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 gains came from replacing ESLint and Prettier with Biome (40s to under 1s), adopting the preview Go-based TypeScript compiler tsgo while keeping tsc on CI as a safety net, and switching tasks from Node/Yarn to Bun. The team also replaced the Java OpenAPI Generator with a ~700-line Bun/TypeScript generator, built with Claude Code to match the old output exactly, which cut generation from 45s to 0.21s. An upstream Goa PR added parallel file writing and cut its generation time from 52s to 10s.

  • The quest for the five minute deploy

    incident.io mediumAdept

    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. Prebuilding Ginkgo test binaries and running them in batches on a single server, plus per-server Go build caches, per-yarn.lock Node module caches with pipeline fallback, and local Docker image caches, brought the test step to 2–4 minutes. Production deploys fell from 11.5 to 8.5 minutes, branch builds from 10 to 5.5, and hotfixes to 3.5. Remaining pain points include bin packing containers, under-provisioned disk IOPS, newly exposed flaky tests, cache poisoning, zombie containers, and a fast-growing cache that must be cleared wholesale.

  • Implement a GitHub Actions Testing Suite

    Railway mediumAdept

    Walkthrough of building a CI test suite with GitHub Actions for a TypeScript Fastify API deployed on Railway. A /weekday route is added and covered with Vitest integration tests. A workflow runs on PRs and pushes to main, building the app, starting it in the background, then running the tests. Branch rulesets make the passing check required before merge, and Railway's 'wait for CI' setting stops failing commits from auto-deploying. Closing notes point to concurrency, matrix builds and caching as ways to scale the pipeline.

  • Optimizing Our E2E Pipeline

    Slack Engineering mediumAdept

    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. The check and artifact lookup take under 3 seconds across 100,000+ tracked files. Frontend build frequency dropped 60%, average build time fell from ~5 to ~2 minutes (from ~10 minutes at the start of the year, counting an earlier Webpack upgrade), several terabytes of monthly S3 storage were saved, and E2E test flakiness reached its lowest measured level.

  • Building a great developer experience at a startup

    incident.io mediumAdept

    incident.io treats developer experience as leverage for sustaining engineering pace without accruing technical or product debt. Their practices include hot reloading, CI kept under roughly 3 minutes, PR reviews within an hour or two, Slack block-kit previews, and a Go `toolbox` CLI for running code locally or in production. Strong typing across Go and TypeScript is reinforced by a type-safe DB library, goa-generated OpenAPI clients and an exhaustive-enum `assertUnreachable` pattern. Reusable building blocks such as engine conditions, actors and `useMutation` hooks sit alongside debugging aids: per-engineer real GCP dev environments, tracing, Sentry sourcemaps and structured logs linked to traces.

The quest for software engineering knowledge.

Look:
Layout: