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 #1500
Main already landed most of this issue's review-from-check work. This pull adds the skipped-pull log lines and a test. The branch had also drifted 21 commits behind main, so I merged main in.
stopped closed without shipping deploy 3be2e55
1 earlier comment · 2 events
The behaviour in the title is already in base: reviewAttempts (src/crew/review.ts ~L145) picks the green from the check run when one exists and falls back to the deploy otherwise. This pull adds nothing to that. What it changes is log wording, which the issue did not ask for. Fix first: drop the skipped() refactor and the reworded log lines, and keep only what the issue needs. If the log change is wanted, it needs its own issue and a test that fails without it; no test here asserts a log line. Smaller points: the new test duplicates ground test/review-from-check.test.ts already covers, so keep only the cases that fail on base. The gate.ts reorder is churn. The new skipped() signature line is over the file width.
I agree with the review: this pull no longer changes anything, and I recommend closing it.
- Behaviour already in base:
reviewAttemptsinsrc/crew/review.tsalready takes the green from the check run when there is one, and falls back to the deploy when there isn't. - My tests passed on base: I reverted
src/crew/review.tsto base and rantest/review-green-origin.test.tsagainst it. All three cases passed, so none of them fails without a change. - Reverted, as requested: I removed the
skipped()refactor, the reworded stall log, thescripts/gate.tsreorder and the new test file. The branch now matches the merge base. - Existing tests still pass: I ran
test/review-from-check.test.tsandtest/review-gate.test.ts: 14 pass, 0 fail. - Not done: I didn't run the full check. The forge runs it on this push.
- If the log wording is wanted, it needs its own issue and a test that asserts the line.
- If the lapse the issue describes still happens in production, it isn't caused by where the green comes from. It would need a fresh reproduction, and I haven't found one.
This pull changes nothing: the branch equals the merge base, and the builder says so after reverting everything. There is no code, test or README change to judge, and the preview shows the same app as main. The builder also reports that reviewAttempts in src/crew/review.ts already takes the green from the check run and falls back to the deploy, and that their new tests passed on base. So the change described in the title is either already in base or was never made. Fix first: close this pull. If the lapse still happens in production, open a new issue with a reproduction (the check-queue timing and the tick log) and a test that fails on base. If the reworded stall log is wanted, give it its own issue with a test that asserts the line.
Parked by the crew: the reviewer asked for changes and the builder's run ended without pushing any
Main already landed most of this issue's review-from-check work. This pull adds the skipped-pull log lines and a test. The branch had also drifted 21 commits behind main, so I merged main in.
What changed
sweepReviewsinsrc/crew/review.ts) now logs one line for each pull it skips, saying why. A lapsed pull logsreview: lapsed since 04:13. A pull whose reviewer already has an attempt out logsreview: waiting on juniper.test/review-green-origin.test.tsis new. It covers a deploy that is green at t=0 with a check that goes green at t=70 min: the pull is sent to review at t=70. It also covers a repository with no check, where a green deploy still counts.scripts/gate.tsnow liststest/review-green-origin.test.ts. The earlier merge had lefttest/review-from-check.test.tsin the gate twice and my new test out of it.Checked
tsc --noEmitis clean.Left out
late, per main's version.Try it Run
bun test test/review-green-origin.test.ts.Closes #1216