Skip to content

CI queue waits, 2026-11-16 to 2026-11-22

Kind: reference (measurement for the owner's decision #3286)

A week of ubuntu-latest and ubuntu-24.04-arm queue waits on Gitea Actions, measured for #3285 after the CI backlogs of 2026-11-16, 2026-11-18 and 2026-11-21, and the options for how many jobs should run at once.

In short: the four slots that take ubuntu-latest jobs are not hit by short bursts only. They are saturated in working hours. From 07:00 to 17:00 UTC on weekdays they were busy 96 % of the time on average. Over the week, a job waited for a runner 56 % of the time. The oldest wait was over 15 minutes 11 % of the time, and its weekly p95 was 20 minutes. eloro/webshop-platform used 83 % of the runner time. Neither runner set has room for one more job as it is configured today, so more concurrency costs a new worker node.

Setup measured

At most four jobs with ubuntu-latest run at once:

  • two pods of gitea/gitea-act-runner on hetzner-mgmt, one job each (capacity: 1, the owner's memory decision #2898, see CI Runners), on two of the three cx33 workers;
  • two ephemeral pods of the KEDA ScaledJob ci/gitea-act-runner on the Mac mini (maxReplicaCount: 2, 3 GiB of dind memory each in the 9 GiB Lima VM, see Gitea Actions Runners on the Mac Mini). These pods also take every ubuntu-24.04-arm job, so an arm job and an ubuntu-latest job compete for the same two slots.

Method

Window: 2026-11-16 00:00 to 2026-11-23 00:00 UTC, the first seven full days of the exporter's per-label series (they exist since 2026-11-15 23:45). All reads were read-only.

  • Prometheus on hetzner-mgmt, through the API server's Service proxy (kubectl --context admin@mgmt-cluster get --raw "$PROM/api/v1/query_range?...", see Read Alertmanager and Prometheus on a cluster), external label cluster: hetzner-mgmt, step 30 s: max by (labels) (gitea_actions_oldest_queued_job_seconds), sum by (labels) (gitea_actions_queued_jobs) and ALERTS{alertname="GiteaActionsStalled",labels!=""}. The exporter exports a label's series only while a job with that label is queued, so a missing sample counts as 0. That holds only while gitea_actions_scrape_success was 1, so samples where it was not are left out. That is 9 spells of 1–12 minutes, 1.2 hours in all, nearly all between 21:30 and 01:50 UTC. The p95 values below are over all samples, including the time nothing waited.
  • Gitea admin API GET /api/v1/admin/actions/jobs (the last 182 pages of 50, 8659 jobs created in the window). The jobs are grouped by repository. A job's runtime is completed_at - started_at. Jobs of the Mac mini's ephemeral runners have an empty runner_name, because Gitea deletes the runner after its job. Gitea's started_at - created_at is not the queue wait: created_at is set when the run is created, so it also counts the time a job waited on its needs. Its p95 was 49 minutes and its maximum 143 minutes, against the exporter's 43. The exporter's wait is the one used here. It counts from the first scrape that saw the job waiting for a runner.

Queue waits

Oldest queued job (minutes) and jobs queued at once, per day (UTC).

Day ubuntu-latest max p95 max queued time anything queued ubuntu-24.04-arm max p95 max queued
Mon 11-16 33 22 31 81 % 28 17 4
Tue 11-17 30 19 35 61 % 27 14 4
Wed 11-18 43 25 46 61 % 38 21 3
Thu 11-19 29 19 40 66 % 24 13 3
Fri 11-20 26 15 24 44 % 19 9 3
Sat 11-21 35 23 32 69 % 25 18 4
Sun 11-22 22 6 23 12 % 17 0 2
Week 43 20 46 56 % 38 15 4

By hour of day (the 7 days pooled, UTC): oldest wait max and p95 (minutes), most jobs queued at once, and the share of the four slots that were busy (runner time of the jobs that ran, ubuntu-latest and arm together).

Hour 00 01 02 03 04 05 06 07 08 09 10 11
max 22 19 8 13 24 14 24 31 43 35 30 28
p95 17 13 4 5 13 7 17 24 34 26 26 21
queued 26 30 24 12 23 19 25 39 35 31 31 21
busy 59 % 38 % 42 % 36 % 30 % 24 % 72 % 84 % 83 % 94 % 90 % 76 %
Hour 12 13 14 15 16 17 18 19 20 21 22 23
max 26 22 25 33 33 25 24 28 29 26 27 22
p95 17 16 20 24 22 19 17 17 24 17 18 17
queued 21 35 46 33 40 22 32 37 44 20 31 26
busy 92 % 80 % 83 % 84 % 57 % 56 % 52 % 58 % 65 % 59 % 40 % 49 %

Of the 168 hours, the oldest ubuntu-latest wait exceeded 30 minutes in 5 hours, 20 minutes in 39 and 15 minutes in 66. Nothing waited in 31 hours. The worst hours were Wed 11-18 08:00 (max 43, p95 41), Sat 11-21 09:00 (35), Mon 11-16 15:00 and 16:00 (33) and Wed 11-18 07:00 (31). For ubuntu-24.04-arm the wait exceeded 30 minutes in 3 hours, all on Wed 11-18.

Utilisation. The four slots were busy 63 % of the week. From 07:00 to 17:00 UTC on weekdays they were busy 96 % on average, and in 25 of those 50 hours 95 % or more. Outside those hours the average was 48 %. The hetzner-mgmt slots were busy 69 % of the week, and the Mac mini's 56 % (they start a pod per job and run arm jobs). So the long waits come from demand at or above capacity for hours, not from a broken runner.

Jobs that ran, per day: 1145, 1031, 1295, 1253, 757, 968 and 275 ubuntu-latest jobs (6724, about 960 per weekday), and 522 ubuntu-24.04-arm jobs. ubuntu-latest jobs ran for a median of 2.1 minutes (p95 9.4), and arm jobs for 7.4 (p95 10.9). 642 ubuntu-latest jobs were skipped and 479 cancelled before they ran.

Alert firings

GiteaActionsStalled, the waiting-job rule (max by (labels) (gitea_actions_oldest_queued_job_seconds) > 30 * 60, no for), fired 9 times in 4 backlogs. Each firing ended without any change, when the oldest job started:

Label Firing (UTC) Length
ubuntu-latest Mon 11-16 15:42:30–15:45:00 3 min
ubuntu-latest Mon 11-16 16:07:30–16:10:00 3 min
ubuntu-24.04-arm Wed 11-18 07:41:30–07:43:00 2 min
ubuntu-latest Wed 11-18 07:42:30–07:44:00 2 min
ubuntu-24.04-arm Wed 11-18 08:21:30–08:29:00 8 min
ubuntu-latest Wed 11-18 08:13:30–08:40:00 27 min
ubuntu-24.04-arm Wed 11-18 20:42:30–20:44:00 2 min
ubuntu-latest Sat 11-21 09:38:30–09:39:00 1 min
ubuntu-latest Sat 11-21 09:40:30–09:50:00 10 min

In all, ubuntu-latest fired for 46 minutes and ubuntu-24.04-arm for 12 minutes (start of the first sample to the end of the last, at a 30 s step). Each firing opened or reopened an incident task (#3251, #3356, #3562).

The same samples, run through other rules (a for needs the condition to hold without a break):

Rule ubuntu-latest firings ubuntu-24.04-arm firings
> 30 min, no for (today) 6 3
> 30 min, for: 5m 2 (11-18 08:18, 11-21 09:45) 1
> 30 min, for: 10m 1 (11-18 08:23) 0
> 40 min, no for 1 (11-18 08:31) 0
> 45 min, any for 0 0

Who made the queue

Jobs with ubuntu-latest or ubuntu-24.04-arm that ran, by repository:

Repository Jobs Runs Jobs per run Runner time Share of runner time
eloro/webshop-platform 4475 472 9.5 347.9 h 82.7 %
Skatzi/platform 2316 954 2.4 56.3 h 13.4 %
Skatzi/taskbase 204 32 6.4 7.2 h 1.7 %
eloro/shop-eloro 81 13 6.2 3.8 h 0.9 %
Skatzi/agent-runner 66 24 2.8 2.7 h 0.6 %
eloro/webshop-shop-template 49 7 7.0 2.0 h 0.5 %
Skatzi/emiliero, Emmalia/Helloweekly, Skatzi/skatzi-agents 55 32 1.7 0.9 h 0.2 %
All 7246 420.8 h

eloro/webshop-platform's runner time by job (runner hours, median and p95 minutes): test 43.7 h (8.9 / 14.9), e2e (1) 38.5 h (7.3 / 11.6), migrations 36.1 h (6.0 / 13.8), image 34.6 h (6.0 / 11.2), e2e (2) 34.4 h (7.1 / 9.9), lint 33.4 h (4.9 / 9.6), build 26.7 h, starter-e2e 21.6 h, chart 18.8 h, security 14.2 h, consumers 14.1 h, and report, coverage and changes about 7 h each. Eleven gate jobs held a slot for a median of 35 minutes each (5.8 h). A sample of steps showed 3–18 s of job setup and checkout per job. So merging the small jobs would save little runner time: what saves time is not running the heavy jobs on changes that do not need them.

What more concurrency costs

Mac mini, maxReplicaCount: 3. Not possible on this machine. Three pods at 3 GiB of dind each are 9 GiB of limits, the whole VM. The VM would need about 12 GiB to leave ops-agent its share, and the VM takes about 1.2 times its size on the Mac (a 6 GiB VM held 7.2 GiB, ADR 0021). That is about 14.4 GiB of the Mac mini's 16 GiB, which cannot be upgraded. A lower limit per pod does not fit either: a running pod peaked at 2.5–4 GiB. Disk rules it out as well: the baseline of 35.4 GiB plus 3 × 8 GiB is 59.4 GiB, over the image clean-up at 57.6 GiB (Caches and memory). Only a Mac with more memory would change this.

hetzner-mgmt, replicas: 3. Not possible on the current workers. A runner pod requests 2 GiB of memory (its dind), and on 2026-11-23 the workers' memory requests were 93 % (worker-1), 96 % (worker-2) and 79 % (worker-3) of their 7.1 GiB allocatable, leaving at most about 1.4 GiB. In the week, peak memory use was 65–72 % on each worker. A third pod needs a fourth worker: one more cx33 (4 vCPU, 8 GB), the same type as the three today, added in terraform/environments/hetzner-mgmt-cluster/1-bootstrap (count = 3 → 4) and applied by the owner. It costs one more cx33 a month, the same as each existing worker on the Hetzner invoice (about €6 excl. VAT at the list price; this run did not check the price). It also frees request room for the platform pods. Five slots would have been busy about 77 % of the weekday 07–17 hours this week, against 96 % for four.

Options

For the owner's decision #3286, recommended first.

  1. Recommended: a fourth worker and a third runner pod, plus for: 10m on the waiting-job rule. This gives 5 slots instead of 4, at the cost of one cx33 a month and no change to the Mac mini. The for keeps one backlog from opening, closing and reopening an incident: it would have fired once this week instead of 9 times.
  2. Accept the waits and give the waiting-job rule for: 10m. No cost. Waits stay as measured: p95 about 25 minutes in weekday mornings, and up to 43 minutes. The alert still catches a backlog that lasts.
  3. Cut eloro/webshop-platform's CI (an eloro task). Skip test, e2e, migrations and image by path in its changes job. Merging small jobs saves only seconds. This costs no money and attacks the 83 % share, but the gain is unknown until the task measures how many runs touch only other paths.
  4. Raise the waiting-job threshold to 45 minutes. No cost. It would not have fired this week. That is quieter than option 2, but a real stall is seen 15 minutes later.

Options 1 and 3 can be combined. If option 2 or 4 is chosen, the waits will grow as eloro's CI grows, because the slots are already saturated in working hours.