From beed820562e9310ac8755c8ac65d0c1f52b7a69a Mon Sep 17 00:00:00 2001 From: Emil Simeonov Date: Tue, 22 Sep 2026 18:58:21 +0200 Subject: [PATCH] fix: unquoted conditional filter args; trim spec --- .../gitea_runner/templates/runner-cleanup.sh.j2 | 2 +- docs/specs/GRM-173.md | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ansible/roles/gitea_runner/templates/runner-cleanup.sh.j2 b/ansible/roles/gitea_runner/templates/runner-cleanup.sh.j2 index 009165c..cce3edb 100644 --- a/ansible/roles/gitea_runner/templates/runner-cleanup.sh.j2 +++ b/ansible/roles/gitea_runner/templates/runner-cleanup.sh.j2 @@ -93,7 +93,7 @@ reclaim_expired_leases() { prune_volumes_networks() { local vol_all="$1" net_until="$2" docker volume prune ${vol_all:+$vol_all} -f --filter "label!=${LEASE_UNTIL_LABEL}" >/dev/null 2>&1 || true - docker network prune -f --filter "label!=${LEASE_UNTIL_LABEL}" ${net_until:+--filter "until=${net_until}"} >/dev/null 2>&1 || true + docker network prune -f --filter "label!=${LEASE_UNTIL_LABEL}" ${net_until:+--filter until=${net_until}} >/dev/null 2>&1 || true } case "$TIER" in diff --git a/docs/specs/GRM-173.md b/docs/specs/GRM-173.md index b36c9f5..56609bd 100644 --- a/docs/specs/GRM-173.md +++ b/docs/specs/GRM-173.md @@ -41,15 +41,14 @@ and stops `gitea-runner.service` (the runner stops fetching jobs). A later healthcheck restarts it once disk drops below warn. In-flight jobs are never killed. Controlled by `gitea_runner_disk_admission_enabled`. -REQ-5: Declare physical-host capacity explicitly: -`runner.capacity: {{ gitea_runner_capacity }}` in the act_runner config -(default 1, matching upstream default). +REQ-5: Declare physical-host capacity explicitly: `runner.capacity: +{{ gitea_runner_capacity }}` in the act_runner config (default 1 = upstream). -REQ-6: Production-host exclusion. The role fails early when the target host -carries the production marker file `/etc/oblachno/production-host` or when +REQ-6: Production-host exclusion. The role fails early when the target carries +the marker file `/etc/oblachno/production-host` or `gitea_runner_on_production_host` is true, unless -`gitea_runner_allow_production_host` overrides. Infra-side provisioning of the -marker is a follow-up task. +`gitea_runner_allow_production_host` overrides. Infra-side marker provisioning +is a follow-up task. Historical spec for the colliding task ID: [GRM-173-skills-historical](GRM-173-skills-historical.md).