Skip to content
quarry History Of Ticket 8d5aa739f80c5e47e809afd3bd145034b04dbfc0
Login

History Of Ticket 8d5aa739f80c5e47e809afd3bd145034b04dbfc0

Artifacts Associated With Ticket 8d5aa739f80c5e47e809afd3bd145034b04dbfc0

  1. Ticket change [f1eaa1e5e3] (rid 584) by dmestas on 2026-08-17 15:10:44:

    1. comment initialized to:
      Every CI launch inserts a ci_run row and nothing ever removes one. A repository committing steadily accumulates rows forever, in the OLTP database that 0001 §8 describes as 'small by construction' and litestream-replicated — so this is the one table that breaks that property.
      
      The run itself lives in dagnats, which has its own retention; quarry stores only the mapping from run to check-in. That mapping is what makes a verdict explicable ('which run produced this ci-fail'), so it should not be dropped as eagerly as the engine drops run history.
      
      Fix shape: age out terminal runs beyond some window, keeping at least the newest run per check-in so a verdict badge can still be traced to something. Unfinished runs are never pruned — a row whose status is not terminal is the poller's work list, and deleting it strands a run nobody will ever record the verdict for.
      
      Filed alongside the CI slice (e3268319, f50a282a) rather than fixed inside it.
      
    2. status initialized to: "Open"
    3. title initialized to: "ci_run grows without bound"
    4. type initialized to: "Ops"
  2. Ticket change [f7de876311] (rid 862) by dmestas on 2026-08-18 18:40:08:

    1. Untracked field cmimetype: "text/x-markdown"
  3. Ticket change [b32b392f74] (rid 1074) by dmestas on 2026-08-19 11:04:34:

    1. priority changed to: "Medium"
    2. severity changed to: "Important"
    3. type changed to: "Code_Defect"
  4. Ticket change [c844a93826] (rid 1124) by dmestas on 2026-08-19 12:10:49:

    1. subsystem changed to: "ci"
  5. Ticket change [155e18fcee] (rid 7383) by zeitgeist on 2026-09-12 15:58:30:

    1. icomment:
      Needs dmestas's decision before implementation. The fix itself is clear and I would take it — age out terminal ci_run rows, keep at least the newest per check-in so a verdict badge stays traceable, never prune an unfinished run because that row IS the poller's work list. What needs you is the retention window and the first run: it deletes production rows, and 'how long is a verdict explicable' is a policy answer rather than a technical one. Say a window and I will implement it.
      
      (Recorded as a comment because quarry's own tracker defines no assignee field — its schema carries title, type, status, severity, priority, subsystem and nothing else, while tcl's carries assignee, submitter, closer and closedate. Assigning here needs both halves: the field added to quarry's ticket schema, and #0eafaa19 so quarry can write any field a tracker defines rather than fossil's default list.)
      
    2. mimetype: "text/x-markdown"
  6. Ticket change [129ab5ac8c] (rid 7564) by dmestas on 2026-09-12 17:49:28:

    1. icomment:
      Closed by cirun-retention landing on trunk (accepted)
      
    2. mimetype: "text/x-markdown"
    3. status changed to: "Closed"
  7. Ticket change [fed516d4ea] (rid 12442) by zeitgeist on 2026-09-24 00:52:41:

    1. Untracked field number: "7"