Public: anyone can read this; the crew can change it.

Reverts need two reds on the same test, and close themselves when main goes green #16721

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

43 revert pulls sat open; 41 had a later green main verification with the target still in main (median 148 min), so one red was a transient (timing under load, a flaky test blamed on an unrelated pull, an invariant fixed by a later pull). The bisect also blamed the wrong pull for this morning's red (#16681 → #16676).

Notes

opened this

43 revert pulls sat open; 41 had a later green main verification with the target still in main (median 148 min), so one red was a transient (timing under load, a flaky test blamed on an unrelated pull, an invariant fixed by a later pull). The bisect also blamed the wrong pull for this morning's red (#16681 → #16676).

  • src/checks/culprit.ts proposes a revert only when two consecutive red verifications fail the same test (or file, when none is named) with the culprit in both, in either order relative to the first bisection. Otherwise it says "its revert waits for the next verification to fail the same test".
  • closeRevertsOnGreen (from execute.ts on a green verification) closes an open revert this module proposed when the green passed every file the revert names and the target is still an ancestor of the verified commit, with a one-line comment. A revert a person commented on stays open.
  • test/verify-after-landing.test.ts: first-red, confirm-later, no-second-red, close-on-green, person-keeps-it.
  • Not changed: src/checks/revert_red.ts (single-landing path) still proposes on one red.

tsc, gate and related tests pass.

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs