Frontend CI under 2 minutes: the full playbook plus the agent prompt that did it

AccBalanced · x · 2026-11-16

Developer pontusab shares how he got frontend CI under 2 minutes: swap tsc for bun check, replace ESLint/Prettier with oxlint/oxfmt, standardize on bun, run lint/typecheck/build/tests in parallel, shard tests by measured duration, only run diff-reachable tests per PR, seed caches from main to hit 95%+ cache hits, and cancel superseded runs.

The attached image is the full agent prompt he used: audit the last 150 runs, split each job into waiting/setup/running buckets at p50/p95 and fix the biggest bucket first, then set explicit time budgets (waiting <10s, setup <30s, lint <5s, tests <60s per shard). Two rules outrank speed: the full suite still runs in a merge queue before anything lands, and you never get faster by hiding failures—no retries, wider timeouts, or skipped tests. The prompt is directly reusable for your own pipeline.

Original post →

More from coding & agent

coding & agent channel →