Skip to content
quarry History Of Ticket 9d59ebbfe9854503
Login

History Of Ticket 9d59ebbfe9854503

Artifacts Associated With Ticket 9d59ebbfe9854503

  1. Ticket change [68023e09bf] (rid 2538) by dmestas on 2026-08-24 23:00:08:

    1. comment initialized to:
      The forge refuses connections for the whole of startup because
      ListenAndServe runs after every repository has been registered, and
      registration is serial and shells out to zit per repo.
      
      Measured on the demo fleet, 2026-08-24: 25 repositories, ~105s from
      process start to bound port. Worst single repo 18.4s (tcl), then sqlite
      12.1s. During that window the site is not slow — it is not listening,
      so every request is a connection refusal rather than a page.
      
      startup-latency bounds the worst offender: 'zit submanifest show' took
      116s on tcl and 16s on sqlite where the code's comment claimed ~250ms,
      and it is capped at 2s now. That turns minutes into ~105s. It does not
      fix the shape.
      
      THE FIX: bind first, register in the background. A request that arrives
      before its repository is ready should get a page saying so — the
      Indexing flag and its surfaces already exist for exactly that state —
      rather than a refused connection, which is indistinguishable from the
      forge being dead. Registration is per-repo independent, so it can also
      run concurrently under the existing ingest lane.
      
      WHAT NOT TO DO: raise the probe timeout, or cache the probe result on
      disk. Both leave a startup path whose cost is a function of how much
      history the fleet holds, which is the actual defect.
      
      Related: 'zit submanifest show' costing 116s on a 94k-artifact store may
      itself be worth a zit issue — it is answering a yes/no question about
      whether any S-bearing artifact exists.
      
    2. priority initialized to: "High"
    3. status initialized to: "Open"
    4. subsystem initialized to: "server"
    5. title initialized to:
      Bind the listener before registering repositories, not after
      
    6. type initialized to: "Code_Defect"
  2. Ticket change [8b2f0cf7e7] (rid 5097) by dmestas on 2026-09-02 16:42:34:

    1. status changed to: "Review"
  3. Ticket change [7ca59a9e95] (rid 5099) by dmestas on 2026-09-02 16:45:52:

    1. status changed to: "Open"
  4. Ticket change [6053525544] (rid 5678) by ai-local on 2026-09-04 09:52:49:

    1. icomment:
      Landed (bind-first): the listener binds first and registration runs after it in the background. On the demo the port answered 5s after restart and the 26 repositories registered in 16s; a request for a not-yet-registered repository answers 503 with Retry-After and a self-refreshing page, never a 404.
      
    2. mimetype: "text/x-markdown"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"
  5. Ticket change [41d6052892] (rid 12521) by zeitgeist on 2026-09-24 00:54:06:

    1. Untracked field number: "86"