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

A check that started and has written nothing is found and asked again, so six… #16105

shipped production is serving it opened this has it

Landed in pull #16111 · run

opened this

A check that started and has written nothing is found and asked again, so six of them cannot hold every slot for hours On 2026-11-23, production (0.7.629, up three days) stopped checking pulls from about 14:47Z to 17:14Z. Found by the steward on the host:

  • run held seven checks in state running (six pull checks started 14:47 to 16:21Z, one verify-bisect step from 14:54Z), each with an EMPTY log, a heartbeat kept fresh by the forge, no process under /data/checks, and no row in check_job (nothing was ever offered to a runner). checks.concurrency is 6, so the six filled the lane and 21 checks stayed queued, the oldest from 13:09Z. The 17 runners were alive and polling /api/v1/runner/claim.
  • So each check hung between claimRun in src/checks/execute.ts and its first write, somewhere at the start of lane.runner.run (in src/checks/tier_runner.ts the first awaits are readFileAt(bare, base, "scripts/gate.ts") and runGit(["rev-parse", …])). At the same time page requests for the same repository sat "in flight" for minutes in the [loop] event loop blocked lines (/:owner/:name/pulls/:number/files, /:owner/:name/milestones/:number, /:owner/:name/commits). A long-lived git cat-file reader of that repository that stopped answering would explain both; this was not proven before the restart.
  • The main thread also showed event loop blocked for 0.9 to 4 s about 14 times a minute, labelled jobs egress-idle (226 s of 600 s), with the heap near 8 GiB and "did not fall: no collection seen". The sweep in src/apps/egress.ts is a few lines, so it is probably named only because one of its roughly 300 timers is what runs when a long pause ends.
  • A previous bisect step that did finish took 2,696 s for tests that ran in seconds.

Restarting the same image (run.sh, about 8 s dark, 17:14Z) cleared it: six checks started within a minute and jobs were claimed.

Done when:

  • A check in running that has written no log line and has no runner job after a bounded time (say what bound and why) is stopped and queued again once, with one log line saying so; the second time it fails with a plain reason. A test starts a check whose runner never returns and shows the slot freed.
  • A read through a long-lived git reader has a deadline: past it the reader is replaced and the caller gets an error, never a wait without end. A test with a reader that stops answering.
  • The vitals say it: "N checks have run M minutes with nothing written" is a miss on /flow and in GET /api/v1/telemetry/flow, so a stalled lane is seen in minutes, not hours.
  • What the long pauses on the main thread are is found (a profile on the stage rig with production's count of apps: about 420 cells) and written on this issue; fix it here if it is small, else file it.

Files: src/checks/execute.ts, src/checks/tier_runner.ts, src/git/read.ts, src/flow/vitals.ts, src/apps/egress.ts

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs