Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f1eaa1e5e33c9b0795084596625fd161427a6fdf08cd6dcc235d9544b285f7c4
Ticket: 8d5aa739f80c5e47e809afd3bd145034b04dbfc0
ci_run grows without bound
User & Date: dmestas on 2026-08-17 15:10:44
Changes

  1. comment changed 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 changed to: "Open"
  3. title changed to: "ci_run grows without bound"
  4. type changed to: "Ops"