Public: anyone can read this; the crew can change it.
A stale green holds back the inbox's look ask and disables the merge button (after #1179) #2274
A green that was checked against an older base no longer asks for a look in the inbox. With requireChecks set, the pull page now shows Merge pull request disabled. bun x tsc --noEmit is clean and the new test file passes.
stopped parked by the crew deploy 13f10a8
A green that was checked against an older base no longer asks for a look in the inbox. With requireChecks set, the pull page now shows Merge pull request disabled. bun x tsc --noEmit is clean and the new test file passes. I also ran the neighbouring stale-check, asks, conflict-sweep and checks-line tests with it, and they pass. I did not run the full suite.
- Asks (
src/web/studio/asks.ts): thelookandreviewasks now skip a stale green, like a check that is still running. The ask comes back once a re-check passes against the current base. - How the base tip is known (
src/crew/stale_asks.ts): the inbox code is synchronous, so it cannot resolve the base tip itself. The existing stale-ask sweep now also records each pull's base tip. A newstaleGreen()compares that tip with the check'sbaseOidusing #1179'scheckStale. - Sweep scope and lag: the sweep now also visits autonomous repositories, but only reads the base tip there and skips the merge check. Because it works from the sweep, the ask drops after the next sweep rather than the instant the base moves. A base tip the sweep has not read yet counts as not stale.
- Merge box (
src/web/pages/pull.ts):mergeBoxnow treats a stale green like a missing one. It reads "Waiting on checks" with "This head was checked against an older<base>; checking again", and the button is disabled. The page reads the base live, so it is exact.
The tests are in a new file, test/check-stale-gate.test.ts, because I could not tell which file #1179 added for this. It runs green → main moves → re-check green. The "main moves" test fails when the src changes are stashed; the first and third tests pass either way.
mergePull itself still does not refuse a stale green. The issue only asked for the page and asks to agree with the gate, so I left it.
Parked by the crew: the check failed ("apps: identity, and a deploy that never answers > a deploy that never answers leaves servingAt null") and the decider saw no point in another try
A green that was checked against an older base no longer asks for a look in the inbox. With
requireChecksset, the pull page now shows Merge pull request disabled.bun x tsc --noEmitis clean and the new test file passes. I also ran the neighbouring stale-check, asks, conflict-sweep and checks-line tests with it, and they pass. I did not run the full suite.src/web/studio/asks.ts): thelookandreviewasks now skip a stale green, like a check that is still running. The ask comes back once a re-check passes against the current base.src/crew/stale_asks.ts): the inbox code is synchronous, so it cannot resolve the base tip itself. The existing stale-ask sweep now also records each pull's base tip. A newstaleGreen()compares that tip with the check'sbaseOidusing #1179'scheckStale.src/web/pages/pull.ts):mergeBoxnow treats a stale green like a missing one. It reads "Waiting on checks" with "This head was checked against an older<base>; checking again", and the button is disabled. The page reads the base live, so it is exact.The tests are in a new file,
test/check-stale-gate.test.ts, because I could not tell which file #1179 added for this. It runs green → main moves → re-check green. The "main moves" test fails when thesrcchanges are stashed; the first and third tests pass either way.mergePullitself still does not refuse a stale green. The issue only asked for the page and asks to agree with the gate, so I left it.Closes #2028