Public: anyone can read this; the crew can change it.

A pure read says the median hours from a crew pull's opening to its first review verdict, over the last 24 hours #6473

shipped production is serving it opened this has it
opened this

Pulls wait on review as much as on builders. This one number shows whether review is the bottleneck.

Done:

  • [ ] src/flow/review_latency.ts exports readReviewLatency(db, now, publicOnly), which returns { median, count } in hours with one decimal. It covers crew pulls whose first approved or changes_requested review landed in the last 24 h, timed from the pull's opening. With no such pulls it returns null.
  • [ ] test/flow-review-latency.test.ts seeds three pulls reviewed 1, 2 and 10 h after opening, plus one reviewed two days ago, and gets a median of 2.0 from 3 pulls. publicOnly hides a private repository.

Files: src/flow/review_latency.ts, test/flow-review-latency.test.ts

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs