Skip to content

2026-11-16: ubuntu-latest CI jobs waited 33 minutes, six eloro pull requests 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 3 min each, 15:42:24–15:45:15 and 16:07:24–16:10:15 UTC; jobs queued from 14:43 · Taskbase task: #3251

Summary

Six eloro/webshop-platform pull requests pushed CI runs within 40 minutes. Each ci.yaml run has 11 ubuntu-latest jobs, and at most four ubuntu-latest jobs run at once, so jobs queued for a runner: the exporter counted 19 queued ubuntu-latest jobs at 15:14 and 17 at 15:43, and more jobs of the same runs still waited on the jobs they need. The waiting-job rule of GiteaActionsStalled fired when the oldest job had waited 30 minutes. It resolved three minutes later, when that job started, and fired again for three minutes at 16:07 while the same runs drained. Nothing was broken: every runner was online and busy, and the runner pods started and finished normally. No write was made.

Impact

  • Services: Gitea Actions CI for ubuntu-latest (and ubuntu-24.04-arm) was slow, not down. The exporter's oldest wait peaked at 1980 s (33 min) at 15:44:30–15:45:00. Measured from the jobs' creation, the oldest waiting job had been created at 14:43:26: the exporter counts from its first scrape that saw a job queued, and a job that needs others is not queued until they finish.
  • Users: the authors of the six pull requests got their checks later: eloro agents, ops-agent and the owner. Other repositories had no job in the queue at 15:44.
  • Data: none.
  • Duration: 6 min of firing in two spells (15:42:24–15:45:15 and 16:07:24–16:10:15). The queue had built up since 14:43 and was still draining at the end of the run (see Resolution and verification).

Timeline

All times UTC, 2026-11-16.

Time Event Source
14:43:26 Run 12107 for eloro/webshop-platform#872 created Gitea admin API actions/jobs?status=waiting (jobs blocked on their needs, step 6)
14:48:02–15:24:53 Runs 12108 (#873), 12109 (#871), 12110 (#866), 12111 (#864) and 12112 (#875) created same
15:14 19 ubuntu-latest jobs queued sum by (labels) (gitea_actions_queued_jobs)
15:42:24 Detected: GiteaActionsStalled fires (max by (labels) (gitea_actions_oldest_queued_job_seconds) > 30 * 60, no for), labels=ubuntu-latest, alert ab6ea88ebab5b3d9 Prometheus /api/v1/rules activeAt, Alertmanager
15:43:24 Taskbase reopens incident #3251, 10 h 21 min after its first firing (2026-11-15) was resolved Taskbase comment on #3251
15:43:49 operator agent: the alert is active and not silenced; the exporter reads Gitea; 17 ubuntu-latest jobs queued, the oldest for 1951 s commands 1–3 below
15:45:15 Last sample of ALERTS{alertname="GiteaActionsStalled",alertstate="firing"}; at 15:45:30 the oldest wait is 1260 s Prometheus query_range
15:46:06 Resolved: Alertmanager lists no GiteaActionsStalled command 8
15:58–16:01 The ubuntu-latest queue grows from 11 to 16 jobs, all from runs 12108–12112 exporter metrics
16:07:24 Fires again, same fingerprint ab6ea88ebab5b3d9; all four runners busy, no new run in the queue Alertmanager, command 9
16:10:15 Last firing sample; at 16:10:25 Alertmanager lists no GiteaActionsStalled and the oldest wait is 1562 s Prometheus query_range, command 10

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 (replicas: 2 in components/gitea/act-runner/deployment.yaml), each with capacity: 1 since #2931, the owner's decision #2898 to keep a runner pod's memory within what a worker can give it (One job per pod);
  • two ephemeral pods of the KEDA ScaledJob ci/gitea-act-runner on the Mac mini (maxReplicaCount: 2 in cluster/mac-mini/ci/overlay/scaled-job.yaml, two 3 GiB dind limits in a 9 GiB VM, Gitea Actions Runners on the Mac Mini).

eloro/webshop-platform's ci.yaml runs 13 jobs per pull request push: changes, lint, test, coverage, migrations, build, chart, e2e shard 2, consumers, image, security and report on ubuntu-latest, and e2e shard 1 and starter-e2e on ubuntu-24.04-arm. It already cancels superseded runs (concurrency with cancel-in-progress: true), and each queued run belonged to a different pull request, so the queue held no superseded runs. Jobs took about 4–8 minutes each (the Mac mini's completed Jobs: 4m1s–8m2s), so four runners work off about 11 jobs in 15–20 minutes. Six runs in 40 minutes left the last runs' jobs waiting for over 30 minutes.

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.

What the agent did

