Artifacts Associated With Ticket 9d59ebbfe9
Ticket change [68023e09bf] (rid 2538) by dmestas on 2026-08-24 23:00:08:
- 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.
- priority initialized to: "High"
- status initialized to: "Open"
- subsystem initialized to: "server"
- title initialized to:
Bind the listener before registering repositories, not after
- type initialized to: "Code_Defect"
- comment initialized to:
Ticket change [8b2f0cf7e7] (rid 5097) by dmestas on 2026-09-02 16:42:34:
- status changed to: "Review"
Ticket change [7ca59a9e95] (rid 5099) by dmestas on 2026-09-02 16:45:52:
- status changed to: "Open"
Ticket change [6053525544] (rid 5678) by ai-local on 2026-09-04 09:52:49:
- 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.
- mimetype: "text/x-markdown"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [41d6052892] (rid 12521) by zeitgeist on 2026-09-24 00:54:06:
- Untracked field number: "86"