Skip to content
quarry View Ticket
Login

View Ticket

ci: offload drained run logs to S3, local dir as hot cache

Closedb73c6408dafe85b4600ee75db5fa34579a8a4c94Created 93.5 days agoUpdated 25.9 days ago
Description2026-08-29 10:38:14
RFC 0009 §logs gives retention to the forge; today the poller drains each terminal run to data/<repo>/ci-logs/<runID>.json and the run page reads drained-first. Before release, add an S3-compatible target: hand-rolled SigV4 PUT/GET (no AWS SDK — keep the dependency posture), --ci-logs-s3 endpoint/bucket config with credentials from env, upload on drain, read-through on view with the local dir as hot cache. Needs a real endpoint (or local minio) for an honest e2e. Agreed 2026-08-29: later task, before release.
2026-09-12 15:58:26

Needs dmestas's decision before implementation. Offloading run logs to S3 adds an external dependency to the CI read path and a retention policy with it. RFC 0001 §8 describes the OLTP as small by construction and litestream-replicated; object storage is a different durability story. Your call on whether the forge takes that dependency.

(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.)

2026-09-23 12:29:14

Decided by dmestas 2026-09-23: DEFERRED. Measured first: 1,020 drained runs take 8.4 MB (about 8 KB a run) with 88 GB free, so size is no reason for years. What offload would buy is durability off the box and a shared read path for a multi-node forge; neither is needed now, and it would add an external dependency to the CI log read path plus a retention policy to own. If durability becomes the worry, the cheap first step is to include data//ci-logs in the existing backup, not object storage. Left open, priority unchanged, for when quarry runs on more than one node.

2026-11-05 00:33:30

Closed by !1182: ci-logs-offload landing on trunk (14e05183ae67)