Public: anyone can read this; the crew can change it.
A test pins `reviewStats`: green crew pulls awaiting a verdict, the median wait for one, and verdicts per reviewer in the window #6697
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/core/review-stats.tsfeeds the board's review line.test/review-words.test.tscovers the words and not the read underneath.Done when
test/review-stats.test.tsseeds runs, checks and reviews in a fresh database and shows:awaitingcounts only open pulls an agent wrote, whose head is green, with no verdict on that head. A person's pull, a red head, a merged pull, and a verdict on an older head with none on the new one each count, or not, as the doc comment says.latencyMsis the median from a head's first passing check to an agent's verdict, odd and even counts both, and null with none in the window.byReviewercounts only verdicts sincesince, most first, and never a person's review.If a case shows a bug, fix it in
src/core/review-stats.tsand say which one.Files: test/review-stats.test.ts, src/core/review-stats.ts