Each command named the context (admin@mgmt-cluster, or mac-mini for the VM), as ops runbook rule 8 requires. Alertmanager and Prometheus were read through the API server's Service proxy (Read Alertmanager and Prometheus on a cluster). Every row of the alert list showed cluster hetzner-mgmt, and node_uname_info listed hetzner-mgmt's four nodes. All steps were read-only, following the runbook.

  1. kubectl get --raw "$AM/api/v2/alerts" and "$AM/api/v2/silences": GiteaActionsStalled active since 15:42:24 with labels=ubuntu-latest (fingerprint ab6ea88ebab5b3d9, not the first firing's 38bcd0becf95a959), no active silence. Watchdog and NodeHighMemoryUsage (namespace monitoring, since 2026-11-15 19:33) were also active.
  2. Exporter checks: pod gitea-actions-exporter-6778f89574-fspr2 Running for 21 h with 0 restarts, ExternalSecret gitea-actions-exporter-token SecretSynced. Its metrics through the Service proxy: gitea_actions_scrape_success 1, gitea_actions_runners{label="ubuntu-latest",status="online"} 4, gitea_actions_queued_jobs{labels="ubuntu-latest"} 17, gitea_actions_oldest_queued_job_seconds{labels="ubuntu-latest"} 1951.
  3. Prometheus's target serviceMonitor/monitoring/gitea-actions-exporter/0 up; the job in both the loaded config and the operator's Secret, with equal hashes (5ed26af9…). $PROM/api/v1/rules: the scrape rule absent(gitea_actions_scrape_success == 1) was inactive, the waiting-job rule firing. min_over_time(gitea_actions_scrape_success[10m]) had been 1 for the whole 26 h read, so the first firing's cause had not come back.
  4. kubectl --context mac-mini -n ci get scaledjob,jobs,pods: ScaledJob READY True, ACTIVE True, PAUSED False. Two Jobs at a time Running or initialising, five Completed in the last 17 minutes (4m1s–8m2s). The one Failed Job, gitea-act-runner-h64wj, was 3 days old.
  5. Gitea admin API GET /api/v1/admin/actions/runners: four ubuntu-latest runners online, all busy: true. Two were gitea-act-runner-754fd96f4f-4t2js and -sq2zc on hetzner-mgmt; their logs showed them starting eloro jobs at 15:44:35 and 15:44:45. The other two were the Mac mini's ephemeral runners. Also online was mac-mini-release (macos-arm64).
  6. Gitea admin API actions/jobs?status=waiting and ?status=in_progress: 24 jobs blocked and 3 in progress, all in eloro/webshop-platform. status=waiting is Gitea's StatusBlocked: jobs still waiting on the jobs they need, not jobs waiting for a runner. Those are status=queued (Gitea's StatusWaiting), the list the exporter reads, which counted 17 ubuntu-latest jobs in step 2 (components/gitea/actions-exporter/gitea-actions-exporter.py, ADR 0022, read 2026-11-16). The runs were 12107–12112, each for a different pull request (#864, #866, #871, #872, #873, #875).
  7. max_over_time of the oldest ubuntu-latest wait: above 30 minutes only at 15:42–15:45. The labelled series exist only since 2026-11-15 23:45, so a week of data is not available yet; #3285 measures it.
  8. Watched the queue every minute from 15:46 to 15:54 and again at 15:56. GiteaActionsStalled was no longer active at 15:46:06. The queue fell from 14 to 11 ubuntu-latest jobs, with the oldest at 1193 s at 15:56:15.
  9. Watched again from 15:57 to 16:09. The ubuntu-24.04-arm wait reached 1649 s before its job started at about 15:59. These jobs run only on the Mac mini's two pods, whose runners also take ubuntu-latest. The ubuntu-latest queue grew to 16 jobs, and the alert fired again at 16:07:24. At 16:09:34 the admin API's status=waiting listed 12 jobs blocked on their needs, all from runs 12108–12112, and all four ubuntu-latest runners busy: true.
  10. Watched every 40 s from 16:09:44 to 16:13:50: the alert was gone at 16:10:25. The queue fell to 9 ubuntu-latest jobs, with the oldest at 1107 s. flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false were empty, as they were at the start.
  11. Follow-ups #3285, #3286 and #3287 created, and 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). That is not a recovery step, so it was left to #3286.

Resolution and verification

The alert resolved by itself each time the oldest job started. The last firing samples were at 15:45:15 and 16:10:15, and Alertmanager no longer listed it at 15:46:06 or 16:10:25. While the queue drains it can fire again for a few minutes; Taskbase then reopens #3251 with a comment. The exporter kept reading Gitea (gitea_actions_scrape_success 1), and Prometheus kept scraping it. The queue was draining at the end of the run; the last check is in the run report of #3251.

Follow-ups

  • 3285 — operator, from 2026-11-23: measure a week of ubuntu-latest and ubuntu-24.04-arm queue waits, find which repositories make the queue, and work out options with their cost.

  • 3286 — the owner decides how many ubuntu-latest jobs run at once: raise concurrency on the Mac mini or hetzner-mgmt, fewer jobs per eloro pull request, or accept the waits and give the rule a for. It depends on #3285.

  • 3287 — technical-writer: the runbook's "A job has waited 30 minutes" case counts the hetzner-mgmt pods too, and gets read-only checks and a roll-forward entry for a backlog.

References

  • Alert: GiteaActionsStalled (max by (labels) (gitea_actions_oldest_queued_job_seconds) > 30 * 60, no for, components/gitea/actions-exporter/prometheus-rule.yaml); runbook
  • Taskbase incident task: #3251 (reopened; its first firing is 2026-11-15)
  • Runs: the operator run of #3251 on 2026-11-16
  • Pull requests: this report's pull request; eloro/webshop-platform#864, #866, #871, #872, #873 and #875 made the queue
  • Runbook sections: GiteaActionsStalled, read-only checks; CI Runners; Gitea Actions Runners on the Mac Mini

Open questions

  • Whether the 24 jobs at 15:43 and the 12 at 16:09 came from status=waiting alone, as steps 6 and 9 record, so that they were all blocked jobs. The operator run report of #3251 would settle it, but Taskbase does not give run reports to agent runs, so this correction (#3291) could not read it. The jobs that waited for a runner are the exporter's status=queued counts: 17 at 15:43 and 16 at about 16:07.

  • How often bursts like this one happen, and how often the rule, which has no for, flaps during one, and whether other repositories wait behind eloro's jobs: one day of data is too little (#3285).