Uber sped up its merge queue by gating peak traffic and letting weak overlaps go untested
Preetam Dwivedi and Manjari Akella (Uber) say PR growth they attribute to AI pushed p95 land time to 3 to 4 hours. Over months, peak-hour gating, deferrals and dropping weak conflict checks, backed by a verified/main pointer, took peak throughput to about 300 lands an hour.
Watch from 5:43Recording by AI Engineer.
The idea
The speaker’s argument, in our words.Dwivedi and Akella describe a merge queue (SubmitQueue) that kept Uber's trunk green by serializing pull requests whose build targets overlap, and that slowed down badly as arrivals rose. Their response came in three steps, each of which, by their own account, moved a cost somewhere else. Admission gating rejects expensive changes at peak hours, which protects capacity but, in Akella's words, makes developers the schedulers: owners of widely used libraries have to come back later. Deferrals queue those changes and release them automatically, which saves the resubmission but not the wait.
The largest step was conflict relaxation: score each overlap between queued changes and drop the weakest links until a configured level of parallelism is reached, deciding once when a request arrives so that speculative builds stay useful. The speakers are explicit that some combinations now land untested and main can break. They move the guarantee after the merge: a post-land validator, Stovepipe, advances a separate verified/main pointer only when the newly landed range builds and passes, and failures page the on-call engineer, who lands a fix or revert by hand.
What they found
From the talk. Figures are self-reported unless stated.Requests rose from roughly 90 per hour in January 2026 to 130 per hour in March, and p95 land time went from about 30 minutes to roughly three to four hours, with trunk kept green throughout.
Self-reported, for the Go monorepo. The speakers attribute the growth primarily to AI-generated changes; no breakdown of AI versus human changes is shown.
Measured result
5:46Admission gating raised the land rate during business hours from 130 to about 160 per hour, described as over 20%.
Self-reported. The cost falls on developers whose changes span much of the build graph, such as owners of widely used libraries, who must retry outside peak hours; deferrals later spared them the resubmission but not the wait.
Measured result
9:44Conflict relaxation, which scores each overlap between queued changes from 0 to 1 and drops the weakest until a configured parallelism target is met, raised throughput from about 160 to almost 250 lands per hour; some combinations now land untested.
Self-reported production figure, measured after gating was in place; no isolated A/B described. Edges are assigned once when a request arrives, not recomputed globally, so speculative builds stay valid.
Measured result
18:06Stovepipe validates each newly landed commit range on top of the last known-good commit and only advances verified/main when that state builds and passes; a failure pages the on-call engineer, who lands a fix or revert through SubmitQueue by hand.
Illustrated with commits A to G. The speakers list automating fixes and reverts as future work; no breakage rate or time-to-recovery figure is given.
Case study
20:54
Why it matters
Our reading. Not said in the talk.If coding agents keep raising the rate of pull requests, shared merge and CI capacity is where the extra volume lands. What we find most useful in Uber's account is that each lever is presented with the cost it moved: onto library owners, onto waiting time, onto a trunk that can break.
What one could try
- Track merge-queue arrival rate and p95 land time alongside agent adoption, and measure how often changes are serialized only by weak, transitive overlaps.
- If you gate expensive changes at peak, defer them instead of rejecting them, and check which teams the policy hits hardest.
- Before relaxing pre-merge checks, publish a separate known-good ref advanced only by post-merge validation, and define who gets paged and how a revert lands.
Limitations
- All figures are self-reported by Uber for its Go monorepo; the share of AI-generated changes is asserted, not measured.
- The rise to about 300 lands per hour mixes several interventions over months, and the talk compares it with January's 90 requests per hour; no single change is isolated.
- No breakage rate, recovery time or cost of broken-main incidents is reported, so the downside of relaxation is not quantified.
Original sources
AI Engineer CODE Summit 2026 · Nov 12, 2026
Green Pull Requests Can Still Break the Trunk
Preetam Dwivedi, Manjari Akella · Uber · 28 min
This is our synthesis of the talk, checked against the transcript at the linked moments.
