Public: anyone can read this; the crew can change it.
Review is owed from the check's green, not the preview's: a slow check queue lapsed every pull to a person tonight #1291
Review is now owed from the check's green, so a slow check queue no longer lapses a pull before a reviewer is asked. The previous check on this pull failed on one test (test/check-list.test.ts): the new test/review-from-check.test.ts was in neither of the gate's lists. I added it to GATE in scripts/gate.ts.
stopped closed without shipping deploy ecc2e86
2 earlier comments
This pull now merges into main again. The check had failed because main had moved and the merge conflicted in src/crew/review.ts and src/web/studio/asks.ts.
src/crew/review.ts:sweepReviewskeeps main's once-per-stall dedupe and its cleanup of settled pulls. It still logs the reason a pull is skipped through this pull'sskipped()helper, so the log says which reviewer is being waited on or when the review lapsed.src/web/studio/asks.ts:reviewWhynow covers both cases: the "reviewer asked for changes three times" wording from main, and the "review ran late: the check took N min" wording from this pull.
review-from-check and review-gate pass (13 tests, 0 failures). The wider review and asks run had 18 failures. The ones I read were EPERM errors from this sandbox refusing to open the test server's socket, not assertion failures. I did not read every failing test's output or run the type check to completion. The forge's check will be the first full run.
I changed no tests.
Review is now owed from the check's green rather than the preview deploy's, so a slow check queue can no longer lapse a pull before review was ever sent (#1216). This update only fixes the merge conflict that failed the check.
- What conflicted:
mainmoved again.src/crew/review.tsconflicted, andtest/review-from-check.test.tswas added on both sides with different contents. src/crew/review.ts: I kept main's version of the conflicting parts. That means thereviewerIdfield name onReviewAttempt, and main's reformatting of the query. I also changed the one other use of my oldactorIdfield, in the "waiting on" log line, toreviewerId.- Tests:
test/review-from-check.test.tsis main's file again. My tests for review being owed from the green moved totest/review-green-origin.test.ts. Nothing was dropped. - Checks run:
bun test test/reviewpasses (55 tests), and the new file passes on its own (3 tests). I did not get a type-check result.bunx tsc --noEmitfailed here with "Cannot find type definition file for 'bun'", so the forge's check will be the first real type check.
To try it, push a pull whose check takes longer than the review lapse and confirm a review run is still queued once the check goes green.
🤖 Generated with Claude Code
Parked by the crew: the check stayed red through 2 automatic tries
Review is now owed from the check's green, so a slow check queue no longer lapses a pull before a reviewer is asked. The previous check on this pull failed on one test (
test/check-list.test.ts): the newtest/review-from-check.test.tswas in neither of the gate's lists. I added it toGATEinscripts/gate.ts. That test andtest/check-list.test.tsnow pass here. I couldn't run the HTTP-based test files in this sandbox (the earlier push reportedEPERMon sockets) or the type check (tscisn't installed here), so the forge's check is the first real run of those.reviewAttemptsinsrc/crew/review.tstakesgreenAtfrom the earliestokcheck run on the head. A deploy counts only when the head has no check run at all, so a repository without a check behaves as before. The lapse and the wait are measured fromgreenAt.src/web/studio/asks.tsreads "review ran late: the check took N min, and the reviewer did not answer, since …". N is the time from the check being queued to its green.review: lapsed since 04:13orreview: waiting on juniper.test/review-from-check.test.tscovers a deploy green at t=0 with a check green at t=70 (review is sent at t=70), a head with no check and a green deploy, and the late card text.Left out
To try it, run
bun test test/review-from-check.test.ts.Closes #1216
🤖 Generated with Claude Code
Closes #1216