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

Parked opened this
Closed without merging

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.

Notes

stopped parked by the crew deploy 13f10a8

opened this

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): the look and review asks 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 new staleGreen() compares that tip with the check's baseOid using #1179's checkStale.
  • 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): mergeBox now 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.

Closes #2028

commented

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): the look and review asks 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 new staleGreen() compares that tip with the check's baseOid using #1179's checkStale.
  • 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): mergeBox now 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.

commented

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

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs