ci-build-speed
ci-build-speed
The headline lesson: profile before you optimize. Most "CI speedups" target jobs that aren't on the critical path and so don't change wall-clock at all. Find the long pole first — in a Next monorepo it's almost always the production build — and spend there.
When to use this
Trigger if: CI wall-clock is painful, the build job flakes/OOMs, or you're about to throw money (bigger runners) or infra (remote cache) at CI without knowing where the time actually goes.
Don't bother if: CI is already a few minutes and green — micro-optimizing a fast pipeline is the same critical-path mistake in miniature.
Go to ci-speed-diagnosis first if the caching below is already in place and CI is still slow. A configured cache that never hits reports green, so the levers here read as "already done" while doing nothing. That skill is the entry point for the whole CI family and routes to the rest.