Skip to content
quarry History Of Ticket 029c4730c0
Login

History Of Ticket 029c4730c0

Artifacts Associated With Ticket 029c4730c0

  1. Ticket change [f2c5d2fa57] (rid 3951) by dmestas on 2026-08-29 22:15:58:

    1. comment initialized to:
      Three pipelines raced on one box on 2026-08-29 (two agents plus a landing) and step times stretched from ~2m to ~8m; one suite failed at 10m50s in the way loaded timing tests do. The worker executes every dispatched task concurrently. Near term: a -max-tasks flag on ci/worker gating handler entry with a semaphore, so N suites queue instead of thrashing (the SDK already REPORTS max_tasks in the worker registration; whether the engine or SDK enforces it anywhere is this ticket's first question — if enforcement belongs engine-side, that half is a dagnats ask to surface for signoff before filing). Further out, the throttling story proper: per-repo concurrency at the trigger, priority for premerge/landing runs over branch churn, and letting supersede-cancel (already live) do more of the shedding. One knob now, the policy later.
      
    2. priority initialized to: "High"
    3. status initialized to: "Open"
    4. subsystem initialized to: "ci"
    5. title initialized to:
      ci: throttle the worker — max concurrent tasks, and a queueing story beyond it
      
    6. type initialized to: "Feature"
  2. Ticket change [5aebf90ff3] (rid 4040) by dmestas on 2026-08-29 23:50:24:

    1. comment changed to:
      Near-term knob shipped (throttle-1, 2026-08-29): the worker gates handler entry with a -max-tasks semaphore (deployed at 3) and says 'waiting for a slot (N busy)' when a wait is real. Still open here: per-repo concurrency at the trigger, priority for landing/premerge runs over branch churn, and whether engine-side enforcement of the registration's max_tasks is worth a dagnats ask.
      
  3. Ticket change [33ee748720] (rid 11646) by zeitgeist on 2026-09-23 02:50:14:

    1. icomment:
      NOT DEPLOYED. dmestas chose the quarry-side shape for what was left here: landing cb6273319c29 (branch-churn-waits-when-the-worker-is-full) is open. When the workers are full (capacity = the sum of every worker's max_tasks from the engine, minus the runs the forge has in flight), a fresh check-in on a branch nobody has proposed is recorded as waiting in a new ci_deferred table instead of started; trunk and any branch with an open landing start regardless; each fold round drains the waiting list longest-wait first as room appears, or at once for a branch that has since been proposed; any start (fold, Re-run, a landing opening) forgets the wait. The check-in and landing pages show the wait as a row of its own ("waiting", no run to link, "the worker is full; it runs when a slot frees or a landing opens"), and a landing opened over a waiting check-in asks for the run as it does over a cancelled one. An engine that does not list workers never defers, so nothing changes where capacity is unknown. Not built: priority inside the engine's own queue and engine-side max_tasks enforcement, both dagnats asks; with churn held outside the queue a landing never stands behind it, which was the case that mattered. Measurement once it lands: with the worker at 3, push four unproposed branches inside a minute; the fourth check-in's page shows the waiting row; when one run completes the fourth starts; opening a landing on a waiting branch starts it at once.
      
    2. mimetype: "text/x-markdown"
  4. Ticket change [fd588ebb21] (rid 11706) by zeitgeist on 2026-09-23 11:48:13:

    1. icomment:
      DEPLOYED WITH A DEFECT, fix open. cb6273319c29 is on 7a5d179697db. Measuring it before the burst test, the capacity check was wrong: it compared the workers' max_tasks (3) with the forge's ci_run rows marked running (13), and the engine agreed, 13 running runs. Twelve of them are dantest-sandbox runs queued since 18-22 September for html/puzzles task types that no worker serves; one step was actually running. So the live build treats the worker as permanently full: a push to a branch with no open landing is recorded as waiting and does not run until a landing opens on it (which drains it immediately, and did for f9f87716's branch). Trunk and proposed branches are unaffected. Fix: landing cf5ec537e63b counts occupancy from the engine as steps (every running step, plus queued steps on runs younger than 15 minutes), which is what max_tasks bounds; the store count is removed. The burst measurement follows its deploy. Separately, for a person to decide: the twelve zombie dantest-sandbox runs will never run on this forge; cancelling them is a one-line engine call each but they are jva's sandbox, so I have not.
      
    2. mimetype: "text/x-markdown"
  5. Ticket change [5bba13838d] (rid 11773) by zeitgeist on 2026-09-23 12:18:26:

    1. icomment:
      Closed on build eea48c5747e4. Three landings built the quarry-side deferral dmestas chose: cb6273319c29 (the rule and the waiting row), 33df8ef5eb6e (occupancy counts only CI runs: the notification service's digests share the engine and were counted as busy CI slots), 3227928923a2 (re-measure the worker after each launch, since a quarry run holds three steps; ignore worker registrations silent for 90s, since a deploy restart lists the worker twice). A fourth defect found on the way, cf5ec537e63b, stopped runs queued for days on task types no worker serves from counting. Measured on eea48c5747e4 after the engine listed a single live worker: four unproposed probe branches pushed at 12:17:20, :24, :27 and :30. Probe 1 started at 12:17:22; probe 2 at 12:17:26, after probe 1 had finished; probe 3 logged "the worker is full; waiting for a slot" at 12:17:28 and started at 12:17:32 when probe 2 finished; probe 4 waited at 12:17:33 and started at 12:17:41. One run at a time, each waiting branch started within seconds of room, all four completed, nothing left waiting. Opening a landing on a waiting branch starts it at once (measured earlier under 49323c33's sweep and again on f9f87716's branch). Not built, and not needed for the case that mattered: priority inside the engine's queue and engine-side max_tasks enforcement (dagnats asks). Open for a person: twelve dantest-sandbox runs have sat queued since 18-22 September on html/puzzles task types no worker serves; they no longer affect CI here, but they will never run. Probe branches closed.
      
    2. mimetype: "text/x-markdown"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"
  6. Ticket change [d18be70f9c] (rid 12547) by zeitgeist on 2026-09-24 00:55:16:

    1. Untracked field number: "111"