We Cut PR Merge Time by 92%. Here's the System We Built to Do It
As our engineering team at Nirvana scaled past 100 developers, merging a single PR started taking over an hour. Not because CI was slow, but because it kept getting invalidated due to continuous merges on main. Developers would rebase, rerun CI, and wait… only to find that another merge had already broken their build. The cycle would repeat multiple times before a PR could land. To fix this, we built NirvanaMQ, a speculative stateless merge queue that eliminates CI invalidation and enables near-instant merges at scale, handling 7,000+ PRs a year without a database, reducing average merge time from 60 minutes to under 5 minutes.