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
This commit is contained in:
Defame1297 committed 2026-11-23 18:20:32 +00:00
1 parent f50ecc2945
commit e91c074373
10 files changed
+86 -63

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ gitea_runner_docker_prune_image_age: 168h
gitea_runner_docker_prune_job_max_age: 21600
# Newest image IDs kept per repository by the weekly and pressure prunes; 0 = off.
gitea_runner_docker_prune_keep_per_repository: 0
# Use % of the Docker root's filesystem at which the pressure prune runs; 0 = off. Needs the count.
# Use % of the Docker root's filesystem above which the pressure prune runs; 0 = off. Needs the count.
gitea_runner_docker_prune_disk_threshold_percent: 0
gitea_runner_docker_prune_disk_check_schedule: hourly
gitea_runner_docker_prune_builder_keep_storage: 10GB