From a2d7013dd47ee8288de138bb36edbe4795e20b67 Mon Sep 17 00:00:00 2001 From: copilotcoder Date: Tue, 14 Jul 2026 10:12:57 -0400 Subject: [PATCH] chore: tune runner defaults and pin renovate to 8gb --- .gitea/workflows/renovate.yml | 4 ++-- .../gitea-actions/deploy-runner-config.xsh | 23 ++++++++----------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml index dc2da80..53da4db 100644 --- a/.gitea/workflows/renovate.yml +++ b/.gitea/workflows/renovate.yml @@ -15,8 +15,8 @@ on: jobs: renovate: name: Renovate Dependencies - # Non-heavy workflow: allow any host exposing the generic ubuntu-act label. - runs-on: ubuntu-act + # Renovate is npm/registry heavy; restrict to 8GB-capacity runners. + runs-on: ubuntu-act-8gb timeout-minutes: 90 steps: diff --git a/scripts/gitea-actions/deploy-runner-config.xsh b/scripts/gitea-actions/deploy-runner-config.xsh index 8cc067c..71b90c4 100755 --- a/scripts/gitea-actions/deploy-runner-config.xsh +++ b/scripts/gitea-actions/deploy-runner-config.xsh @@ -27,11 +27,11 @@ WARMUP_IMAGES = [ "ghcr.io/renovatebot/renovate:41", ] -DEFAULT_MEM_FRACTION = 0.75 +DEFAULT_MEM_FRACTION = 0.5 DEFAULT_JOB_MEM_FRACTION = 0.9 -DEFAULT_HOST_MEM_SHARE = 0.25 -DEFAULT_HOST_CPU_SHARE = 0.25 -DEFAULT_CPU_FRACTION = 1.0 +DEFAULT_HOST_MEM_SHARE = 1.0 +DEFAULT_HOST_CPU_SHARE = 1.0 +DEFAULT_CPU_FRACTION = 0.5 DEFAULT_JOB_CPU_FRACTION = 0.9 DEFAULT_RUNNER_MEM_SWAP_FACTOR = 1.0 DEFAULT_JOB_MEM_SWAP_FACTOR = 1.0 @@ -268,16 +268,13 @@ def scp(local_path, host, remote_path): def warm_runner_images(host): - pulls = "\n".join([f"docker pull {image}" for image in WARMUP_IMAGES]) - rc, out = ssh( - host, - ( - "set -e\n" - "echo 'warming_runner_images_start'\n" - f"{pulls}\n" - "echo 'warming_runner_images_done'\n" - ), + pulls = " && ".join([f"docker pull {image}" for image in WARMUP_IMAGES]) + remote_cmd = ( + "echo warming_runner_images_start && " + f"{pulls} && " + "echo warming_runner_images_done" ) + rc, out = ssh(host, remote_cmd) return rc, out