fix: gitea controller
runner nix smoke / nix label and flake smoke (push) Failing after 1m39s
runner ubuntu smoke / ubuntu-latest label smoke (push) Successful in 1s

This commit is contained in:
2026-11-02 20:06:04 +00:00
parent 0143a1a760
commit 9b5d2ed657
7 changed files with 388 additions and 60 deletions
+6 -3
View File
@@ -581,9 +581,12 @@ immediate teardown; failed jobs retain pre-destroy diagnostics. A healthy,
bootstrapped terminal VM may stay running until the next hourly boundary
measured from original VM creation, capped by its original hard TTL.
Retention first enters a durable retirement state. The controller disables the
exact repository runner registration, deletes it, and confirms its absence
before clearing repository, label, and runner ownership into generic idle. A
Each controller-managed registration is ephemeral: Gitea permits it to accept
exactly one task and revokes reuse credentials after assignment. Retention first
enters a durable retirement state. The controller disables the exact repository
runner registration, waits if a pre-upgrade non-ephemeral registration is still
assigned to an in-progress job, then deletes it and confirms its absence before
clearing repository, label, and runner ownership into generic idle. A
queued job from any allowed repository can atomically claim generic idle only
when persisted server type, location, architecture, and image match one of the
job label's candidates. The VM then remains unschedulable while Hetzner rebuilds