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

Sentinel: queue:check is past its budget: 1 check waits for 8 slots, 5 busy; the oldest since 04:18; the longest running is #17213 at 46 min (limit 60). #17376

opened this

Merged 31h 21m ago, live in production

The lane reading no longer counts a queued verification as a check waiting for a slot. I inferred this cause from the code, not from the forge's live data, which I can't read, so the pull may not clear the alert. What the sentinel saw.

Notes

opened this

The lane reading no longer counts a queued verification as a check waiting for a slot. I inferred this cause from the code, not from the forge's live data, which I can't read, so the pull may not clear the alert.

What the sentinel saw. The sentence reads "1 check waits for 8 slots, 5 busy". With three slots free, the scheduler wouldn't leave a check waiting, so the check wasn't waiting for a slot at all.

Cause. freeChecks in src/checks/red_main.ts counts every queued check, including the verification lane's. That lane runs one verification at a time, beside the slots, and takes no slot. A second verification queued behind a long one therefore passed the 10-minute budget and was filed as queue:check, which is meant for scheduler defects. Verification now runs on a runner, so it can run long.

Change.

  • freeChecks skips runs in the verify and verify-bisect envs. Their wait is no longer counted in the lane's size or age. Real pull and main checks are counted as before.
  • test/account-held-lane.test.ts has a new test. A verification queued for 90 minutes counts as nothing, and an ordinary check queued for 20 minutes still sets the lane's age. The test fails without the change.
  • The related vitals tests (123, across 12 files) and tsc pass. The commit says No door: vitals' lane reading only. I did not run bun test in full; the forge runs it on the push.

Not done.

  • A main check waiting behind main's own slot has the same shape (isMain(run) && lane.mains.has(repoId) in scheduler.ts), but I left it alone because I can't tell from here whether it was the cause.
  • I did not touch memory, disk or per-repository grant holds. Those can also leave a check queued with slots free, and showing which one holds would be a separate change.

To check it. After this lands, queue:check should leave the degraded list on /settings/capacity. If it comes back with slots free and no verification queued, one of those holds is the cause. In that case the queued check's run log names it.

Closes #17373

commented

The lane reading no longer counts a queued verification as a check waiting for a slot. I inferred this cause from the code, not from the forge's live data, which I can't read, so the pull may not clear the alert.

What the sentinel saw. The sentence reads "1 check waits for 8 slots, 5 busy". With three slots free, the scheduler wouldn't leave a check waiting, so the check wasn't waiting for a slot at all.

Cause. freeChecks in src/checks/red_main.ts counts every queued check, including the verification lane's. That lane runs one verification at a time, beside the slots, and takes no slot. A second verification queued behind a long one therefore passed the 10-minute budget and was filed as queue:check, which is meant for scheduler defects. Verification now runs on a runner, so it can run long.

Change.

  • freeChecks skips runs in the verify and verify-bisect envs. Their wait is no longer counted in the lane's size or age. Real pull and main checks are counted as before.
  • test/account-held-lane.test.ts has a new test. A verification queued for 90 minutes counts as nothing, and an ordinary check queued for 20 minutes still sets the lane's age. The test fails without the change.
  • The related vitals tests (123, across 12 files) and tsc pass. The commit says No door: vitals' lane reading only. I did not run bun test in full; the forge runs it on the push.

Not done.

  • A main check waiting behind main's own slot has the same shape (isMain(run) && lane.mains.has(repoId) in scheduler.ts), but I left it alone because I can't tell from here whether it was the cause.
  • I did not touch memory, disk or per-repository grant holds. Those can also leave a check queued with slots free, and showing which one holds would be a separate change.

To check it. After this lands, queue:check should leave the degraded list on /settings/capacity. If it comes back with slots free and no verification queued, one of those holds is the cause. In that case the queued check's run log names it.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs