From 139afc004e975c20c65a8e2394aead66c0f2a929 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Tue, 24 Nov 2026 15:51:05 +0000 Subject: [PATCH] colony/git: Match Gitea task timeout to runner Gitea's default `ENDLESS_TASK_TIMEOUT` of 3h marked long CI jobs as failed while the runner kept building, leaving an orphaned job container. Raise it to the runner's 8h job timeout. Co-Authored-By: Claude Opus 5.5 --- docs/sites/colony/git.md | 2 ++ nixos/boxes/colony/vms/git/gitea.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/sites/colony/git.md b/docs/sites/colony/git.md index d518781..866cb3c 100644 --- a/docs/sites/colony/git.md +++ b/docs/sites/colony/git.md @@ -29,6 +29,8 @@ One Docker-mode instance (`main-docker`) on podman (privileged, `podman` network - Labels for `node:24-trixie` and the self-built `git.nul.ie/dev/actions-ubuntu:26.04` images. - Runs as a fixed `gitea-runner` user (not `DynamicUser`) so it can read its token; jobs have a configured timeout. +- Gitea's `actions.ENDLESS_TASK_TIMEOUT` matches the runner's job timeout. Otherwise the server's + shorter default marks long builds as failed while the runner keeps working on them. - The action cache lives on a dedicated disk (`/var/cache/gitea-runner`). - Executes the repo's own `.gitea/workflows/ci.yaml`. diff --git a/nixos/boxes/colony/vms/git/gitea.nix b/nixos/boxes/colony/vms/git/gitea.nix index 5839f0e..2fa5cd2 100644 --- a/nixos/boxes/colony/vms/git/gitea.nix +++ b/nixos/boxes/colony/vms/git/gitea.nix @@ -119,6 +119,8 @@ in }; actions = { ENABLED = true; + # Match the runner's job timeout; the default (3h) fails long builds that are still running + ENDLESS_TASK_TIMEOUT = "8h"; }; }; };