2026-11-18: CI jobs waited up to 44 minutes, 231 jobs in three hours 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: four firings: ubuntu-24.04-arm 07:41:30–07:43:15 and 08:21:30–08:29:15, ubuntu-latest 07:42:30–07:44:15 and 08:13:30–08:40:15 UTC; jobs queued from 05:51 · Taskbase task: #3356
Summary¶
From 05:50 to 08:40, seven repositories created 231 Gitea Actions jobs, 114 of them between 06:00 and 07:00. At most four ubuntu-latest jobs run at once, so the queue grew to 39 ubuntu-latest jobs at 07:12. The waiting-job rule of GiteaActionsStalled fired first for ubuntu-24.04-arm and then for ubuntu-latest at about 07:42 and resolved within two minutes each. Taskbase closed #3356 at 07:47:24 and reopened it at 08:14:24. The ubuntu-latest alert then fired for 27 minutes and the ubuntu-24.04-arm alert for 8 minutes, until the oldest jobs started. Nothing was broken: every online runner was busy, the Mac mini's runner pods started and completed normally, and the queue fell from 17 to 5 jobs during the run. No write was made. It is the same cause as 2026-11-16, with about twice the queue and from more repositories.
Impact¶
- Services: Gitea Actions CI for
ubuntu-latestandubuntu-24.04-armwas slow, not down. The exporter's oldest wait peaked at 2612 s (43.5 min) forubuntu-latestat 08:34:54 and at 2280 s (38 min) forubuntu-24.04-armbefore its job started at 08:29:04. The exporter counts from its first scrape that saw a job queued (waiting for a runner), not from the job's creation. - Users: the authors of pull requests and pushes in
eloro/webshop-platform,Skatzi/taskbase,Skatzi/platform,Skatzi/agent-runner,eloro/shop-eloro,eloro/webshop-shop-templateandSkatzi/skatzi-agentsgot their checks later. The queue at 08:24 held deployment jobs too (update-deploymentinSkatzi/taskbaserun 12408 andSkatzi/platformrun 12422), so those releases waited as well. - Data: none.
- Duration: 38 min of firing in four spells (1:45 + 1:45 + 7:45 + 26:45; see the status line), summed per alert, so the two alerts' overlap counts twice. Jobs had been queued from 05:51; at 08:41 five
ubuntu-latestjobs were queued, the oldest for 704 s.
Timeline¶
All times UTC, 2026-11-18.
| Time | Event | Source |
|---|---|---|
| 05:51 | First ubuntu-latest job queued this morning |
max by (labels) (gitea_actions_queued_jobs) |
| 06:00–07:00 | 114 jobs created, about 2.4 times what four runners work off in an hour at 5 minutes a job | Gitea admin API actions/jobs, grouped by created_at |
| 07:12 | Peak: 39 ubuntu-latest jobs queued |
same metric, query_range step 60 s |
| 07:41:30 | Detected: GiteaActionsStalled fires with labels=ubuntu-24.04-arm (fingerprint 9b424f226bfe3df3); #3356 opened |
ALERTS, Taskbase |
| 07:42:30–07:44:15 | Fires with labels=ubuntu-latest (fingerprint ab6ea88ebab5b3d9) |
ALERTS |
| 07:43:15 | Last ubuntu-24.04-arm firing sample; its oldest job started at 07:44 |
ALERTS, gitea_actions_oldest_queued_job_seconds |
| 07:47:24 | Taskbase closes #3356 as resolved by itself | Taskbase comment on #3356 |
| 08:13:30 | ubuntu-latest fires again; Taskbase reopens #3356 at 08:14:24 |
ALERTS, Taskbase comment |
| 08:21:30 | ubuntu-24.04-arm fires again |
ALERTS, Taskbase comment |
| 08:23:35 | operator agent: both alerts active, not silenced; 17 ubuntu-latest and 1 ubuntu-24.04-arm job queued |
commands 1–2 below |
| 08:29:04 | The ubuntu-24.04-arm job (e2e (1) of eloro/webshop-platform run 12409) starts on Mac mini pod gitea-act-runner-tjdwk; last firing sample 08:29:15 |
Gitea admin API actions/jobs?status=in_progress, ALERTS |
| 08:40:15 | Last ubuntu-latest firing sample; at 08:41:06 Alertmanager lists no GiteaActionsStalled |
ALERTS, command 7 |
Root cause¶
Demand above the runners' concurrency, not a fault. At most four jobs with ubuntu-latest run at once: two pods of gitea/gitea-act-runner on hetzner-mgmt (capacity: 1 each since #2931, 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 05:50 to about 08:35, by repository (Gitea admin API actions/jobs, the newest 300 jobs):
| Repository | Jobs | Runs |
|---|---|---|
eloro/webshop-platform |
105 | 9 |
Skatzi/taskbase |
50 | 8 |
Skatzi/platform |
46 | 19 |
Skatzi/agent-runner |
14 | 4 |
eloro/shop-eloro |
7 | 1 |
eloro/webshop-shop-template |
7 | 1 |
Skatzi/skatzi-agents |
2 | 2 |
At four slots and about 5 minutes a job (the Mac mini's Jobs took 50 s–9 min), the runners work off about 48 jobs an hour. 114 jobs in the 06h hour left the queue growing until about 07:12, and it took until 08:40 for the oldest waits to fall under 30 minutes.
ubuntu-24.04-arm jobs run only on the Mac mini's two pods, whose runners also take ubuntu-latest. A Mac mini pod takes whichever matching job Gitea hands it, so in a long ubuntu-latest backlog the arm job waits for a Mac mini pod that is not busy with ubuntu-latest work. This run did not establish in which order Gitea hands out jobs.
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 #3356 was closed at 07:47 and reopened at 08:14 during one backlog.
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, following the runbook.
kubectl get --raw "$AM/api/v2/alerts"and"$AM/api/v2/silences"at 08:23:35: both alertsactive,ubuntu-24.04-armsince 08:21:24 andubuntu-latestsince 08:13:24; no active silence.WatchdogandNodeHighMemoryUsage(namespacemonitoring, since 2026-11-17 12:45) were also active.- Exporter metrics through the Service proxy:
gitea_actions_scrape_success 1;ubuntu-latest3 runners online, 17 jobs queued, oldest 2240 s;ubuntu-24.04-arm1 runner online, 1 job queued, oldest 2000 s. So the exporter read Gitea and Prometheus scraped it (the same values were in Prometheus), and the waiting-job case applied. kubectl --context mac-mini -n ci get scaledjob,jobs,pods: ScaledJobREADY True,ACTIVE True,PAUSED False, strategyaccurate,maxReplicaCount2. Five Jobs Completed in the last 17 minutes (85 s–9 min) and one Running. The only Failed Job,gitea-act-runner-h64wj, failed on its deadline on 2026-11-13 and is finished, so KEDA does not count it as running.- Gitea admin API
GET /api/v1/admin/actions/runners: the online runners withubuntu-latestweregitea-act-runner-754fd96f4f-4t2js,-sq2zcand the Mac mini'sgitea-act-runner-lc4wb, allbusy: true;mac-mini-release(macos-arm64) was online and idle.actions/jobs?status=in_progressat 08:24:20 listed 4 jobs, each on a different runner, two of them started at 08:23:40 and 08:24:05.actions/jobs?status=queuedlisted 17 jobs from eloro/webshop-platform (runs 12398, 12409), Skatzi/taskbase (12408, 12419), Skatzi/platform (12422–12425) and Skatzi/agent-runner (12426). So all four slots were busy and the runners kept taking jobs, which is the runbook's backlog and not a stuck runner. - Watched the exporter every 2 minutes from 08:24:29 to 08:32:32:
ubuntu-latestqueued 16 → 10. Theubuntu-24.04-armjob started at 08:29:04, and at 08:32:40 Alertmanager listed only theubuntu-latestalert. - Prometheus
query_rangeofmax by (labels) (gitea_actions_queued_jobs),max by (labels) (gitea_actions_oldest_queued_job_seconds)andALERTS{alertname="GiteaActionsStalled",alertstate="firing"}from 05:30, and Gitea admin APIactions/jobs(the last six pages, 300 jobs) grouped by repository and hour: the figures in the timeline and the root cause. - Watched the exporter and Alertmanager every 90 s from 08:33:23 to 08:41:06:
ubuntu-latestqueued 10 → 5, and the oldest wait peaked at 2612 s at 08:34:54 and fell to 704 s. At 08:41:06 Alertmanager listed noGiteaActionsStalled. flux get kustomizations -A --status-selector ready=falseandflux get helmreleases -A --status-selector ready=false: empty at 08:33. At 08:41:16gitea-terraform-runnershoweddependency 'flux-system/gitea' is not readyduringgitea's routine reconcile (Ready again at 08:40:52,Reconciliation finished in 1.21s). At 08:42:10 both lists were empty again. This was not related to the queue.- This report. A comment on #3285 was not possible: Taskbase refuses task comments from incident runs.
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) and is left to #3286, as the runbook's roll forward says for a backlog.
Resolution and verification¶
The alerts resolved by themselves when the oldest jobs started: the last firing samples were at 08:29:15 (ubuntu-24.04-arm) and 08:40:15 (ubuntu-latest), and Alertmanager listed no GiteaActionsStalled at 08:41:06. The exporter kept reading Gitea (gitea_actions_scrape_success 1). At 08:41:06 five ubuntu-latest jobs were queued, the oldest for 704 s. While a queue drains the rule can fire again for a few minutes, and Taskbase then reopens #3356.
Follow-ups¶
-
3285:
operator, from 2026-11-23: measure a week of queue waits and work out concurrency options. This report is a second data point for it, before its week starts: 231 jobs from seven repositories in three hours, a peak of 39 queued, andubuntu-24.04-armjobs waiting behindubuntu-lateston the Mac mini's pods.¶ -
3286: the owner decides how many
ubuntu-latestjobs run at once, or gives the rule aforso one backlog does not close and reopen the incident. 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: #3356 (closed 07:47:24, reopened 08:14:24)
- Earlier incident with the same cause: 2026-11-16 (#3251)
- Runs: the
operatorrun of #3356 on 2026-11-18 - 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 Gitea hands a runner the oldest job that matches its labels: if it does, an
ubuntu-24.04-armjob waits until every olderubuntu-latestjob has a runner, and an arm-only slot would bound its wait. For #3285.