feat(gitea_runner): bound the Docker image cache by count and disk usage #328

Merged
Defame1297 merged 4 commits from feat/319-docker-prune-count-threshold into main 2026-11-23 19:06:42 +00:00
4 Commits
Author SHA1 Message Date
Defame1297 35f7e772a5 Merge branch 'main' into feat/319-docker-prune-count-threshold
Build / build (pull_request) Successful in 16s
Lint / lint (pull_request) Successful in 1m48s
Molecule / molecule (pull_request) Successful in 2m32s
2026-11-23 18:41:11 +00:00
Defame1297 ee4cb160ea test(gitea_runner): pin the disk check and refused-input messages
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
The weekly schedule and image age cases matched text the disk check
schedule message also holds; match each assert's own message. Add a
case at exactly the root's use so the strict comparison is pinned, and
check the below message so a df failure cannot pass for it.

Refs #319

Assisted-by: Claude Code
2026-11-23 18:35:53 +00:00
Defame1297 e91c074373 fix(gitea_runner): address review of the prune count and threshold
Give each new input its own assert message so every refused-input case
matches only its own input, and cover a negative count and a bad disk
check schedule. Fire the pressure prune only above the threshold, as
the inputs describe it. Name the disk check script apart from the
pressure service, prefix the new registers as internal, and keep the
new comments short.

Refs #319

Assisted-by: Claude Code
2026-11-23 18:20:32 +00:00
Defame1297 f50ecc2945 feat(gitea_runner): bound the Docker image cache by count and disk usage
An age-based prune does not cap disk use: the cache grows with how often
new image versions are published, and builds on the runner then fail for
lack of space. Keep the newest N image IDs per repository in the weekly
prune, and add an hourly pressure prune that runs the count prune and a
capped builder prune when the Docker root's filesystem passes a
threshold, behind the same job gate. Both are off by default.

Refs #319

Assisted-by: Claude Code
2026-11-23 18:04:50 +00:00