2026-11-21: Incident storm on hetzner-mgmt, CI jobs waited up to 35 minutes on four runners¶
Kind: reference (incident report)
Severity: warning · Status: resolved (CI concurrency is left to the owner's decision #3286) · Resolved by: resolved by itself as the queue drained; checked by the operator agent · Duration: two firings of ubuntu-latest, 09:38:24–09:38:54 and 09:40:24–09:49:54 UTC (about 10 min in all); 25 or more jobs queued from 09:10 · Taskbase task: #3562
Summary¶
At 09:39:24 Taskbase opened the umbrella incident #3562, "Incident storm on hetzner-mgmt", because five incidents were already open on the cluster (#3374, #3379, #3380, #3416, #3480). It listed one alert group: GiteaActionsStalled for labels=ubuntu-latest. That is the waiting-job rule, which fires when a job has waited 30 minutes. Nothing was broken. Four repositories created 236 Gitea Actions jobs from 06:00 to 09:35, and at most four ubuntu-latest jobs run at once, so the queue reached 31 jobs. Every online runner stayed busy and the Mac mini's runner pods started and completed. The alert resolved by itself at 09:50 when the oldest job started; the queue held 17 jobs at 09:51 and 15 at 10:08. No write was made. The cause is the same as on 2026-11-16 and 2026-11-18. It is a storm only in name: one alert, not several alerts from one cause.
Impact¶
- Services: Gitea Actions CI for
ubuntu-latestwas slow, not down. The exporter's oldest wait peaked at about 2100 s (35 min) at 09:49. It counts from the first scrape that saw a job queued, waiting for a runner, not from when the job was created. Oneubuntu-24.04-armjob waited up to about 1480 s (25 min) and started at about 09:59. - Users: the authors of pull requests and pushes in
eloro/webshop-platform,Skatzi/platform,eloro/shop-eloroandeloro/webshop-shop-templategot their checks later. The queue at 09:40 held the checks of Skatzi/platform pull requests (runs 13329–13331 and 13333–13335, from 09:09 and 09:25), of eloro/webshop-platform pull requests (runs 13318, 13327, 13328, 13336 and 13337), and theimagejob of a push tomainofeloro/shop-eloro(run 13332), so that deploy waited too. - Data: none.
- Duration: about 10 min of firing in two spells (0:30 and 9:30; see the status line). The queue held 25 or more
ubuntu-latestjobs from about 09:10. At 10:08 15 jobs were queued, but the oldest had waited only 846 s.
Timeline¶
All times UTC, 2026-11-21.
| Time | Event | Source |
|---|---|---|
| 06:00–09:35 | 236 jobs created: 60 in the 06h hour, 45 at 07h, 71 at 08h, and 60 from 09:00 to 09:35, against about 48 an hour that four runners work off | Gitea admin API actions/jobs, the last eight pages, grouped by created_at |
| 08:15–08:30 | A first wave: 17–22 ubuntu-latest jobs queued, oldest under 30 min, falling to 3 at 09:00 |
max by (labels) (gitea_actions_queued_jobs), step 15 min |
| 09:09–09:25 | Skatzi/platform pull-request runs 13329–13335 and eloro runs 13332, 13336 and 13337 queue 25–28 ubuntu-latest jobs |
same metric; actions/jobs?status=queued |
| 09:38:24–09:38:54 | GiteaActionsStalled (labels=ubuntu-latest) fires; the oldest job starts and it resolves |
raw ALERTS samples |
| 09:39:24 | Taskbase opens umbrella #3562 | Taskbase |
| 09:39:58 | operator agent: Alertmanager lists no GiteaActionsStalled; 30 ubuntu-latest jobs queued, oldest 1800 s |
commands 1–3 below |
| 09:40:24 | The rule fires again for the next job; Alertmanager lists it active at 09:40:20, not silenced |
Prometheus /api/v1/rules, command 6 |
| 09:40–09:41 | 4 runners online with ubuntu-latest, all busy; 4 jobs in progress; 30 queued |
commands 4–5 |
| 09:49:54 | Last firing sample; the oldest wait peaked at about 2100 s | raw ALERTS, max_over_time |
| 09:51:02 | Resolved: Alertmanager lists no GiteaActionsStalled; 17 jobs queued, oldest 1501 s |
command 6 |
| 10:05:16 | The next oldest job peaks at 1755 s and starts before 30 min; the rule does not fire again | command 8 |
| 10:08:18 | 15 ubuntu-latest jobs queued, the oldest for 846 s; still no GiteaActionsStalled |
command 8 |
Root cause¶
The cause was more jobs than the runners can run at once, not a fault. At most four ubuntu-latest jobs run at once: two pods of gitea/gitea-act-runner on hetzner-mgmt (capacity: 1 each since #2931, under the owner's memory decision #2898) and two ephemeral pods of the KEDA ScaledJob ci/gitea-act-runner on the Mac mini (maxReplicaCount: 2). The root cause section of 2026-11-16 describes both in full.
Jobs created from 06:00 to 09:35, by repository (Gitea admin API actions/jobs, the newest 399 jobs):
| Repository | Jobs | Runs |
|---|---|---|
eloro/webshop-platform |
178 | 15 |
Skatzi/platform |
35 | 14 |
eloro/shop-eloro |
16 | 3 |
eloro/webshop-shop-template |
7 | 1 |
The 37 jobs that finished from 09:00 onwards ran for a median of 274 s (8 s to 725 s). At four slots and about 5 minutes a job, the runners work off about 48 jobs an hour. The 71 jobs of the 08h hour and the 60 of 09:00–09:35 grew the queue faster than that. Two eloro/webshop-platform pull_request runs made a large part of it: 13327 (the daily digest) with 7 jobs queued at 09:40 and 13336 (ANALYZE after migrate).
The waiting-job rule has no for, so it fires as soon as the oldest wait crosses 30 minutes and resolves as soon as that job starts. That is why it fired for 30 s at 09:38, resolved, and fired again 90 s later for the next job. Taskbase raised the umbrella task, not an incident of its own, because five incidents were already open on hetzner-mgmt, which is the cap. The other alert active at the time, KubeStatefulSetUpdateNotRolledOut in openbao (since 2026-11-19 17:31), belongs to #3374 and is not related to this one.
What the agent did¶
Each command named its context (admin@mgmt-cluster, or mac-mini for the VM), as ops runbook rule 8 requires. Alertmanager, Prometheus and the exporter were read through the API server's Service proxy (Read Alertmanager and Prometheus on a cluster), and every alert read carried cluster hetzner-mgmt. All steps were read-only and followed the runbook.
kubectl get --raw "$AM/api/v2/alerts"and"$AM/api/v2/silences"at 09:39:58: onlyKubeStatefulSetUpdateNotRolledOut(openbao) andWatchdogwere active, and no silence was active.GiteaActionsStalledhad resolved after its first spell.- Prometheus
/api/v1/rules: the threeGiteaActionsStalledrules werehealth: okandinactive.ALERTS{alertname="GiteaActionsStalled"}[30m]showed the 09:38:24–09:38:54 firing withlabels=ubuntu-latest. - Prometheus instant and
query_rangereads of the exporter's series:gitea_actions_scrape_success 1;ubuntu-latesthad 4 runners online, 30 jobs queued and an oldest wait of 1800 s. So the exporter read Gitea, Prometheus scraped it, and the waiting-job case applied. - Gitea admin API
GET /api/v1/admin/actions/runners: the online runners withubuntu-latestweregitea-act-runner-57dfc49b96-rh6nt,-pj5zrand the Mac mini'smac-mini-gitea-act-runner-jlx2g-8pmjtand-99grr-fkrf6, allbusy: true.mac-mini-release(macos-arm64) was online and idle. The other runners listed were offline, left over from earlier pods.actions/jobs?status=in_progresslisted 4 jobs, each on a different runner, started from 09:33:22 to 09:39:39.actions/jobs?status=queuedlisted the 30 jobs of the runs named under Impact, the oldest created at 07:44:31 (reportof eloro/webshop-platform run 13318). This is the runbook's backlog, not a stuck runner. kubectl --context mac-mini -n ci get jobs,pods: four Jobs had completed in the last 17 minutes (3m38s–10m) and one was running.flux get kustomizations -A --status-selector ready=falseandflux get helmreleases -A --status-selector ready=falsewere empty. The exporter pod had beenRunningfor 2d5h with no restarts, andgitea-act-runnerwas 2/2.- The rule state was read again at 09:40:20. It was
firingfrom 09:40:24 with value 1860, and Alertmanager listed itactive. - Watched the exporter and Alertmanager every 90 s from 09:41:11 to 09:51:02.
ubuntu-latestwent from 29 queued to 17, and the oldest wait went from 1870 s up to 2131 s and then down to 1501 s. At 09:51:02 Alertmanager listed noGiteaActionsStalled. - Kept watching every 90 s until 10:08:18. The rule did not fire again: the next oldest job peaked at 1755 s and started. The
ubuntu-24.04-armjob started at about 09:59. At 10:08:18 15ubuntu-latestjobs were queued, the oldest for 846 s. The fourubuntu-latestrunners were busy with 4 jobs in progress, the ScaledJob wasREADY True,ACTIVE True,PAUSED False, and the Flux lists were still empty. - Gitea admin API
actions/jobs, the last eight pages, grouped by repository, run and hour, and a run lookup for each run that made the queue: the figures in the timeline and root cause. - This report.
No write was made to either cluster: no Flux object was suspended, reconciled or annotated, no silence was set, and no runner count was changed. Raising replicas, capacity or maxReplicaCount would undo a memory decision of the owner (#2898, and the Mac mini's 6 GiB of dind limits). It is left to #3286, as the runbook's roll forward says for a backlog.
Resolution and verification¶
The alert resolved by itself when the oldest job started. The last firing sample was at 09:49:54, and Alertmanager listed no GiteaActionsStalled at 09:51:02 or at any read up to 10:08:18. The exporter kept reading Gitea (gitea_actions_scrape_success 1), all four ubuntu-latest runners stayed busy, and the oldest wait was 846 s at 10:08:18. The queue still held 15 jobs then. If new pushes keep it above about four jobs for 30 minutes, the rule fires again. While #3562 is open, Taskbase lists that firing on it; once #3562 is done, the alert gets its own incident task, or a new umbrella if five or more incidents are still open on hetzner-mgmt (Storm cap).
Follow-ups¶
-
3285:
operator, from 2026-11-23: measure a week of queue waits and work out concurrency options. This is the third backlog in six days, with 236 jobs from four repositories in three and a half hours and a peak of 31 queued. 178 of the jobs came fromeloro/webshop-platform.¶ -
3286: the owner decides how many
ubuntu-latestjobs run at once, or gives the rule aforso one backlog does not fire, resolve and fire again as it did here. It depends on #3285.¶
References¶
- Alert:
GiteaActionsStalled(max by (labels) (gitea_actions_oldest_queued_job_seconds) > 30 * 60, nofor,components/gitea/actions-exporter/prometheus-rule.yaml); runbook - Taskbase incident task: #3562 (umbrella "Incident storm on
hetzner-mgmt") - Earlier incidents with the same cause: 2026-11-16 (#3251), 2026-11-18 (#3356)
- Runs: the
operatorrun of #3562 on 2026-11-21 - Pull requests: this report's pull request
- Runbook sections: GiteaActionsStalled, a backlog or a stuck runner; CI Runners; Gitea Actions Runners on the Mac Mini
Open questions¶
- Whether an umbrella task should be raised for a single alert group whose cause is unrelated to the open incidents. Here the umbrella's "one cause" framing did not apply: the five open incidents are about OpenBao, Gitea's gate, Harbor's gate and worker-2's disk, not CI.