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

When checks are scarce, they go to the work that matters most: the check queu… #12230

shipped production is serving it opened this has it

Landed in pull #12231 · run

opened this

When checks are scarce, they go to the work that matters most: the check queue follows the ranked list

The owner, 2026-11-13: "prioritization and ordering the forges needs to be good". That evening the forge had 7 checks running and 9 to 13 queued for hours at host load 100+, and landed one or two changes an hour. Which queued check runs next is decided by pickNext in src/checks/service.ts: an approved pull's check first, otherwise the NEWEST request, with a starvation bound. It does not know the ranked list (next_up), so a security fix at the top of the list waits behind a newer check for a keyboard shortcut. The builder pick has the same question: with a governor leaving one to three builder slots, which issue gets them.

Done when: among queued checks, order is: a merge-queue gate; then an approved pull's check; then by the rank of the pull's issue on the ranked list (top first; unranked last; newest first only as the tie-break); the starvation bound stays so nothing waits forever; the same rank decides which rework and which new build take a builder slot when slots are fewer than ready work; the home lanes show the order as it will be taken ("next" on the first queued tile), so the owner can see that moving an issue to the top moves its check; a test queues five checks whose issues are ranked 3,1,5,2,unranked and sees them start 1,2,3,5,unranked.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs