CI Runners (gitea/runner)¶
The shared Gitea Actions runners on hetzner-mgmt are defined in components/gitea/act-runner/.
Two pods run, at most one per worker node. Each pod has one Docker daemon (dind) and one
runner process, act-runner (gitea/runner:6.0.1, the project formerly named act_runner; see
Moving to gitea/runner), with capacity: 1, so two jobs run at
once. From #2683 to #2931 the process ran two jobs (capacity: 2, four at once); one job per pod
keeps a pod's memory within what a worker can give it (One job per pod). Until #2683 each pod ran two processes of capacity: 1 (One process per pod). There were three pods (six jobs) while Renovate's first backlog was being worked off; with
two, one worker has no runner. On hetzner-mgmt that worker is worker-2, which the runners avoid
since #2676 (hetzner-mgmt pod placement), so a rollout's new pod
does not take it at once (see Requests and rollouts). A third pod
(replicas: 3 in deployment.yaml) needs a fourth worker: on 2026-11-23 no worker had 2 GiB of
memory requests free (CI queue waits, 2026-11, owner's decision #3286).
These runners move to the Lima VM k3s on the Mac mini, which runs the same component with a rootless overlay:
see Gitea Actions Runners on the Mac Mini, ADR 0021 and ADR 0022. Until #1459
removes them here, both sets take jobs.
Job image for Go and Node CI. A job that installs Go, Node or the webshop CI tools (sqlc,
squawk, helm, kubeconform, psql, trivy, gosec, pact_verifier_cli, promtool) on every run should use
harbor.prod.skatzi.com/skatzi/ci-base:<tag> as its container: instead, and drop setup-go
and setup-node. It is multi-arch, so it runs natively on both sets of runners; see
container-images/ci-base/README.md
for the tags and the credentials it needs.
On-demand Terraform runner¶
components/gitea/terraform-runner/ defines a separate runner; the
cluster/hetzner-mgmt/gitea/terraform-runner/ overlay sets its Harbor image and zero replicas.
It registers
only the terraform:host label and runs steps inside the
harbor.prod.skatzi.com/skatzi/terraform-runner:latest pod. An init container copies the
gitea-runner executable and entrypoint (run.sh) from gitea/runner:6.0.1 into that pod; since
5.0.0 the runner needs git on its PATH, which the terraform-runner image installs. There is no
Docker daemon or Docker socket. The reusable _terraform-{plan,apply,destroy} workflows select
runs-on: terraform and have no job container. The pod can reach the in-cluster
terraform-state-db-rw.terraform-state.svc.cluster.local service for Terraform state.
The hetzner-mgmt Deployment has zero replicas. To run Terraform, the owner suspends its Flux Kustomization before scaling; otherwise Flux restores the Git value of zero on reconciliation:
flux --context admin@mgmt-cluster suspend kustomization gitea-terraform-runner -n flux-system
kubectl --context admin@mgmt-cluster scale deployment/gitea-terraform-runner -n gitea --replicas=1
kubectl --context admin@mgmt-cluster rollout status deployment/gitea-terraform-runner -n gitea
Start the plan or apply workflow after the runner appears in Gitea Actions. Wait for all Terraform jobs to finish, then return it to zero and resume Flux:
kubectl --context admin@mgmt-cluster scale deployment/gitea-terraform-runner -n gitea --replicas=0
kubectl --context admin@mgmt-cluster rollout status deployment/gitea-terraform-runner -n gitea
flux --context admin@mgmt-cluster resume kustomization gitea-terraform-runner -n flux-system
Shared state between jobs¶
Jobs that run at the same time must not write to the same files. Two places in act_runner
v0.6.1 were shared by default. gitea/runner 5.4.1 no longer shares either for writing (checked
against its source at tag v5.4.1 for #2683):
| Shared state | Shared by | Failure under 0.6.1 | Fix then | gitea/runner 5.4.1 |
|---|---|---|---|---|
Tool cache: Docker volume act-toolcache at /opt/hostedtoolcache |
every job on one Docker daemon | Set up Python fails on a half-installed Python (2026-10-20) |
runner.envs.RUNNER_TOOL_CACHE and AGENT_TOOLSDIRECTORY: /tmp/toolcache: each job installs tools into its own container (commit ba1b125; AGENT_TOOLSDIRECTORY since platform#1455, because the runner image sets it to /opt/hostedtoolcache and actions/setup-python uses it over RUNNER_TOOL_CACHE) |
With runner.tool_cache_mode: none (the default since 3.2.0, and ours) the runner mounts no tool cache volume: RUNNER_TOOL_CACHE is /opt/hostedtoolcache in each job's own container (act/runner/run_context.go, SharedToolCache). Both variables are gone since #2804. Before that pull request merged, Python 3.12 (actions/setup-python@v7) and Go 1.27 (actions/setup-go@v7) installed into /opt/hostedtoolcache with no volume mounted there, in run 11158 (2026-11-11): four jobs on hetzner-mgmt (two of them at once on one pod) and two at once on the Mac mini. That run set both variables to /opt/hostedtoolcache through $GITHUB_ENV, because runner.envs wins over a workflow's env: |
Action cache: /root/.cache/act/<sha256 of uses> in the runner container |
every job of one runner process | Cannot find module '/var/run/act/actions/<hash>/dist/index.js' in actions/checkout, or Set up Python fails (2026-10-21, platform#569) |
One job per process (capacity: 1) and two processes per pod: no two running jobs shared an action cache |
Each commit is its own directory, written once and renamed into place, and a job holds its lock while it copies it (One process per pod). One process runs both of the pod's jobs |
How act_runner v0.6.1 handles the action cache¶
Sources: act_runner v0.6.1 (act is vendored
under act/) and go-git v5.18.0, the version in its go.mod.
- One directory per
usesstring, per process. A remote action is cloned to<ActionCacheDir>/<sha256(uses)>(act/runner/step_action_remote.go,act/model/workflow.goUsesHash).ActionCacheDirishost.workdir_parent, one value for the whole runner, defaulting to$HOME/.cache/act(internal/app/run/runner.go). It cannot be set per job. - Every job updates it. Before an action step, each job runs the clone step on that
directory:
git fetchof all refs, thengit pullof the remote default branch, then a forced checkout of the ref (act/common/git/git.go,NewGitCloneExecutor). This happens for tags, branches and full commit SHAs alike. - The lock covers only the clone step.
acquireCloneLockis a mutex per directory in the process. The step that uses the directory runs outside it: it deletes the action's.gitignoreand copies the directory into the job container (act/runner/action.go,maybeCopyToActionDir). - A checkout deletes, then writes. go-git rewrites a changed file by removing it first
(
worktree.go,checkoutChangeRegularFile). When the tag is an ancestor of the action's default branch, the pull moves the directory to that branch and the checkout moves it back. Every file that differs between the two is deleted and rewritten while another job may be copying it. - Offline mode is not available. act has
ActionOfflineMode(skip the fetch and pull), but act_runner v0.6.1 has no setting for it and never sets it.
Checked on 2026-10-21 by running act's NewGitCloneExecutor from v0.6.1 twice on one directory,
as two jobs do. The second run rewrote 31 files of actions/setup-python@v7, including
dist/setup/index.js and dist/cache-save/index.js. Pinned to its commit SHA (5fda3b9) it
rewrote the same 31 files, so pinning actions to SHAs does not remove the race.
For actions/checkout@v7 the second run rewrote only CHANGELOG.md at the time of the check,
so what removed its dist/index.js during the incident is not confirmed. Gitea's API returned
no logs for those jobs (tasks 10853 and 10854).
One process per pod¶
Since #2683 each pod runs one gitea/runner process, with capacity: 2 until #2931 and
capacity: 1 since (One job per pod). The race of the previous
section is gone in 5.4.1; checked against its source (tag v5.4.1) and the live pods:
- One directory per commit.
FetchAction(act/common/git/fetch_action.go) keeps<sha256 of uses>/<commit>, a.sizesrecord beside it, and areffile with the commit the ref last resolved to. A new commit is downloaded as an archive (or exported from a clone) into a temporary directory and renamed into place byinstallTree. A tree in place is never written again; one that fails its size check (treeIntact) is moved aside whole, under its lock, and replaced by a fresh one. - The lock covers readers too.
AcquireCloneLock(act/common/git/git.go) takes anflockon<dir>.lock(internal/pkg/lock), which holds across processes and between jobs of one process. The fetch holds it on<sha256 of uses>; readingaction.yml(act/runner/step_action_remote.go) and copying the tree into the job container (act/runner/action.go) hold it on<sha256 of uses>/<commit>. Within one process two jobs that fetch the same action at once share one fetch (actionFetches). - Live. On the 5.4.1 pods each
/root/.cache/act/<hash>/holds<commit>,<commit>.lock,<commit>.sizesandref(56 MiB per process on 2026-11-10, against ~260 MiB of 0.6.1 clones).
The pod keeps its two-job total and dind's limits. The runner container has the requests and
limits of the two it replaces (100m CPU, 128 MiB, 2 GiB of ephemeral storage), so the pod's
totals stay as sized below. Under 5.4.1 each process used at most 0.08 core (1-minute rate) and a
working set of 214 MiB (2026-11-07 to 11-10). The runner registers under the pod's name; the
<pod name>-2 runners of earlier pods stay offline in Gitea's runner list, as earlier pods' runners
do. If Cannot find module …/dist/index.js or Set up Python failures come back, return to the
two processes: revert #2683's pull request.
Checked after a working day (#2803, 2026-11-11 19:00 UTC). Both pods
(gitea-act-runner-79f6c8f55-*) had run for 24 hours since #2683 rolled out (merged
2026-11-10 18:48), with no restarts. Of the 93 workflow runs created since 18:55, all
organizations, 9 failed; the two pods ran 306 jobs, 7 of them failed. No failed job's log holds
Cannot find module, and no Set up Python step failed: each failed at a build, test or
deploy-wait step of its own (kustomize build, helm template and kubeconform three times,
changed lines and module floors, govulncheck, an image build, a Windows cross-build). The
runner containers logged no error, only the expected warning that cache eviction settings are
ignored with cache.external_server.
Why there were two processes per pod (act_runner 0.6.1)¶
| Option | Removes the race | Cost |
|---|---|---|
| Per-job action cache directory | — | Not configurable in v0.6.1 |
| Offline mode and actions pinned to SHAs | — | Offline mode is not configurable. A SHA pin still pulls and rewrites (see above) |
capacity: 1, same pods |
Yes | Three jobs at once instead of six |
capacity: 1, six pods (two per worker) |
Yes | A second dind per worker node: +1 CPU and +2 GiB requested per node (+3 CPU, +6 GiB in total), and two 5 GiB limits on a cx33 worker (4 vCPU, 8 GB) |
capacity: 1, two runner processes per pod |
Yes | +50m CPU and +64 MiB per pod. The two jobs share the pod's dind and its limits, as two jobs did with capacity: 2 |
Each process had its own container file system, so its own /root/.cache/act and its own
registration (.runner). act-runner-2 registered under the name <pod name>-2. Both processes
shared the pod's dind, so the act-toolcache volume was still shared, and RUNNER_TOOL_CACHE
and AGENT_TOOLSDIRECTORY stayed. They also shared the pod's actions/cache server, act-cache
(actions/cache); that server, unlike the action cache, is safe for concurrent jobs.
gitea/runner 5.1.1 and later fetch each action commit into its own directory, under a lock that
holds across processes (gitea/runner#1294,
#1316), so #2683 brought capacity back up
(One process per pod).
Jobs inside the pod's cgroup¶
Until #2256, the requests and limits of dind did not cover the CI jobs. Privileged containers share
the node's cgroup namespace, so in dind /sys/fs/cgroup is the node's cgroup root. Its dockerd
(cgroupfs driver, cgroup v2) put every job container in /sys/fs/cgroup/docker/<id>, next to
/kubepods, with cpu.max and memory.max set to max. The kubelet and the scheduler did not
see the jobs. The image's dind script ran its cgroup nesting step against the node's root. On
worker-1 and worker-2, from 2026-10-24 to 2026-10-31, the jobs used ~1 core on average and up to
~3.2 cores outside any pod (node CPU minus pod CPU), while the pod requested 700m. On 2026-10-31
they held worker-3 at 100 % CPU until cilium-agent failed its probes (#2254, incident report
2026-10-31-worker-3-cpu-starved-by-ci-jobs-cnpg-webhook-unreachable).
dind now starts as unshare --mount sh -c … and first bind-mounts its own cgroup
(/sys/fs/cgroup plus the path in /proc/self/cgroup) over /sys/fs/cgroup. The dind script then
treats the container's cgroup as the root: it moves the container's processes into init and
enables the controllers. dockerd creates each job in <container cgroup>/docker/<id>. The job is
counted in the pod's kubelet stats and capped by the container's limits, and it gets the
container's CPU weight under contention. Busybox unshare, the only one in the image, has no
cgroup namespace option, which is why the bind mount is used. kubectl exec and the docker info
probes still work: runc cannot add a process to a cgroup that has controllers enabled, so it adds it to
the cgroup of PID 1 (init).
Each job also gets --cpus=1.5 --memory=2816m (container.options in runner-config.yaml). The
container's memory limit is 3840 MiB (4608 MiB for two jobs from #2498 to #2931, 6 GiB before): the
job at its limit plus dockerd fits (see
Memory and the node). The container's
CPU limit is 2 (3 until #2379): the job gets its 1.5 cores (see
CPU and core services).
This matters for memory. The kubelet sets memory.oom.group on the container, so if the whole
container goes over 3840 MiB, the kernel kills dockerd and the job, and the container restarts. A
job that goes over its own 2816 MiB is killed alone, and its step ends with exit 137. Docker's
OOMKilled flag stays false in this layout. The options reach only the job container.
Workflow services: containers, and containers a job starts with the Docker daemon, are capped
only by the container's limits.
Measured on a test pod with this layout on worker-1, 2026-10-31 (#2256):
| Check | Result |
|---|---|
/sys/fs/cgroup in dind |
the container's own cgroup; kubectl exec lands in <container>/init |
A job container with --cpus=1.5 --memory=2816m |
cgroup <container>/docker/<id>, cpu.max 150000 100000, memory.max 2816 MiB. Nothing new in the node's /docker |
Three yes loops in the job |
1.50 cores, counted to the pod's dind in /api/v1/nodes/worker-1/proxy/stats/summary |
A job over its memory limit (--memory=256m, tail /dev/zero) |
exit 137. oom_kill 1, oom_group_kill 0 in the container's memory.events. dockerd kept running, 0 restarts |
act_runner v0.6.1 exec --container-opts "--cpus=1.5 --memory=2816m" |
the job container got those limits; the job succeeded |
kaniko (library/kaniko-runner:latest) building docs/Dockerfile, --no-push, with the job limits |
succeeded in 81 s, base image pulls included; container peak 1.06 GiB |
To check a live runner, run kubectl --context admin@mgmt-cluster -n gitea exec <pod> -c dind -- sh -c 'cat /proc/$(docker inspect -f {{.State.Pid}} <job container>)/cgroup'.
It should show /kubepods/…/<container id>/docker/<id>. The node's old /sys/fs/cgroup/docker
keeps the empty cgroups of jobs from before the change, and no new ones are added.
Checked on the live runners after the rollout of 2026-10-31 02:25 UTC, pods 66f7bf4b97-scq8d
(worker-1) and 66f7bf4b97-grtzq (worker-2), until 03:10 (#2259):
| Check | Result |
|---|---|
| Pods | both Running on different workers. dind 0 restarts; each act-runner container restarted twice in its first 20 s (cannot ping the docker daemon), as the old pods did |
| Job cgroup | /kubepods/burstable/pod…/<dind container>/docker/<id>, cpu.max 150000 100000, memory.max 2816 MiB. Service containers: max, inside the container's 3 CPU / 6 GiB, memory.oom.group 1 |
Node's /docker |
populated 0 on both nodes once the old pods' jobs ended; newest entries from 2026-10-30 |
| Kubelet stats | dind usageCoreNanoSeconds matched the container cgroup's usage_usec, which includes its docker/ subtree; dind memory 1139 MiB with 1128 MiB of it in jobs |
| CI jobs | 34 jobs of eloro/webshop-platform and Skatzi/platform succeeded, kaniko build of ci-docs included (99 s and 103 s; 82 s median before). One coverage failed on its changed-lines floor, a code failure |
| Memory | oom_kill 0, oom_group_kill 0; container peak 3.2 and 3.8 GiB of 6 GiB |
Durations, against the median of the same job on the old mgmt pods (eloro, about 40 runs each).
The first jobs on a new pod start with an empty docker-data and run up to 2× slower; after
that, jobs that wait on services or I/O take about as long as before (migrations 285 s vs 297 s,
coverage 82–89 s vs 100 s, e2e 206 s vs 241 s), test and image about 20 % longer, and
CPU-bound Go builds clearly longer: lint 408–440 s vs 250 s, build 244–279 s vs 143 s. The
job cgroups were throttled in ~40 % of CFS periods, but the week's data shows those times came from
the new pods' empty docker-data and actions/cache, not from the 1.5-core job cap
(The first week).
In this layout docker stats shows 0 B and 0 %, and dind's log shows failed to enable
controllers and failed to watch oom events for each container. Without a cgroup namespace,
containerd-shim takes the job's path from /proc/<pid>/cgroup (the node's view) and looks for it
under the bind-mounted /sys/fs/cgroup. The limits are set and enforced all the same; read
usage from /sys/fs/cgroup/docker/<id>/ in dind or from the kubelet's stats.
The first week (#2262)¶
Checked over 2026-10-31 02:25 to 11-07 08:15 UTC: 5,830 jobs of nine repositories on the mgmt
runners (gitea-act-runner-*), from the Gitea Actions API (/orgs/{org}/actions/jobs, runner names
from /admin/actions/runners) and the job logs. The pods changed during the week: 3 CPU / 6 GiB until
11-03 10:03 (pods 66f7bf4b97, 5cb58c6689, 5b99c55c47), then 2 CPU (#2379), then 4608 Mi from
11-04 19:10 (#2498) and the 4 GiB actions/cache bound from 11-05 23:22 (#2614).
Exit 137. Three jobs hit --memory=2816m, all image of eloro/webshop-platform, out of 341
that ran on the mgmt runners (0.9 %): job 29378 (release, 7f77c596bc-5rl5n-2, 11-04 21:36), 31629
(pull request, 56b45b58f-vrb4t-2, 11-06 06:25) and 32430 (release, 56b45b58f-vrb4t-2, 11-06
17:58). Each died in kaniko's first pass (--cache=true, --snapshot-mode=redo), at Taking
snapshot of files... after COPY --from=build /out/ / of the scratch stage, with Killed and
exitcode '137'. Only the job died. dind did not restart, and vrb4t's memory.events shows
oom_kill 2, oom_group_kill 0. The pod's dind used 2.95–3.22 GiB, under its 4608 Mi. worker-3's
MemAvailable was 1.85, 0.97 and 1.18 GiB, the range in which the workers stalled
(Memory and the node).
--memory=2816m stays. The cap is sized below what a worker can give a pod, not above what
the largest job needs. A higher cap would have let these three builds go on taking memory on a node
that had about 1 GiB left. The likely result is a worker stall like #2490's instead of one failed
job, and the owner's decision #2503 accepts a failed job, not a stall. The fix is on the job's side:
lower kaniko's peak in eloro/webshop-platform's scripts/build-image.sh, for example with
--compressed-caching=false on the cached pass, which kaniko documents as using less memory on
large builds at the cost of build time. That is eloro's repository, so it needs an eloro task.
Recheck when the soft-eviction measurement (#2554) runs.
dind restarts. Three in the week, none of them from a job's memory limit:
| Pod | When (UTC) | Cause |
|---|---|---|
7b74df78c5-28rz6 (worker-1) |
11-04 13:59 | the pod's memory reached 4.11 GiB under the old 6 GiB limit, and worker-1 nearly stalled (13:57–13:58 probe failures, #2498) |
7b74df78c5-r24hg (worker-3) |
11-04 17:24 | the worker-3 memory stall (#2490) |
7f77c596bc-5rl5n (worker-3) |
11-05 22:37 | evicted at its ephemeral-storage limit (#2614) |
dind runs as a native sidecar, so its restarts are in
kube_pod_init_container_status_restarts_total, not kube_pod_container_status_restarts_total. The
current pods 56b45b58f-rwcwb and -vrb4t had 0 dind restarts and container peaks of 3.89 GiB.
Durations. The jobs of eloro/webshop-platform changed during the week, so the Mac mini's
runners, which ran the same jobs in the same days, are the control: its median rose too, by
about 2× for lint and build. The table shows the median on the mgmt runners and its ratio to the
Mac mini's median for the same period (successful jobs only). The window before the change starts on
2026-10-29, because the Actions API returned eloro's jobs only from 10-28.
| Job | Old pods, to 10-31 02:25 | 3 CPU, job cap 1.5, to 11-03 10:03 | 2 CPU, job cap 1.5, to 11-07 |
|---|---|---|---|
lint |
246 s, 2.96× | 272 s, 2.76× | 351 s, 2.24× |
build |
122 s, 2.03× | 142 s, 1.93× | 226 s, 1.65× |
test |
249 s, 3.04× | 409 s, 3.15× | 787 s, 4.92× |
migrations |
255 s, 2.83× | 343 s, 2.80× | 728 s, 4.85× |
image |
408 s, 3.96× | 541 s, 3.88× | 447 s, 2.79× |
coverage, chart |
99 s, 165 s | 106 s, 161 s | 67 s, 118 s |
- The 1.5-core job cap costs nothing measurable. From the old pods to the 3-CPU pods, every job
kept its ratio to the Mac mini (
lint2.96 → 2.76,build2.03 → 1.93). Thelint408–440 s andbuild244–279 s of the first 45 minutes came from the new pods' emptydocker-dataand actions/cache, not from the cap. On a cache hit,buildtook 118 s on the old pods and 138 s on the 3-CPU pods, against 58 s and 72 s on the Mac mini. --cpusstays incontainer.options. Without it a lone job could use the pod's 2 cores instead of 1.5. But the other runner in the pod was busy for 78 % of the pod's busy time (#2498), and only 3–7 % of thelint,build,test,migrationsandimagejobs ran alone. Paired jobs shared the 2 cores either way, and the cap kept alintfrom taking atestjob's share. Since one job per pod every job runs alone, so this reason no longer holds: the cap now keeps a job to 1.5 of the pod's 2 cores. Whether to raise it is not measured. The container was throttled in 49 % and 58 % of its CFS periods (cpu.statof the current pods, 2026-11-07), against 4–6 % with 3 CPU: the bound is the container's limit, not the job cap.- The 2-CPU limit (#2379) slowed the jobs with service containers. Against the Mac mini,
testandmigrations(Postgres, stripe-mock and mock-oauth2 asservices:) went from about 3× to about 5× after 11-03; in seconds,testwent from 409 to 787 andmigrationsfrom 343 to 728. Their services have no--cpusand share the container's 2 CPU with both jobs, so dropping the job cap would not help them.lint,build,image,coverageandchartdid not slow down against the control. The cost is the price of #2379's room for core services; revisit it together with the CPU limit, not with the job cap. buildis slow mainly from cache misses. Abuildofeloro/webshop-platformthat restores itsgo-build-*cache takes 88–102 s on the 2-CPU pods. One that misses it takes 513–522 s. Misses were 0 of 89 on the 3-CPU pods, 23 of 86 from 11-03, 28 of 53 from 11-04 19:10 and 44 of 66 from 11-05 23:22. The same runner missed the same key up to six times, so saved entries (148–977 MB) did not last. Under the 4 GiB bound,trim.shremoved 117 and 157 cache entries from the current pods in 32 hours. Each runner process has its own cache, and every rollout starts them empty. This is a disk question for Disk (ephemeral storage), followed up in #2615 and #2674; actions/cache has #2674's measurement and change.
Requests and rollouts¶
The pods are spread one per worker (topologySpreadConstraints, DoNotSchedule) and replaced
one at a time (maxSurge: 0, maxUnavailable: 1). The scheduler ignores terminating pods in the
spread. With two pods on three workers one worker has no runner, but on hetzner-mgmt that is
worker-2, which the runners avoid: a cluster patch gives them a preferred node affinity for any
worker but worker-2, kept for the platform-core pods (hetzner-mgmt pod placement,
2676). So the new pod goes to the node whose old pod is still draining its jobs (up to 30¶
minutes), and starts at once only if that node has room for both pods' requests. Otherwise it
goes to worker-2 only if worker-2 has room for its request (1207 MiB free on 2026-11-07, less than
the 2208 MiB a pod requests), and else stays Pending until the drain ends.
dind is a native sidecar (an init container with restartPolicy: Always). The runner container
starts only after its startup probe gets an answer from docker info. A pod is ready once dind
answers docker info and the runner has registered (/data/.runner), and with
minReadySeconds: 30 it counts as available only 30 seconds after that. Only then does the
Deployment take down the next old pod. In the rollout of 2026-10-31 02:25 UTC (#2259), before this
change, each runner started before dockerd listened and restarted twice ("cannot ping the docker
daemon"). The new pod counted as available in the seconds before the crash, so both old pods
drained at the same time (#2263).
On shutdown the runner gets SIGTERM first and finishes its jobs (shutdown_timeout, 30 minutes).
dind gets SIGTERM only after the runner has exited, so the jobs run on a live dockerd to the
end. There is no preStop wait. The dind shell (PID 1) passes SIGTERM on to dockerd. Before, it
had no handler and ignored it, and the old preStop waited for docker ps -q to be empty, which
also counts containers that are not jobs. In that rollout the old pods stayed Terminating until
the 1900-second grace period ended, almost 30 minutes after their last jobs ended.
The requests are sized on what a pod and its jobs use. Before #2256 they were sized on the pod
alone (2026-10-21: CPU p95 651m, memory max 936 MiB), which did not include the jobs. dind
requests 1 CPU and 2 GiB (1536 MiB until #2498; for memory see
Memory and the node). The jobs' 7-day use on worker-1 and worker-2 to 2026-10-31 was CPU
~1 core on average (p75 ~1.9, p95 ~2.6) and memory p95 ~1.1 GiB above the node's base (max
~3.3 GiB for two jobs). dind's own use is at most 243 MiB. Bursts above the CPU request use the
node's spare CPU up to the 2-CPU limit (see CPU and core services). Under contention the jobs get the pod's share by its request, so other pods keep their
own requests. A pod requests ~1.1 CPU and ~2.2 GiB in all (2208 MiB with #2674's act-cache
sidecar; ~1.6 GiB until #2498). On 2026-10-31 the
old requests left room for one runner pod on each worker; on 2026-11-04 only worker-1 (2.28 GiB) and
worker-3 (4.03 GiB) had room for one, worker-2 (0.14 GiB) none. Keep the spread
strict: with ScheduleAnyway a rollout can put two runners, and two 4.5 GiB limits, on one cx33
worker.
Checked on 2026-10-27, six days after the change (#1427). No container was OOM-killed. The rollouts after the first one started each new pod right away, next to the old pod that was still draining. The first rollout to the new requests (2026-10-21 19:10 UTC) was different: one pod waited 32 minutes on worker-3. The old pod there still held the old 2176 MiB request, and adding the new pod would have needed 7552 MiB of the node's 7245 MiB. Expect the same wait once whenever requests go down. A worker can also fill up with other pods. On 2026-10-27, Gitea, two agent runners and a runner pod used 85% of worker-1's memory requests, which is less room than one runner pod needs. In that case the new pod went to the free worker; since #2676 the free worker is worker-2, and the new pod goes there only when worker-2 has room for it.
The rollout of 2026-10-31 02:25 (#2259) replaced both pods at once. The containers have no
readiness probe, so the first new pod counted as available in the seconds before act-runner
first failed on dockerd, and the Deployment scaled the old ReplicaSet to 0. Both old pods drained
together; their last jobs ended at 02:29, but they stayed Terminating until the end of the
1900 s grace period (02:57).
Checked on 2026-10-31, in the first rollout with dind as a sidecar (04:04 UTC, #2264). The
pods were replaced one at a time: the first new pod was Ready at 04:04:25 and the second old pod
got its deletionTimestamp at 04:04:55, 30 s later. In both new pods dind, act-runner and
act-runner-2 had 0 restarts, and the runner logs have no "cannot ping the docker daemon". The
old pods still ran the old spec, so they still stopped the old way. By 04:16 they had no
containers left in dockerd (docker ps was empty) and the runner containers had exited
(kubectl exec answered "container not found" while the pod status still listed them as
running). dind's shell (PID 1, no SIGTERM handler in that spec) and dockerd were the only
processes left, so both pods stayed Terminating until the end of the grace period (04:35 and
04:36). The quick shutdown of the new spec shows only in the next rollout (#2270).
CPU and core services¶
On 2026-11-03 at 06:00 UTC worker-1 ran at 94 % CPU (load 12–14 on 4 vCPU). The runner pod there
used 2.28 cores, inside its 3-CPU limit, next to Gitea and the Taskbase API (#2379). The rest of
the node was ~0.36 core in other pods and ~1 core outside any pod (kubelet, containerd, the
kernel's network and disk work). A 3-CPU limit left a cx33 worker (4 vCPU, 3.95 allocatable)
too little for everything else. Taskbase's health probe (https://taskbase.skatzi.com/api/health,
probe_duration_seconds) shows the effect: over 2026-11-01 to 11-03 it took 27 ms at the median
and 54 ms at p95 while worker-1 was under 50 % busy, and 63 ms and 240 ms while it was over 85 %.
Measured (5-minute rates, 2026-10-31 to 11-03, the days since jobs run inside dind's cgroup):
| What | Value |
|---|---|
| Runner pod, while jobs run | p75 ~1.85, p95 ~2.35, p99 ~2.6, max 2.84 cores |
| Runner pod, median | 0.06–0.2 cores (idle most of the day) |
act-runner, act-runner-2 |
p99 53m, max 0.57 cores (start and action clones) |
| Worker-1 outside pods | 0.55 cores with the runner idle; 0.85 (p95 1.1) with it busy |
| Other pods on worker-1 while CI ran | 0.38 cores, p95 0.74 |
dind throttled |
4–6 % of CFS periods with the 3-CPU limit |
Limits. dind's CPU limit is 2 and the runner container's is 1 (two containers of 500m
before #2683). A busy hour is then
about 2 + 0.06 + 0.85 + 0.4 ≈ 3.3 of 4 cores, ~83 %, below the 85 % target. When other pods
peak at the same time (p95 of both), the node can still go just over 85 %, because the rest is
not CI. --cpus=1.5 per job stays: a job alone runs as before, and two jobs at once share 2
cores. CPU-bound builds (lint, build of eloro/webshop-platform) took longer when two ran on
one pod; since #2931 a pod runs one job, which gets its 1.5 cores.
Requests. dind keeps its 1-CPU request (a pod requests 1.1). The request is the pod's
cpu.weight under contention, so a larger one would take CPU from core services, whose requests
are 25–500m. It is about the pod's average use while jobs run. A request of 1.6 would not fit on
worker-3 (1.27 CPU unrequested on 2026-11-03). The spread across workers comes from
topologySpreadConstraints, not from requests.
Priority. The runner pods use the PriorityClass ci-runner (priority-class.yaml, value
-1000, preemptionPolicy: Never). Every other pod has priority 0, a system class, or
stateful-service (1000, the databases and other stateful services, #2544). A Pending
core service preempts a runner pod. The runner pod gets its grace period (1900 s), so its jobs
can finish, and it waits for room again. A runner pod never preempts anything, and under node
pressure the kubelet evicts it first among the pods over their request. Priority affects scheduling and eviction, not how CPU is
shared on a node; the limit does that.
Not done. A PriorityClass for core services above the default would need a patch to each of
their HelmReleases and Taskbase's manifests, which live in Skatzi/taskbase; one class below the
default for CI has the same effect. Only the stateful services have one, stateful-service, so
the kubelet's memory eviction takes them last
(Memory and the node). Anti-affinity between runners and core services leaves no
node. On three workers, Gitea and the Taskbase API ran on worker-1, OpenBao on worker-2, and
Keycloak and the Taskbase MCP on worker-3 on 2026-11-03. Pods move: on 2026-11-04 Gitea ran on
worker-2 and the Taskbase API and MCP on worker-1.
Check after a change. These queries go to Prometheus (monitoring-kube-prometheus-prometheus):
# busiest worker, 5-minute CPU
max(1 - avg by (instance) (rate(node_cpu_seconds_total{mode="idle"}[5m])))
# runner pods' CPU
sum by (pod) (rate(container_cpu_usage_seconds_total{namespace="gitea",pod=~"gitea-act-runner-.*",container!=""}[5m]))
# Taskbase latency
probe_duration_seconds{instance="https://taskbase.skatzi.com/api/health"}
A "busy" minute is one in which both runner pods use more than 1.5 cores:
count((sum by (pod) (rate(container_cpu_usage_seconds_total{namespace="gitea",pod=~"gitea-act-runner-.*",container!=""}[5m]))) > 1.5) == 2.
Checked on 2026-11-04 (#2394), from 2026-11-03 11:15 UTC (the rollout of PR #1137, pods
84667c4f8c, then 7b74df78c5 from 14:19, which changed only the trim ConfigMap) to 2026-11-04
18:25, 1-minute steps. The runner pods ran on worker-1 and worker-3. "Before" is 2026-11-01 00:00
to 11-03 06:00, under the 3-CPU limit.
| Check | Result |
|---|---|
| Live pods | pass. 28rz6 (worker-1) and nlzlc (worker-3): priorityClassName: ci-runner, dind limit 2 / request 1, act-runner and act-runner-2 limits 500m |
| Busy minutes | 925 of ~1870, spread over the whole day and night |
| Busiest worker in busy minutes | worker-1: p50 71 %, p95 78 %, max 91 %. worker-3: p95 76 %, max 81 %. 20 busy minutes over 85 %, all on worker-1 on 11-03 (15:04–15:12, 15:17–15:23, 16:15–16:18) |
| What else used worker-1 then | the hourly renovate CronJob pod, 0.55–0.66 cores, next to the runner pod's 1.6–1.96 cores and ~0.85–1.1 cores outside pods. In those 31 hours, Renovate pods ran mostly on worker-2 and sometimes on worker-1; no busy minute went over 85 % after 11-03 16:18 |
| Taskbase probe, busy minutes | p50 26 ms, p95 103 ms (before: 46 ms and 399 ms) |
| Taskbase probe, by worker-1 load | under 50 %: p95 73 ms. 50–85 %: p95 91 ms (before: 254 ms). Over 85 %: p95 405 ms in 28 minutes, including the minutes below |
lint, successful jobs |
p50 299 s, p90 500 s, max 836 s (n=93). Under the 3-CPU limit from 10-31: p50 269 s, p90 330 s, max 777 s (n=88) |
build, successful jobs |
p50 103 s, p90 528 s, max 971 s (n=85). Under the 3-CPU limit: p50 138 s, p90 269 s, max 449 s (n=84) |
The 2-CPU limit holds a busy worker below 85 % except when another CPU-heavy pod lands on the same
node. The one seen was Renovate (limit 1 CPU, request 250m, no PriorityClass). Lowering dind's
limit again would not have avoided it. A typical lint or build takes as long as before. The
slow tail is longer: most jobs over 400 s (lint) or 300 s (build) ran while a second Go job
(lint, build or e2e) was on the same pod, and their slowest step was go vet or
go build -cover at 150–290 s. Before the change, two jobs had up to 3 cores; now they share 2.
Renovate stays off runner nodes. The renovate CronJob pod (components/renovate/helmrelease.yaml)
has a preferredDuringSchedulingIgnoredDuringExecution pod anti-affinity (weight 100) on
app=gitea-act-runner in namespace gitea, by kubernetes.io/hostname (#2505). With two runner
pods on three workers, each run goes to the worker without one. It is a preference: when every
worker has a runner (during a rollout, or with a worker down), the run still starts next to one.
A PriorityClass would not help here, since priority does not share CPU on a node (see
Priority above), and the chart has no value for one.
Checked on 2026-11-04 (#2505), before the change, 2026-11-03 22:12 to 11-04 22:12 UTC, 1-minute steps, runner pods on worker-1 and worker-3: 745 busy minutes, none over 85 %. Renovate ran 23 times on worker-2 and 6 times on worker-3 (from 18:00, every hour). All 8 busy minutes on worker-3 at 80–85 % fell in those runs (18:05–22:11). The same query 24 hours after the change should show no busy minute over 85 % with a Renovate pod on that node:
# busy minutes, per worker over 85 %
(1 - avg by (instance) (rate(node_cpu_seconds_total{mode="idle"}[5m]))) * on(instance) group_left(nodename) node_uname_info > 0.85
and on() (count((sum by (pod) (rate(container_cpu_usage_seconds_total{namespace="gitea",pod=~"gitea-act-runner-.*",container!=""}[5m]))) > 1.5) == 2)
# Renovate CPU per node
sum by (node) (rate(container_cpu_usage_seconds_total{namespace="renovate",container!=""}[5m]) * on(namespace,pod) group_left(node) max by (namespace,pod,node) (kube_pod_info{namespace="renovate"}))
Checked on 2026-11-06 (#2560), after the change (merged 2026-11-04 23:57), 2026-11-05 00:00 to 11-06 00:00 UTC, 1-minute steps, runner pods on worker-1 and worker-3: 751 busy minutes, 12 over 85 %, all on worker-3, 10 of them with a Renovate pod running there (06:04–06:05, 07:05, 12:11–12:14, 13:12, 16:05, 22:04). Renovate ran 28 times, every one on worker-3, at up to 0.81 cores. The anti-affinity was live but could not take effect: worker-2 then had 1309 Mi of requests free, less than the 1536 Mi the Renovate pod requests, and worker-1 has a runner too, so the scheduler picked between two runner nodes. #2616 counted the same day over 2026-11-05 00:05 to 11-06 00:05 UTC and found 13 busy minutes over 85 %, also all on worker-3 with 10 next to Renovate; the windows differ by five minutes at each end, which is where the counts can part. The next step is Room on worker-2 below, and the same queries 24 hours after that change should show the runs on worker-2.
These measurements are not CPU limit effects:
- The Taskbase probe failed (5 s timeout) on 2026-11-04 at 13:57–13:58, 15:03–15:07 and
17:17–17:22. At 13:56 the runner pod on worker-1 used 4.1 GiB, worker-1's
MemAvailablefell to 1.1 GiB, and the kernel used 2.2 cores of system time. This is the memory pattern of the 17:17 worker-3 stall (#2490). - At 15:03–15:07 all four nodes went over 85 % at once, while each node's non-idle modes added up to under one core. Prometheus missed its scrapes from 15:08 to 15:12. The node-wide peaks of 15:07 and 15:13 are not CI load, and this check did not find their cause.
Room on worker-2 (#2616). The preference only takes effect when worker-2, the worker without a
runner, has the 1536 Mi Renovate requests free. On 2026-11-06 its 30 running pods requested
5936 Mi of 7245 Mi (1309 Mi free). Completed pods such as *-restore-drill or gitea-preupgrade
are not counted, so they are not the cause. Most requests there are within ~25 % of their maximum
working set since 2026-10-25, and several are under it (Prometheus 1240 Mi for 1709 Mi,
kustomize-controller 64 Mi for 226 Mi). worker-1 and worker-3 have no room to take a pod over.
So the change lowers the two requests that were set higher than that rule:
| Container | Max working set | Request before | Request after |
|---|---|---|---|
gitea |
678 Mi | 1 Gi (never measured) | 848 Mi (+25 %) |
grafana |
900 Mi (951 Mi before 2026-10-21) | 1200 Mi | 1024 Mi (+14 %) |
| Grafana sidecars, each | 88 Mi | 136 Mi | 112 Mi |
That leaves 1709 Mi free on worker-2 (1.67 GiB). Grafana is the one below +25 %: it has no limit, and a Grafana outage under memory pressure costs less than CI next to Renovate.
Checked on 2026-11-07 (#2617), after the change (reconciled 2026-11-06 00:37), 2026-11-06 00:40
to 11-07 00:40 UTC, 1-minute steps, runner pods on worker-1 and worker-3: 711 busy minutes. worker-2
had 1784 Mi free at first, and Renovate ran there 17 hours in a row (01:01–17:01, 18 pods). It fell
to 1656 Mi around 04:00 and to 1528 Mi at 17:42, when the cloudnative-pg operator pod (128 Mi)
was rescheduled onto worker-2: 8 Mi under the 1536 Mi Renovate requests. From 18:01 every run (7)
went back to worker-3. Busy minutes over 85 %: 96 on worker-1, none with Renovate, and 6 on
worker-3, all 6 with a Renovate pod there (18:12, 20:10, 21:05, 00:05–00:07). So the anti-affinity
works when worker-2 has room, but the room does not last: pods that move during rollouts take it
(on 11-07 at 08:30 worker-2 had 1269 Mi free, after tasks-dev, tasks-prod, plugin-barman-cloud
and platform-docs pods were rescheduled there). The margin of 1709 Mi was too thin to hold.
Memory and the node¶
On 2026-11-04 at 17:16 UTC worker-3 stopped answering for about 6 minutes without an OOM kill or a
reboot (#2490, incident report 2026-11-04-worker-3-memory-stall-gitea-down). Two image jobs of an
eloro/webshop-platform release ran on its runner pod, whose memory rose from 1.4 to 3.4 GiB in 90
seconds next to 2.3 GiB of other pods. MemAvailable fell to 0.63 GiB, the kernel thrashed, and the
node went NotReady. Taint-manager then evicted gitea-postgresql-0, and Gitea was down until its
volume had moved to worker-1 (17:17–17:30). The pod then requested 1.6 GiB and could use 6 GiB plus
whatever its runner containers took (no limit).
Measured (#2498, 2026-10-31 02:25 to 11-04 18:10 UTC, since jobs run inside dind's cgroup; pod
memory from cAdvisor, which jobs ran where from Gitea's job records):
| What | Value |
|---|---|
dind RSS while two jobs ran on the pod |
p50 0.47, p95 1.84, p99 2.68, max 3.94 GiB (working set max 4.11) |
| Minutes above 3 GiB | 8 in 4.6 days, each two image jobs of one release on one pod |
| One job alone, pod RSS over its level before the job | image median 2.0, max 2.5 GiB; image-index 1.7; report 1.5; lint 1.2; build 1.0; the rest under 1 GiB |
| Both runners of a busy pod busy | 78 % of the pod's busy time |
| All four runners busy | 31 h of the 112 h (53 % of the time any job ran) |
act-runner, act-runner-2 |
median 37 MiB, RSS max 517 MiB (action clones) |
A cx33 worker |
7.55 GiB; allocatable 7.08 GiB (systemReserved 384Mi, evictionHard 100Mi); outside pods ~0.9 GiB median, ~1.2 GiB in the stall |
| Other pods on one worker | 3.2–5.3 GiB at their 7-day max |
Limits and requests (two jobs per pod, #2498 to #2931). dind requested 2 GiB and could use
4608 MiB. The request was about the p97 of the pod's use and the most worker-1 could place on
2026-11-04. The limit was the measured max with ~0.5 GiB to spare. The runner container has a
1536 MiB limit (two containers of 768 MiB before #2683). --memory=2816m per job stays, because
an image build needs ~2.5 GiB; in the first week 3 of 341 image builds went over it and
failed alone with exit 137 (The first week). For one job per pod see
One job per pod.
What this does not fix. A worker gives a runner pod 7.55 GiB minus ~1.2 GiB for the system,
minus its other pods. With 2.3 GiB of other pods (worker-3 at the stall), that is ~4 GiB, and the
kernel stalls well before 0. Two image builds on one pod (~4.1 GiB) do not fit. Requesting that
peak (two pods at ~4.1 GiB, 8.2 GiB) does not fit either: on 2026-11-04 the three workers had 6.45 GiB
unrequested without the runners, worker-2 0.14 GiB of it. Every setting that keeps four jobs at once
without new capacity relies on the other pods on the node using less than they request.
Decision (#2503, 2026-11-04). The owner kept two jobs per pod with the limits above, plus the
kubelet soft-eviction net (#2502), and no new capacity. The other options were one job per pod
(two jobs at once on hetzner-mgmt instead of four), a fourth worker or larger workers so a pod can
request what it uses, and a 3.5 GiB pod limit, which would kill both jobs of a paired release
image build. Under memory pressure the kubelet evicts the runner pod, so its jobs fail and the
worker keeps running. Revisit the decision when the 7-day measurement after the eviction patch is
applied (#2543, measured in #2554) shows runner pods evicted for memory more than about once a week. The replay below
already predicts more than that. One job per pod would remove most of those evictions.
Revisited on 2026-11-13 (#2898): one job per pod, see One job per pod. The
7 days after the patch (#2554) measured 22 runner evictions with two jobs per pod and 1 with one, see
Seven days after the patch.
Soft eviction (#2502). The workers' kubelet gets evictionSoft memory.available: 2Gi (grace
10 s, evictionMaxPodGracePeriod: 10) from a worker-only Talos patch,
terraform/environments/hetzner-mgmt-cluster/1-bootstrap/talos-worker-kubelet-patch.yaml. A person
applies it with talosctl, one worker at a time. Until then the workers run without it. Under the
threshold the kubelet evicts the pod furthest over its request, and among those over their request
the runner pod (ci-runner, -1000) goes first. The pod gets 10 s instead of its 1900 s grace
period, so both its jobs end, as at the dind limit. The kubelet's memory.available reads ~0.6 GiB
above MemAvailable (it counts no kernel memory), and the workers began to thrash at 1.6–2.4 GiB of
it. Replayed on the 7 days to 2026-11-04, 2 GiB would have acted ~30 s ahead of three of the four
stalls. It would also have evicted 30–63 times a week, about three quarters of them a runner pod,
most often on worker-3. That is more than #2503's "about once a week". The stateful services have
the PriorityClass stateful-service (1000, #2544), so among the pods over their request every other
pod, the runner first, goes before them. A database under its request goes after every pod over its
own. The data, the settings and the rollout are in
hetzner-mgmt worker memory eviction.
Rollouts. A higher request can make a new pod wait, as it did in the first rollout to the
2256 requests. Next to a draining old pod on worker-1, the new pod needs 2.1 + 1.6 GiB, which¶
worker-1 does not have, so the new pod waits up to the 30-minute drain.
Check after a change:
# runner pods' dind memory, 1-minute peaks
max by (pod) (max_over_time(container_memory_rss{namespace="gitea",pod=~"gitea-act-runner-.*",container="dind"}[1m]))
# workers' available memory
min by (instance) (node_memory_MemAvailable_bytes)
# memory over the container limit (dind restarts; it is a sidecar, so the init-container metric)
# and kernel OOM kills per node
kube_pod_init_container_status_restarts_total{namespace="gitea",container="dind"}
increase(node_vmstat_oom_kill[1h])
One job per pod (#2931)¶
With the soft-eviction net live, two jobs per pod evicted runner pods far more often than #2503's
"about once a week". The owner chose one job per pod (#2898, 2026-11-13): capacity: 1 in
runner-config.yaml, so hetzner-mgmt runs two jobs at once instead of four, at no extra cost. The
Mac mini runners still add their own. The soft-eviction patch stays.
Before. From the patch (#2543; worker-3 2026-11-11 19:10, worker-1 19:21, worker-2 19:32 UTC)
to 2026-11-13 06:25 UTC, 35 hours, the kubelets evicted runner pods for memory 22 times: 17 on
worker-3 and 5 on worker-1. That is about 15 a day, against #2503's one a week (incident report
2026-11-12-worker-3-ci-runner-memory-evictions-frequent, #2897). At each eviction the pod ran
these jobs, counting jobs that had ended in the minute before: one job 5 times, two 9 times, three
8 times. An image build of eloro/webshop-platform was among them 20 times. All 5 single-job
evictions were such a build, on worker-3.
Measured (2026-11-05 to 11-13 UTC, dind working set at 30 s, matched to Gitea's job records
by runner name):
| What | Value |
|---|---|
dind while the pod ran one job |
p50 0.54, p95 1.99, p99 2.80, max 3.40 GiB |
dind while it ran two or more |
p50 1.02, p95 2.50, p99 3.11, max 3.98 GiB |
image of eloro/webshop-platform, alone on the pod (n=23) |
peak p50 2.77, max 2.95 GiB; 2.57 GiB (median) over the pod before it |
e2e, changes, lint, report, coverage, build, alone |
max peaks 1.4–2.0 GiB; median peaks 0.2–1.6 GiB |
Kubelet memory.available without the runner, since the patch |
worker-3 p50 4.51, p5 3.45 GiB; worker-1 p50 4.85, p5 3.92 GiB |
The kubelet's memory.available was estimated as MemFree + Inactive(file) from node-exporter,
plus the offset to the kubelet's own value in the eviction messages (0.94 GiB on worker-3, 0.77 on
worker-1).
Sizing. dind requests 2 GiB, the p95 of one job, unchanged. Its limit is 3840 MiB, the
one-job max with ~0.3 GiB to spare and an image build's peak with ~0.8 GiB. The runner and
act-cache containers are unchanged, so a pod still requests 2208 MiB and rollouts behave as in
Requests and rollouts. The request is not set to an image build's peak,
for two reasons:
- The kubelet evicts pods over their memory request first, by priority, before any pod under its
request. A runner that requests its peak is almost never over it. Under pressure the kubelet
would then evict the platform pods over their request instead: on worker-3 in the 2 days to 11-13
these were
tasks-db-1(stateful),harbor-registry,platform-tasks-mcpand a container agent. With a 2 GiB request, animagebuild goes over it, so the runner pod goes first, as #2503 intended. - It would not prevent the pressure. A
cx33worker's allocatable (7245 MiB) is ~1.5 GiB more than the soft threshold leaves for pods (7.55 GiB − 2 GiB − ~0.9 GiB outside pods), so the scheduler can place more than the node holds without an eviction.
What to expect. One job per pod removes the evictions caused by two jobs together: their peaks
of 3.1–4.0 GiB no longer occur. It does not remove the single image build of
eloro/webshop-platform. Added to the replay above, a pod at 2.8 GiB would have put worker-3
under the 2Gi threshold 93 % of the time since the patch, and worker-1 39 %. From 11-05 to 11-13,
8 of the 20 such builds that ran alone on a pod took their node under it (6 of 13 on worker-3, 2 of
7 on worker-1). Since the patch, 2 of the 6 that ran alone were evicted. With 9–90 of these builds a
day, expect evictions to continue at several a day, almost all of them this build, rather than
about one a week. The owner chose, in #2933 (2026-11-13), to make the build use less memory (#2987).
After (#2932). From the rollout (the first new pod Ready at 2026-11-13 06:58 UTC) to 11-15
07:00 UTC, 48 hours, the kubelets evicted one runner pod for memory: 754fd96f4f-4bhsv on
worker-3 at 11-13 08:47. It ran one job, an image build of eloro/webshop-platform (job 41308,
which failed), with dind at 2.81 GiB, as predicted above. That is 0.5 a day, against about 15 a
day before. kubelet_evictions{eviction_signal="memory.available"} rose by 4 (2 on worker-3, 2 on
worker-1), but the other 3 were miki-container-agent pods in agent-runners (11-14 13:00, 13:15
and 13:31), each at 3.0–3.4 GiB, while both runner pods were idle at 0.25 GiB or less. Two more
runner pods left by preemption, which is by design (Priority in CPU and core services):
l2hkr (worker-3, PreemptionByScheduler at 11-14 12:01), whose image job finished in the
grace period at 12:05, and 7z6jc (worker-3, 13:00, idle, no job lost) as the next agent pod came
to the node. The replacement pods waited 4–18 minutes for room, so hetzner-mgmt ran one job at a
time then.
Most of the drop is #2987, not this change: eloro/webshop-platform commit 068b0a15 (11-13
~20:00 UTC) runs kaniko with --compressed-caching=false and sets GOMAXPROCS=2 for go build. The runner eviction came before
it, and there were none in the 35 hours after it.
What, dind working set at 30 s |
Value |
|---|---|
image of eloro/webshop-platform, before #2987 (11-13 08:10–20:37, n=8) |
peak 2.45–2.88 GiB, median 2.74 |
| the same, from 11-13 20:44 (n=16 completed) | peak 0.45–1.29 GiB, median 0.70 |
| Any other job, alone on the pod | max peak 1.76 GiB (e2e); eloro/shop-eloro image 1.68 |
| The pod running its one job, the whole 48 h | p50 0.46, p95 1.16, p99 1.69, max 2.88 GiB; over the 2Gi request 0.9 % of the time |
| The same, since #2987 | p50 0.44, p95 1.07, p99 1.44 GiB |
dind restarts (kube_pod_init_container_status_restarts_total) |
0 in all six pods; no OOM kill, the max is 77 % of the 3840Mi limit |
Kubelet memory.available, estimated as above, since #2987 |
worker-3 p50 4.36, p5 3.58 GiB; worker-1 p50 4.37, p5 3.18 GiB; under 2Gi only during the agent-pod evictions |
Queue time (started_at - created_at, in minutes, by the hour the job was created, UTC).
Before is 11-11 00:00 to 11-13 00:00 (Wednesday and Thursday), after is 11-13 07:00 to 11-15 07:00
(Friday to Sunday morning). The load is not the same: 2227 started jobs before (1457 on
hetzner-mgmt, 770 on the Mac mini), 1161 after (657 and 504). The busy hours are the hours with at
least 60 jobs after. started_at - created_at includes the time a job waits for its needs:, so
the value in brackets is the p95 from when the job could start: the later of created_at and the
last job of the same run attempt that completed before it started. Jobs whose runner record is gone
(the Mac mini's runners are ephemeral) and whose labels are not macos-arm64 count as the Mac
mini's. 315 rerun jobs whose started_at is before created_at are left out.
| Hour | hetzner-mgmt before, p50 / p95 (ready p95) | hetzner-mgmt after | Mac mini before | Mac mini after |
|---|---|---|---|---|
| 00:00 | 4.8 / 16.3 (6.5) | 9.3 / 54.6 (19.6) | 6.2 / 29.2 (6.2) | 9.4 / 42.9 (16.4) |
| 01:00 | 8.1 / 27.9 (14.5) | 15.1 / 20.9 (19.1) | 10.8 / 19.9 (14.5) | 15.9 / 20.6 (18.8) |
| 02:00 | 3.5 / 10.6 (6.5) | 2.1 / 9.2 (2.9) | 4.7 / 11.2 (9.0) | 2.4 / 9.5 (7.0) |
| 03:00 | 1.2 / 17.1 (2.7) | 1.4 / 6.5 (3.5) | 1.6 / 12.7 (3.7) | 1.3 / 5.4 (2.4) |
| 08:00 | 10.7 / 32.2 (14.4) | 8.4 / 26.4 (5.5) | 12.3 / 39.5 (13.8) | 10.9 / 20.2 (5.3) |
| 09:00 | 4.2 / 24.8 (4.9) | 1.9 / 12.4 (2.0) | 4.3 / 19.4 (6.6) | 1.8 / 14.2 (2.3) |
| 13:00 | 5.3 / 22.6 (0.1) | 1.9 / 13.7 (9.7) | 3.9 / 15.7 (0.4) | 2.1 / 13.2 (8.9) |
| 18:00 | 7.2 / 27.6 (2.1) | 3.8 / 24.8 (4.6) | 6.5 / 14.7 (1.9) | 7.8 / 28.8 (6.6) |
| 19:00 | 0.5 / 16.4 (1.3) | 11.3 / 35.2 (7.8) | 0.5 / 7.8 (1.5) | 12.7 / 26.0 (9.7) |
| 20:00 | 3.1 / 15.7 (10.9) | 7.1 / 21.5 (4.8) | 4.2 / 22.1 (13.4) | 7.5 / 33.7 (3.9) |
| 21:00 | 9.8 / 42.7 (16.2) | 7.8 / 32.4 (6.4) | 10.0 / 31.1 (15.4) | 8.0 / 35.5 (9.5) |
| 23:00 | 1.5 / 11.3 (8.2) | 4.0 / 19.0 (8.3) | 3.7 / 10.7 (8.9) | 6.7 / 24.2 (5.5) |
| Busy hours | 3.8 / 25.6 (10.5) | 4.2 / 27.8 (9.7) | 5.3 / 22.8 (11.3) | 5.4 / 26.6 (9.7) |
| All hours | 3.3 / 25.5 (9.3) | 3.5 / 25.0 (8.9) | 4.4 / 24.3 (10.4) | 5.2 / 25.4 (9.5) |
Over the whole window the queue times did not change, at about half the jobs. The ready p50 stayed at 0.1 minutes on hetzner-mgmt and about 0.5 on the Mac mini. The worst hour after was 00:00 (ready p95 19.6 minutes on hetzner-mgmt). A busy weekday with two jobs at once on hetzner-mgmt instead of four has not been measured yet: that is for #2554's 7 days from 11-18.
kubelet_evictions counts every pod the kubelet evicts, so the first query also counts the agent
pods. The second counts only runner pods, from the evicted Pod objects that kube-state-metrics saw
in the last day:
# every pod evicted for memory per node, last day
increase(kubelet_evictions{eviction_signal="memory.available"}[1d])
# runner pods evicted per node, last day
count by (node) (
(max_over_time(kube_pod_status_reason{namespace="gitea",pod=~"gitea-act-runner-.*",reason="Evicted"}[1d]) > 0)
* on (pod) group_left (node)
max by (pod, node) (max_over_time(kube_pod_info{namespace="gitea",pod=~"gitea-act-runner-.*",node!=""}[1d]))
)
Seven days after the patch (#2554)¶
From 2026-11-11 19:32 UTC, when the soft-eviction patch reached the last worker (#2543; worker-3
19:10, worker-1 19:21, worker-2 19:32), to 11-18 19:32. The window has two parts: two jobs per pod
until the one-job pods were Ready (11-13 06:58, #2931, 35 h), and one job per pod after (5.5 days).
Prometheus on hetzner-mgmt; eviction times from kube_pod_status_reason{reason="Evicted"} and the
steps of kubelet_evictions{eviction_signal="memory.available"}.
| What | Two jobs per pod (35 h) | One job per pod (5.5 days) |
|---|---|---|
| Runner pods evicted for memory | 22: 17 on worker-3, 5 on worker-1, 11-12 00:41 to 11-13 03:41 | 1: worker-3, 11-13 08:47 (an image build of eloro/webshop-platform, before #2987) |
| Other pods evicted for memory | 5 on worker-3: emilia-container-agent (11-12 14:11), and hcloud-csi-node pods 4 times at 19:03–19:12 on 11-12 |
3 miki-container-agent pods, 11-14 13:00 and 13:31 on worker-1, 13:15 on worker-3 |
kubelet_evictions, memory |
worker-3 22, worker-1 5, worker-2 0 | worker-3 2, worker-1 2, worker-2 0 |
dind RSS, 1-minute peaks |
max 3.46 GiB; above 3 GiB 4 times, all on worker-1 | max 2.73 GiB; since 11-15 07:00 max 1.51 GiB |
Lowest MemAvailable |
worker-1 0.79, worker-2 1.75, worker-3 0.75 GiB | worker-1 1.27, worker-2 2.39, worker-3 1.00 GiB (11-14 13:14, the agent evictions); since 11-15 07:00 1.92, 2.39, 2.46 |
MemoryPressure, minutes |
worker-1 46, worker-3 144 | worker-1 11, worker-3 12, all before 11-15 07:00 |
Kernel OOM kills (node_vmstat_oom_kill) |
worker-1 2 (11-11 21:41) | worker-3 22, all at 11-13 18:31 in postgres of tasks-prod-db-1 at its own 512Mi limit, not node pressure |
| Worker stalls | none | none |
- Peaks above 3 GiB (
dindRSS, the worker'sMemAvailablethen):xwkvv3.35 GiB at 11-12 09:02 (1.09 GiB in the 7 minutes before; evicted that minute),nhdtt3.03 at 13:21 (1.14) and 3.45 at 19:52 (1.48; evicted at 19:53),jbxdk3.46 at 11-13 00:55 (1.63). All with two jobs per pod. dindrestarts.kube_pod_init_container_status_restarts_totalrose 13 times, each on an evicted pod in the minute of its eviction: the sidecar ending at eviction, not an OOM kill. NodindendedOOMKilled.- Stalls. No worker was
NotReady. The longest gaps in node-exporter samples, 111–120 s, fall on all four nodes at once (11-15 19:32, 11-17 04:22, 11-17 12:42), the control plane included, so they are gaps in Prometheus's scraping, not stalled workers. - Alerts.
CIRunnerMemoryEvictedlast fired on 11-13 13:07 (worker-3),NodeMemoryEvictionsFrequenton worker-3 from 11-12 17:02 to 11-13 19:03. Neither has fired since. hcloud-csi-nodehas nopriorityClassName, so the kubelet ranks it with ordinary pods. Its DaemonSet replaced each evicted pod within a minute, sokube_pod_status_reasonnever saw them asEvicted; onlykubelet_evictionscounts them.
Against the replay and #2503. #2502's replay predicted 30–63 memory evictions a week, about
three quarters of them runner pods. Two jobs per pod evicted runner pods at about 100 a week (22 in
35 h, with 27 memory evictions in all), above the replay and about 100 times #2503's "about once a
week". With one job per pod there was 1 runner eviction in 5.5 days, about 1.3 a week. There were
none in the 5.4 days after 11-13 08:47, nor since #2987 made the eloro/webshop-platform image
build smaller. The kubelet evicted no pod for memory after the agent pods on 11-14 13:31 (4.25
days). With one job per pod the rate is at #2503's threshold, and no worker stalled in the 7 days.
The owner already revisited #2503 (#2898, one job per pod), so this measurement raises no new
decision. How long CI jobs wait with two jobs at once on hetzner-mgmt is decision #3286, measured by
3285 (incidents 2026-11-16¶
and 2026-11-18).
Disk (ephemeral storage)¶
A runner pod writes to its node's disk in three places, all of them the node's ephemeral storage
(/var on Talos, 77 GB on a worker, 69.5 GB allocatable). The kubelet evicts pods once less than
15 % (11.6 GB) is free, the pod most over its ephemeral-storage request first.
| Where | What | Bound |
|---|---|---|
docker-data emptyDir, /var/lib/docker in dind |
runner-images (force_pull leaves the replaced tag behind), images jobs build, job containers' layers |
once it is over 16 GiB, dind removes untagged images and the images and build cache no job has used for 3 hours |
act-cache emptyDir, /act-cache/server in the act-cache sidecar |
the pod's one actions/cache server (actions/cache) | dind removes superseded copies first, then the least recently restored entries, once it is over 4 GiB (CACHE_LIMIT_MB, #2614, #2674) |
| the runner container's layer | actions (/root/.cache/act, 56 MiB under 5.4.1; ~260 MiB of clones per process under 0.6.1) and logs |
none needed |
Why (#2282). On 2026-10-30 (20:00 and 22:00 UTC) both runner pods were evicted for
ephemeral-storage, the only evictions in the 7 days to 2026-10-31, and their jobs were killed. The
pods had no ephemeral-storage request, so the scheduler did not count their disk. At eviction
the runner containers used 18.9 and 13.6 GB (worker-2) and 9.6 and 15.8 GB (worker-1), nearly all
of it actions/cache entries in the container layer; with dockerd's data the pod used ~48 GB of a
node that uses ~17 GB without it. The worker nodes spent 8–9 hours of that week under 25 % free.
act_runner v0.6.1's cache server keeps an entry for 7 days after its last use and deletes
duplicates of a key only once an hour; eloro/webshop-platform saves a ~450 MB setup-go entry
several times an hour. Measured in the new pods 2.7 hours after a rollout: actions/cache 2.6–5.0 GB
per runner, /var/lib/docker 13–16 GB (images 7.3 GB, 5 GB of them unused; two running jobs'
containers 2.8–4.4 GB).
Trim. dind runs components/gitea/act-runner/trim.sh (ConfigMap gitea-act-runner-trim),
which checks every 5 minutes. A job pulls its image (force_pull) and only then creates its
container, and it may build an image in one step and run it in a later one, so "no container uses
it" is not enough: the first version pruned every unused image and could remove an image between
its pull and the job's container (PR #1103 review). Instead trim.sh follows dockerd's events and
marks an image each time it is pulled, tagged, loaded or imported or a container is created from
it (marks in /run/trim/used, one file per image ID). Over 16 GiB it removes:
- build cache no build used for 3 hours (
docker builder prune --filter until=180m); - untagged images, the runner-images that a newer pull of their tag replaced: no job can name them;
- tagged images whose mark is older than 3 hours,
runner.timeout, so nothing a job pulled, built or ran goes while that job can still run. An image it sees for the first time, such as one pulled before it started, gets a mark then. It keeps act's images of Docker actions (act-*): act checks that one exists and creates the container with no event in between.
A last look at the marks still leaves an instant in which a pull can end before the removal, and
the job's container create then finds no image (PR #1103 review, second round). So trim.sh
removes images only while it holds the runners' requests to dockerd, and puts back what was used
meanwhile before it lets them through:
- Gate. An iptables and ip6tables rule in the pod's network namespace drops the packets to
dockerd's port 2375 (the runners'
DOCKER_HOST) except connection setup. A client neither fails nor times out; TCP sends its request again once the rule is gone, a few seconds later.trim.shitself uses dockerd's unix socket. Job containers have no Docker access in this setup. - Wait and look. It waits 3 seconds for requests that reached dockerd before the gate, reads
the events since it picked the images (
docker events --since … --until …) and keeps every image used since. - Quarantine. It tags each image
trim.invalid/removing:<id>, which no job names, and removes its other tags; the image stays. - Look again. After 2 seconds it reads the events since step 2. An image that a pull, tag or container create named in the meantime gets its tags back (those no pull set again) before the gate opens, so the job that pulled it finds it. Otherwise it removes the quarantine tag, which removes the image; dockerd refuses an image a container uses, which then gets its tags back too.
- It removes the rule. A restart of
dindin between leaves the rule, the quarantine tags and/run/trim(an emptyDir,trim-state, with the marks and the tags taken) in the pod. The next start sets the gate again (the restart may have come between the two rules), gives the images their tags back, and only then removes the rules, so a job held behind the gate finds its image (PR #1103 review, third round). Without iptables it removes no image and logs that; a restart's tags it gives back anyway.
test_trim.py has a test for each interleaving: a pull that ends while the gate waits, one that ends
after the last look at the marks (its event comes once the tags are gone), one that sets its tag
again, a container create in the meantime, a container that still uses the image, and a restart in
the middle, with a check that the images have their tags each time a gate rule goes.
The images jobs used in the last 3 hours stay, so /var/lib/docker can be over 16 GiB in a busy
afternoon (13–16 GB measured 2.7 hours after a rollout, with the running jobs' layers); the
requests below leave room for that. A removed cache entry is a cache miss for the next job that
asks for it (actions/cache only warns when a restore fails), unless a newer save of its key
superseded it (actions/cache). Its log has a line for each prune and
removal (Pruned images, Removed image, Removed untagged image, Kept image,
Removed cache entry), and after each pass the cache size (Cache at 3900M of 4096M). test_trim.py runs it against a fake docker and iptables (CI
Component Tests).
Requests and limits. dind requests 24 GiB of ephemeral storage (limit 32 GiB) for both
emptyDirs: 16 GiB of Docker data, 4 GiB of cache (8 GiB until #2614), plus the images of the last 3
hours and job layers between two trims. The runner requests 2 GiB (limit 4 GiB; until #2683 two runners of 1 GiB, limit 2 GiB). A pod requests 26 GiB, so the scheduler only
places it where that much of the allocatable storage is unrequested; over the pod's total limit
of 36 GiB the kubelet evicts the pod, before the node is short. A worker with a runner then uses
at most ~17 + 39 GB, which leaves ~22 GB (28 %) free, above the eviction threshold. worker-1 uses
~25 GB without a runner pod (checked on 2026-11-03, below), which leaves ~18 %: below
NodeEphemeralStorageLow's 25 %, still above eviction.
Alerts. PodEvicted opens an incident when any pod is evicted, except a runner pod evicted for
memory, which is the info alert CIRunnerMemoryEvicted (which evictions page), and NodeEphemeralStorageLow
when a node has less than 25 % free for 10 minutes (components/prometheus-stack/config/prometheus-rules.yaml,
runbooks PodEvicted and
NodeEphemeralStorageLow). Before, the upstream
KubeNodeEviction (severity info, Mattermost only) did not fire at all, because a kubelet's
eviction counter starts at 1 and rate() sees no increase.
Checked on 2026-11-03 (#2289), 46 hours after PR #1103 was merged (2026-11-01 13:10 UTC). The pods were replaced twice since, by #2379 and the Gitea 28 upgrade, so the newest are 45 minutes old.
gitea-act-runneris Ready atmain@sha1:a9b6c853, which includes #1103. Both runner pods carry the requests:dind24Gi (limit 32Gi),act-runnerandact-runner-21Gi (limit 2Gi).- No runner pod was evicted: the only
kube_pod_status_reason{reason="Evicted"}series over the 46 hours are the two pods evicted on 2026-10-30, and no pod ingiteaisFailed. NeitherPodEvictednorNodeEphemeralStorageLowfired (ALERTSempty over the 46 hours). trim.shruns in bothdindcontainers, marks images in/run/trim/usedand left no gate rule on port 2375. Its log has noPrunedorRemovedline yet, because/var/lib/dockeris 6–7 GB, under the 16 GiB limit. The pods from #1103's rollout, which ran 44 hours, are gone and their logs with them, so no removal has been seen (#2404). Per pod (kubeletstats/summary): 8.8 GB (docker-data7.4,act-cache1.1) and 7.1 GB, under ~28 GB.- Lowest worker
/varfree, 1-minute samples: worker-1 25.2 % at 2026-11-03 06:18 UTC (a runner pod, Renovate jobs and restore drills on it), worker-2 39.7 %, worker-3 45 %. That stays above 25 %, but only just, and below the 28 % that the design expects (#2404 looks again). - No job on these runners failed from a removed image or a cache restore. Of the 21 failed jobs
in Gitea Actions since the merge, 10 ran here; none has
No such imageor a cache error. TheENOSPCon a cache restore (2026-11-01) and the lost dockerd (2026-11-02) were on the Mac mini runners (#2323). - The two pods evicted on 2026-10-30 (
gitea-act-runner-d586f5d99-qs5fd,-zsb6l) had already been deleted when this check got to them.
Checked on 2026-11-03 (#2404), 13:00–13:20 UTC, for worker-1's dip to 25.2 % free at 06:18.
- No trim removal has been seen yet. The runner pods were replaced again at 11:07 and 11:14 UTC
(
84667c4f8c-pfd2xon worker-2,-7ncqcon worker-3), and theirdocker-dataheld 12.1 and 9.7 GB, under 16 GiB; theirdindlogs have noPruned,Removed,KeptorCannot holdline. #2414 looks again once a pod has run a busy day. - The dip was the runner pod's jobs. From 05:15 to 06:35 worker-1's free space went up and down by
5–9 GB, in step with the
eloro/webshop-platformpipelines (e2e, image, test) that runner pod5b99c55c47-9d5hbran back to back (Gitea'sadmin/actions/jobs); it rose again each time those jobs ended. No restore drill ran then (the drills on worker-1 had finished on 2026-11-01), and the Renovate run at 06:01–06:31 adds at most ~1.8 GB (13:00 run measured: its container layer grew to 1.8 GB). At 06:18 the node used ~58 GB, so the runner pod used about 31 GB: above its 26 GiB request, under its 36 GiB limit. ThedataemptyDir ofmiki-container-agent(15Gi request, also on worker-1) held 16 KB. - What makes worker-1 thin is its baseline, not the runner. Without a runner pod it uses 25.2 GB,
22.7 GB of it the container runtime's image filesystem (
stats/summary,runtime.imageFs); its running pods use under 1 GB. worker-2 and worker-3 use ~14 GB each without their runner pod. worker-1 runs the most different images (173 of 178 Renovate runs in 7 days, Mattermost, Harbor, the drills), and the kubelet keeps unused images until the node is 85 % full (imageGCHighThresholdPercent: 85,imageMaximumGCAge: 0sinconfigz), the same point as theimagefs.available: 15%eviction. A runner pod at its limit on worker-1 leaves ~18 % free. - So the runner's requests, limits and trim threshold stay as they are: the pod stayed under its
limit, and lowering it would evict busy runners. The fix is earlier image garbage collection
in the workers' kubelet config (Talos machine config, applied with
talosctl), which #2413 proposes to the owner. The workers' Talos patch sets it from 60 % since #3480; see worker image garbage collection for the rollout. - Neither
NodeEphemeralStorageLownorPodEvictedfired in the 24 hours, and no pod was evicted apart from the two of 2026-10-30.
Checked on 2026-11-05 (#2614), after runner pod gitea-act-runner-7f77c596bc-5rl5n on
worker-3 was evicted at 22:36 UTC: "Pod ephemeral local storage usage exceeds the total limit of
containers 36Gi" (kubelet signal ephemeralpodfs.limit). The pod had run 27 hours, through a day
of back-to-back eloro/webshop-platform pipelines (image, test, e2e, security), with two jobs at a
time from 20:00 UTC. The eviction killed job 31098 (e2e (2) of run 9861).
- The node was not short: worker-3's
/varpeaked at 52.3 GiB of 72.3 GiB (28 % free) at 22:36:30 and fell to 18.6 GiB once the pod was gone. The limit did what it is for. - The trim works, and this is the busy day #2414 waited for. The other pod,
-d952xon worker-1, also 27 hours old, had 42Pruned imageslines and removed cache entries all evening. But/var/lib/dockerstayed above 16 GiB after each prune, up to 25.4 GiB (22:13 UTC). It held 9.2 GB of images (5 in use) and 7.8 GB of the 5 running job containers' layers (docker system df), which no trim can remove while their jobs run. Itsact-cachestayed at 7.5–8 GiB in about ten entries of 1.3–1.5 GB, a new one every 20–30 minutes, so an entry lasted about an hour. - So after a trim a pod could hold 25.4 + 8 + 0.7 (runner layers) = ~34 GiB of its 36 GiB. One job starting (pulls, a build, Playwright) added 4–10 GiB within minutes on worker-3 (22:26–22:29 and 22:35–22:36), more than was left.
- Change: the cache bound goes from 8 to 4 GiB (
CACHE_LIMIT_MBondind), which leaves ~6 GiB instead of ~2 after a trim. It costs cache hits: about the newest three large entries stay instead of six. The limits stay as they are, because a pod at a higher limit on worker-1 (~25 GB without a runner, #2413) would leave it under the kubelet's 15 % eviction threshold. Raising the limit is left for after #2413.
Checked on 2026-11-10 (#2615, #2414), 05:20 UTC, 4 days after PR #1246 bounded the cache at
4 GiB (merged 2026-11-05 23:12 UTC). The runner pods gitea-act-runner-dcdcf44fc-4qkvc (worker-1)
and -w294s (worker-3) started on 2026-11-07 at 19:10 and 19:12 UTC and had run 58 hours, through
Sunday 2026-11-08, the busiest day since 2026-11-01 (952 jobs on them, 699 on 2026-11-05), and the
working day of Monday 2026-11-09 (379 jobs). dind has CACHE_LIMIT_MB=4096.
- No eviction since the merge. The only
kube_pod_status_reason{reason="Evicted"}series ingiteais7f77c596bc-5rl5nof 2026-11-05,kubelet_evictionsdid not change on any node (changes(...[4d6h])is 0, worker-3'sephemeralpodfs.limitstays at 1), andPodEvictedandNodeEphemeralStorageLowdid not fire apart from that pod's alert. - The trim removed images and cache entries, which is what #2414 waited for.
-4qkvclogged 2Pruned images(14.5G left at 2026-11-09 12:36, 13.0G at 18:16) and 75Removed cache entry;-w294s1 (11.8G left at 2026-11-09 19:50) and 49.docker-datafell back under 16 GiB after each prune. The cache peaked atCache at 4093M of 4096M. At the check (stats/summary) the pods held 11.9 GiB (docker-data8.1,act-cache3.7) and 12.2 GiB (8.1 and 4.0); runner layers 0.05 GiB each. - Peaks per worker (
node_filesystem_avail_bytes{mountpoint="/var"}, 1-minute samples, 72.2 GiB each): worker-1 47.7 GiB used, 33.9 % free, at 2026-11-09 02:41 with two Renovate runs on it, and 46.5 GiB (35.6 %) at 16:59 on the working day; worker-3 40.2 GiB, 44.3 % free, at 19:50, the minute of its prune. worker-2, without a runner pod, stayed at 22.1–22.3 GiB. The kubelet keeps no per-pod disk history here, so a pod's peak is the node's peak less what the node uses without it at the check (worker-1 25.1 GiB, worker-3 19.6 GiB): about 22 GiB on worker-1 (less, as the Renovate runs are in it) and 21 GiB on worker-3. That is 13–14 GiB under the 36 GiB limit, against ~2 GiB on 2026-11-05. - Cache cost: no slower restore. Of the
eloro/webshop-platformjobs that succeeded on these runners, before (2026-11-01 to the merge) and after:test'sgo teststep took a median of 592 s and 590 s (p90 853 s and 905 s), so the Go build cache hit as before;setup-go47 s and 48 s intest, 48 s and 42 s ine2e;npm ci17 s and 19 s.e2eas a whole went from a median of 5.8 to 7.7 minutes, but in its Playwright (71 s to 158 s) and SDK (97 s to 146 s) steps, which use no cache: the tests grew, not the misses. - So the limits stay as they are; the pods do not need more room. The baselines grew instead:
without its runner pod worker-1 uses 25.1 GiB (
runtime.imageFs23.0, #2413 still open, itsimageGCHighThresholdPercentstill 85), worker-2 22.2 GiB (19.9) and worker-3 19.6 GiB, against ~14 GiB on worker-2 and worker-3 on 2026-11-03. A runner pod at its 36 GiB limit on worker-1 would still leave ~15 %, the eviction threshold, so #2413 comes before any raise.
actions/cache¶
Each runner pod runs one actions/cache server, the native sidecar act-cache
(gitea-runner cache-server, port 8088, data in /act-cache/server on the act-cache emptyDir).
The runner uses it through cache.external_server (runner-config.yaml), and the pod's 4 GiB
holds one copy of each entry. Before #2674 each of the pod's two runner processes ran its own
built-in server, so a job missed what the other process had saved.
- Secret and address. On its first start,
act-cachewrites a random secret to the in-memory emptyDiract-cache-secret, and keeps it when the container restarts. Both containers readconfig.yamlfrom the ConfigMap as it is (#2803):cache.external_serverishttp://${POD_IP}:8088/, which gitea/runner fills in from the container'sPOD_IP(v5.0.0; an unset variable fails the load), andcache.external_secret_filenames the secret file (v2.3.0; settingexternal_secrettoo is an error). The ConfigMap carrieskustomize.toolkit.fluxcd.io/substitute: disabled: thegitea-act-runnerFlux Kustomization substitutes${…}fromcluster-configand would otherwise replace${POD_IP}with an empty string. No Kubernetes Secret is involved. Until #2803, act_runner 0.6.1's habit stayed: each container wrote a copy ofconfig.yamlwith@POD_IP@and@CACHE_SECRET@filled in bysed. - Path of a request. Since gitea/runner 4.0.0 (#1229) jobs send their cache calls to their
own runner process (its outbound IP, the pod IP, on a random port), which forwards them to
act-cache; only the runner reaches the server. Uploads therefore pass through the runner container (1 CPU, 1536Mi). - Scoping. The runners register each job's token with the server (
/_internal/register,cache.external_secret_file), so a repository reads only its own entries, as with the built-in servers. Job containers reach it at the pod's IP throughdind, as they reached the built-in servers. Ifact-cacherestarts, it forgets the jobs that are running: their cache calls get 401 and actions/cache only warns. Later jobs register again. - Order.
act-cachestarts afterdind, and the runner starts once it listens. As a native sidecar it stops only after the runner has exited, so draining jobs keep their cache. A rollout still starts the new pod with an empty cache. - Stop signal. gitea/runner 5.4.1 stops on SIGTERM or SIGINT (
signal.NotifyContextinmain.go;cache-server.goreturns oncmd.Context().Done()), soact-cache's shellexecs the server and kubelet's SIGTERM reaches it directly (#2803). act_runner 0.6.1'scache-serverreturned only on SIGINT (signal.Notify(c, os.Interrupt)ininternal/app/cmd/cache-server.go), and itsmain.gocaught SIGTERM into a context the command never read; from #2692 to #2803 the container's shell stayed PID 1 and turned the SIGTERM into a SIGINT. Before #2692, withexec, the 0.6.1 server outlived its SIGTERM. Thendind, the sidecar before it, never got its own SIGTERM, and the pod stayedTerminatinguntil its 1900 s grace period ended, about 30 minutes after its last job. In the first rollout of pods withact-cache(2026-11-07 14:30 UTC), the new pod stayedPendingnext to the old one on worker-1 for 26 minutes and raisedKubePodNotReady. Akill -INT 1in the old pod'sact-cacheended it within 15 s. - Server eviction. Since gitea/runner 3.2.0 the server evicts on its own, every
sweep_interval(5m here): incomplete uploads, entries unused forretention(168h), superseded copies, then the least recently used pastrepo_size_limit(10 GB) andsize_limit(4GiB here, 8GiB on the Mac mini). It sweeps only when a request comes in at leastsweep_intervalafter the last sweep, andsize_limitcounts complete entries only, so the cache passes 4 GiB between sweeps andtrim.shstays as the backstop (trim.sh after step 1). - Trim. Past 4 GiB,
trim.shindindreads the server's records from itsbolt.db, each field on its own: gitea/runner addsowner,refandcreatedAtNanosto the 0.6.1 fields. - It removes superseded copies first: entries with a newer complete save of the same repository, ref, key and version. The server returns only the newest, so removing an older copy costs no hit.
- Then it removes the rest, least recently restored first (
usedAt), not oldest saved first. - The log says which:
Removed cache entry …, superseded by a newer saveor…, last used 42m ago. - An entry without a readable record is ranked by its file's mtime, as before.
- The Mac mini's
act-cacheruns the same script, so it trims in the same order.
The Mac mini runs one such server for the whole namespace, on a volume (CI runners on the Mac mini). Here one server per pod keeps the cache on the pod's emptyDir and needs no new Secret or volume.
Measured before the change (#2674)¶
The data comes from pods 56b45b58f-rwcwb and -vrb4t, which ran from 2026-11-05 23:22 to
2026-11-07 09:15 UTC with the 4 GiB bound. It covers the logs of all 1,447 jobs they ran (947 of
them eloro/webshop-platform), their dind trim logs, and the records in the four bolt.db
files.
buildhits. 67buildjobs looked upgo-build-*: 22 hits (median 96 s) and 45 misses (median 520 s).- 35 misses were evicted: the same process had saved the key earlier.
- 3 were in the other process's cache, and 2 only in the other pod's.
- 5 were for a key no runner had saved yet (a new
go.sum). - Bytes written. In 34 hours the pods wrote 234.5 GB to their caches (99 and 136 GB per pod), for a 4 GiB bound per pod:
| Key | Saves | GB written | Restores |
|---|---|---|---|
setup-go-* (actions/setup-go@v7) |
288 | 183.4 | 278 |
go-native-* |
75 | 25.5 | 261 |
go-build-* |
44 | 17.2 | 22 |
npm-* |
46 | 6.3 | 42 |
npm-e2e-* |
44 | 2.0 | 37 |
- Why setup-go saves after every restore. act_runner 0.6.1's server lowercases keys when it
saves and looks them up, and returns the stored, lower-case key (
act/artifactcache/handler.go,reserveandfind).setup-go@v7skips its save only when the restored key equals its own key exactly, andsetup-go-linux-x64-…is notsetup-go-Linux-x64-…. So every job that restored its 150–1,400 MB entry saved it again.actions/cachecompares keys regardless of case and is not affected ("Cache hit occurred on the primary key", 100 times). - What that did to the trim. The old trim removed the oldest saved file first. A
go-buildentry, restored about every 2 hours per process, was gone after ~4 GiB of newersetup-gocopies, often within the hour. The cache server removes older copies of a key only in its hourly GC.
Replay. The measured lookups and saves were replayed against each layout and trim order:
actions/cache saves only after a miss, setup-go after every job. Replaying the old setup gives 20
of 67 build hits, against 22 measured.
| Layout (bound) | Trim order | build hits |
All lookups hit |
|---|---|---|---|
| Server per process (4 GiB per pod), before #2674 | oldest saved | 20 of 67 | 622 of 895 |
| Server per process (4 GiB per pod) | least recently restored | 17 of 67 | 628 of 895 |
| Server per process (4 GiB per pod) | superseded, then least recently restored | 39 of 67 | 744 of 895 |
| Server per process (8 GiB per pod) | oldest saved | 41 of 67 | 758 of 895 |
| Server per pod (4 GiB) | oldest saved | 33 of 67 | 722 of 895 |
| Server per pod (4 GiB), #2674 | superseded, then least recently restored | 59 of 67 | 843 of 895 |
| Server per pod (3 GiB) | superseded, then least recently restored | 54 of 67 | 829 of 895 |
| One server for both pods (8 GiB) | oldest saved | 46 of 67 | 794 of 895 |
| One server for both pods (16 GiB) | oldest saved | 61 of 67 | 857 of 895 |
Removing superseded copies first is what helps. Least recently restored instead of oldest saved
changes little on its own, because a new copy counts as just used. A server per pod and the new
order together come within 2 hits of a 16 GiB server shared by both pods, at the same disk as
before. That leaves #2614's bound and the disk budget above unchanged (#2615 measures it). Six of
the remaining misses are new keys, which only restore-keys in the workflow could turn into
partial hits.
Not changed here.
- The
setup-gosaves themselves come from the workflows ofeloro/webshop-platform. Using theci-baseimage withoutsetup-go, as recommended above, would stop them; so wouldcache: falsewith anactions/cachestep.restore-keys: go-build-${{ runner.arch }}-on thebuildcache would cover new keys. These belong to eloro. - A runner whose server keeps the key's case would also stop them:
gitea/runner1.0.3 and later (Moving to gitea/runner). -
2678 measured the hit rate again; see Checked on 2026-11-10.¶
Checked on 2026-11-10 (#2678)¶
Pods dcdcf44fc-4qkvc and -w294s ran from 2026-11-07 19:11 UTC to the check at 2026-11-10 16:42,
including the working day of 11-09. They run gitea/runner:5.4.1 (#2694 merged before they
started), so this measures #2674's layout under 5.4.1's ref scoping, not the layout the replay
modelled.
- Setup. Both pods
4/4; eachact-cachelogscache server is listening on http://<pod IP>:8088. None of the 120buildlogs has a 401 orregister failed.dindremoved 78 and 56 entries, all…, last used <n>m agoand nonesuperseded by a newer save: the server's own sweep (size_limit4GiB, every 5m) removes superseded copies first and then logsevicted … least recently used first(150 and 167 times). Both pods held about 4 GB at the end (Cache at 3870Mand4030M of 4096M), sotrim.shis only the backstop. buildhits. 120eloro/webshop-platformbuildjobs, from 100pull_requestruns on 42 pull requests: 24 hits (median 65 s), 95 misses (median 546 s), and one job cancelled before its lookup. #2674 measured 22 of 67 (96 s and 520 s) and its replay expected ~59 of 67.- Why they missed.
| Cause | Misses |
|---|---|
| First build of its pull request: the key was saved only under other refs (37), or never (5) | 42 |
| Saved by the same pull request in the other pod only | 30 |
| An earlier build of the same pull request was still running, so nothing was saved yet | 18 |
The pull request's earlier builds saved only another key (its go.sum changed since) |
4 |
| Evicted: the same pod had saved it for this ref 3.9 h earlier | 1 |
A build counts as first when no earlier build of its pull request ran on these pods. The
pods from before 19:11 do not change that: their caches went with them. Each miss is in the
first row that applies, from the top.
Since 5.3.0 a job restores only its own ref's entries, then its base branch's and the default
branch's (Breaking changes, Ref scoping). eloro saves nothing
on main, so no pull request's first build can hit. That rules out 42 of the 120 builds, and the
replay, which matched keys across pull requests, does not apply. Of the 78 later builds, 24 hit.
Next steps. A larger bound is not one: eviction cost 1 miss.
- Save the caches on pushes to
mainineloro/webshop-platform(itsci.yamlruns only onpull_request). First builds would then restoremain's entry: up to 37 of the 42 first-build misses, those whose key some other ref had saved. The 5 with a new key would still miss. This change belongs to eloro. - One cache server shared by both pods, as on the Mac mini (CI runners on the Mac mini), would turn the 30 other-pod misses into hits. It needs a volume and its bound sized against the disk budget above.
- The 18 misses behind a still-running build of the same pull request come from pushes less than a build (~9 min) apart. No cache layout prevents them.
trim.sh after step 1 (#2683)¶
Step 5 of #2683 asked whether the server's size_limit held the 4 GiB bound on its own through
step 1, so that trim.sh's cache trim could go. It did not, and the trim stays. From the logs of
pods dcdcf44fc-4qkvc and -w294s (2026-11-07 19:11 to 2026-11-10 ~17:30 UTC, all of their
dind and act-cache logs):
- The server.
act-cacheloggedevicted <n> MiB from the cache, least recently used first150 and 170 times (46.3 and 52.7 GB in all). It evicts down tosize_limit, so<n>is how far the complete entries had gone past 4 GiB since its last sweep: median 341 and 328 MiB, p90 485 and 486 MiB, at most 637 and 683 MiB. - trim.sh. Its 841 passes per pod logged
Cache at …M of 4096M(at most 4093M after a pass). In 47 and 40 of themduof/act-cachewas past 4096M, and it removed 78 and 56 entries, all…, last used <n>m agoand none superseded: the server had already removed those. - Why both trim. Saves land in the minutes between two sweeps, and a sweep runs only when a
request comes in.
dualso counts uploads in progress andbolt.db, whichsize_limitdoes not. - A removed entry costs one miss, not an error.
trim.shremoves the file and leaves its record. The server checks the file on a lookup (lookupCacheinact/artifactcache/handler.go), drops a record whose file is gone and tries the next match.
Decision: keep it as the backstop. Without it a pod's cache would reach about 4.7 GiB at the
measured peaks, plus uploads in progress, outside the 4 GiB in Disk's
budget. The cache trim is one du per 5-minute pass of a script that runs anyway for the images,
and it removes in the server's order (superseded, then least recently used), so it costs no hits
the server's own eviction would not. A lower size_limit (about 3.5 GiB) would leave the trim
almost nothing to do, for a smaller cache; nothing here needs that.
Moving to gitea/runner¶
gitea/act_runner:0.6.1 (2026-04-30) is the last release under that name. With v1.0.0
(2026-05-05) the project became gitea/runner: the image is
gitea/runner (tags without v: 5.4.1, 5.4.1-dind, 5.4.1-dind-rootless) and the binary is
gitea-runner. Renovate does not propose the move, because the image name changed. This section
was checked on 2026-11-07 (#2679) against the release notes of v1.0.0 to v5.4.1 (2026-11-05,
the newest) and the source at tag v5.4.1. Both clusters and the Terraform runner run
gitea/runner:5.4.1 since #2694 (step 1 below), and Renovate follows the new image name from
there; 5.4.1 was still the newest release on 2026-11-07.
The upgrade is worth it, done in two steps. It removes the two problems this setup works around:
- Key case. Since v1.0.3 (#947) the cache server
keeps the key's case (
findCachematches it as given), sosetup-gono longer saves again after every restore. Those saves were 183 of the 234 GB written in #2674's 34 hours. - Action cache race. Since v5.1.1, an action is downloaded as an archive into
<sha256 of uses>/<commit>(#1316; v5.0.0's #1277 had moved clones to the git CLI, and v5.2.3's #1352 re-fetches damaged trees). It is written once to a temporary directory and renamed into place, under anflockthat holds across processes (v5.1.0, #1294). A job no longer rewrites files that another job is copying, which is whycapacitywas 1 until #2683.
It also brings a tool cache per job by default (v3.2.0, runner.tool_cache_mode: none), the same
as our RUNNER_TOOL_CACHE workaround. The cache server evicts on its own: incomplete uploads,
then retention, then superseded copies, then least recently used entries past repo_size_limit
and size_limit (v3.2.0, #1170). That is trim.sh's
order. v5.4.0 fixes large uploads filling the cache volume (#1377).
0.6.1 gets no fixes, including the Go security releases since.
Breaking changes for this setup¶
| Area | Change (release) | What it means here |
|---|---|---|
| Image and entrypoint | gitea/act_runner → gitea/runner, act_runner → gitea-runner (v1.0.0). The basic image is still Alpine with /sbin/tini, bash, git, and run.sh in /usr/local/bin; its entrypoint is still /sbin/tini -- run.sh |
Seven image references: act-cache, act-runner and act-runner-2 here, terraform-runner's init container, and the Mac mini's act-cache, trim and ScaledJob. act-cache runs gitea-runner … cache-server, whose --dir, --host and --port flags are unchanged. terraform-runner copies gitea-runner instead of act_runner. The /sbin/tini -- sh -c '… exec run.sh' wrappers keep working |
run.sh |
It reads the state file name with gitea-runner config runner-file (v4.0.1), so the config must load before registration. It retries registration forever unless GITEA_MAX_REG_ATTEMPTS is set; before, it stopped after 10 tries (v4.1.0, #1197). It also passes GITEA_RUNNER_LABELS to the daemon (v2.1.0) |
On the Mac mini, a pod with a bad token would wait until activeDeadlineSeconds (4 h): set GITEA_MAX_REG_ATTEMPTS. Here, the readiness probe already shows a runner that does not register. We set no GITEA_RUNNER_LABELS |
| Registration and labels | GITEA_* variables, CLI flags and the .runner format are unchanged (v1.0.0). .runner is locked, so each process needs its own (v3.0.0, #1099). Labels: --labels, then the config, then .runner |
Each runner process has its own /data/.runner in its container's file system. The labels in runner-config.yaml still apply on every start |
| Config file | Field names are unchanged (v1.0.0). ${NAME} in any value is read from the environment, and an unset variable fails the load; $${NAME} keeps it literal (v5.0.0, #1274). cache.external_secret_file is new (v2.3.0) |
Both replace the sed wrappers since #2803: external_server: "http://${POD_IP}:8088/" and the secret as a file (actions/cache) |
cache.external_server |
Jobs send cache requests to their runner, which forwards them to the server. Only the runners need to reach the server (v4.0.0, #1229). The runner listens on cache.host (default: its outbound IP, here the pod IP) and a random port |
Here, jobs reach the pod IP through dind, as they reached the built-in servers before #2674. Uploads now pass through the runner container (on hetzner-mgmt 1 CPU, 1536Mi since #2683): watch its CPU while a save runs. On the Mac mini, jobs in rootless dind reach the pod's own IP instead of the Service: check that on the first jobs |
| Cache server and trim | Records gain owner (v3.4.2), createdAtNanos (v5.2.3) and ref (v5.3.0). bolthold is replaced by direct bbolt access on the same bolt.db (v5.2.1). The eviction settings (retention 168h since last use, repo_size_limit 10 GB, size_limit none, sweep_interval 1h) apply on the cache-server and are ignored, with a warning, on runners that use external_server |
From v3.4.2, trim.sh's fixed pattern {"id":…,"repo":…,"key":…,"version":…,"cacheSize":…,"complete":true,"usedAt":…} no longer matches, because owner comes before complete. Its trim then silently falls back to file mtime, which is #2674's poor order. Set size_limit (4GiB here, 8GiB on the Mac mini) and sweep_interval: 5m for the server, and parse the records whatever their field order |
| Ref scoping | Entries are scoped by ref, as on GitHub. A job restores from its own ref, then its pull request's base branch, then the default branch; pull request events use refs/pull/<n>/head (v5.3.0, #1361). It cannot be turned off. Older entries have no ref and are not restored: caches start cold once |
A pull request can no longer poison main's cache. Skatzi/taskbase runs ci.yaml on pushes to main since PR #701 (Taskbase task #2800, merged 2026-11-10), and its Test API, Test MCP and Test UI jobs cache since PR #703 (Taskbase task #2806, merged 2026-11-10), so main holds the entries of all four. A new branch's first run restores them from main when its job lands on a runner of the same architecture. Skatzi/emiliero saves its setup-go and npm entries on main since PR #43 (Emiliero task #2801, merged 2026-11-10). Where main holds no entry, every new branch starts cold, and a branch's push run and its pull request run do not share entries. eloro/webshop-platform (checked on 2026-11-07 for #2694) is the same: ci.yaml runs only on pull_request and release.yaml on main uses no actions/cache, so every pull request's first run misses go-build-* and npm, the hits #2674 measured across pull requests. The fix is in that repository: save the caches on pushes to main. Measured after step 1: Checked after step 1 |
| Tool cache | No shared act-toolcache volume unless runner.tool_cache_mode: shared (v3.2.0, #1171) |
RUNNER_TOOL_CACHE and AGENT_TOOLSDIRECTORY in runner.envs became unnecessary, and #2804 removed them (Shared state between jobs) |
| Job behaviour | runs-on is required, except in jobs that call a reusable workflow (v5.0.0). ::set-env:: and ::add-path:: are refused (v3.1.0), and so is NODE_OPTIONS set from a workflow (v3.3.2). DOCKER_USERNAME and DOCKER_PASSWORD are no longer pull credentials (v2.0.0). Workflow container.options that reach the host are dropped unless the runner is privileged; the runner's own options are kept (v3.0.0, v3.3.1), and log and OOM options are dropped too (v5.0.0). Job outputs that carry a secret are skipped (v3.3.1). Jobs wait for service health checks (v3.1.0). The cache and artifact actions are patched for the cache v2 API (runner.patch_actions, v3.0.0, v3.3.0) |
The workflows of Skatzi/platform, taskbase, agent-runner, skatzi-agents and emiliero were checked on 2026-11-07 and are not affected. The platform's terraform-webshop-* jobs without runs-on call reusable workflows. Harbor images are pulled with DOCKER_CONFIG, which v5.4.1 still reads (act/container/docker_auth.go). Our own --cpus, --memory and --tmpfs options stay. eloro/webshop-platform was checked on 2026-11-07 (#2694): every job has runs-on, its service options are health checks only, and it uses no DOCKER_* secrets; its artifact jobs use the christopherhx/gitea-*-artifact forks, which v3.0.0 makes unnecessary; check that an eloro run's report job still finds its summary-* artifacts after the rollout (it did). The other organizations' workflows were checked on 2026-11-10: Checked after step 1 |
| Metrics | act_runner_* → gitea_runner_* (v1.0.0); the OpenTelemetry names change in v5.0.0 |
Nothing scrapes them; the alerts use kube_pod_status_reason only |
| Terraform runner | git 2.34.1 or newer must be on PATH (v5.0.0) |
The terraform-runner image installs git |
Steps¶
- Same layout, new version (#2682, done in #2694 ahead of #2678 on the owner's decision on
eloro #2417: from 5.3.0 the runner passes a job's registry credentials to its service
containers, which
services:jobs pullingci-baseneed). Both clusters move togitea/runner:5.4.1. The binary is renamed, the cache server getssize_limitandsweep_interval, trim.sh's record parser is fixed, and the Mac mini setsGITEA_MAX_REG_ATTEMPTS. Each cluster's server and runners change in one commit. Two processes per pod andcapacity: 1stay. The task lists the checks to run after the rollout, and the rollback. They passed: see Checked after step 1. - Use what the new version allows (#2683), after step 1 has run a working day (it had: the checks above cover the working day of 11-09). One pull request per change:
- One process with
capacity: 2per pod instead of two processes: #2683 (One process per pod). Watch forCannot find module …/dist/index.jsandSet up Pythonfailures for a working day after it rolls out. ${POD_IP}andexternal_secret_fileinstead of the sed wrappers: #2803, after the first change had run a working day (One process per pod). On hetzner-mgmt the ConfigMap made fromrunner-config.yamlhaskustomize.toolkit.fluxcd.io/substitute: disabled, astrim.sh's has: thegitea-act-runnerFlux Kustomization substitutes${…}fromcluster-config, and would replace${POD_IP}with an empty string. The Mac mini mounts its Secretact-cache-secretas a file instead of theCACHE_SECRETvariable. After the rollout, check: both pods Ready,act-cachelogscache server is listening, the rendered ConfigMap still holds${POD_IP}, a job restores what an earlier job of the same ref saved, noregister failedor 401; and a Mac mini job does the same. Rollback: revert #2803's pull request.- No more tool cache variables: #2804, after a Python and a Go job passed with both set to their
defaults (Shared state between jobs). After the rollout, check
that a job using
setup-pythonorsetup-gopasses on each cluster. Rollback: revert #2804's pull request. - A shared action cache on the Mac mini's
act-actionsvolume instead of its copy step: #2846, after #2805. The runner guards the cache with anflockand falls back silently to a lock inside one process, so passing jobs do not show that it holds across pods; the test Jobact-actions-flock-testshowed that it does (2026-11-11), andhost.workdir_parentis now/actions/v5on the volume (One action cache on act-actions). After the rollout, check that two jobs at once pass and watch forCannot find module …/dist/index.jsandSet up Pythonfailures for a working day. Rollback: revert #2846's pull request. trim.sh's cache trim stays: trim.sh after step 1.
Not planned: cache.s3, one cache shared by every runner without a cache server (v4.0.0); and the
Kubernetes backend (v4.1.0), which runs jobs as pods instead of in dind.
Checked after step 1 (#2682)¶
The rollout checks ran on 2026-11-07, in the post-merge verification on
#1323 (#2694's pull request). Both
hetzner-mgmt pods were 4/4. The Terraform runner registered at 1 replica and went back to 0. Mac
mini pods registered, ran one job each and left Gitea's runner list. On each cluster a job restored
what an earlier job had saved on the same ref, with no register failed and no 401 on a cache call.
The runner containers peaked at 0.04 cores (1-minute rate) against their 500m limit, though they
were throttled in 17–25 % of CFS periods in some minutes. The checks below
were added on 2026-11-10, on pods dcdcf44fc-4qkvc and -w294s (up since 2026-11-07 19:11 UTC).
- trim.sh under busybox.
cache_orderfrom the deployed/etc/trim/trim.sh, run read-only in each pod'sdind(BusyBox v1.37.0) against the live/act-cache, read 23 and 26 complete 5.4.1 records (withref,ownerandcreatedAtNanos). All 18 and 19 entry files matched a record, so none fell back to its mtime, and each entry was ranked by its record'susedAt. setup-gosaves once. In eloro/webshop-platform run 10796 (pull request 664, 2026-11-09),e2e (2)on4qkvcloggedCache restored from key: setup-go-Linux-x64-…and thenCache hit occurred on the primary key setup-go-Linux-x64-…, not saving cache.e2e (1)on the Mac mini did the same forsetup-go-Linux-arm64-…. Of the 110setup-gosaves on the two servers, 4 repeat a repository, ref, key and version saved before, each after the server had evicted the earlier copy.- Bytes written, from the servers'
deleted cachelog lines and the records still inbolt.db: 111.8 GB in the 69 hours to 2026-11-10 16:44 (53.0 and 58.8 GB per pod), 30.1 GB of it on the working day of 11-09. #2674 measured 234.5 GB in 34 hours, 183.4 GB of itsetup-go.
| Key | Saves | GB written |
|---|---|---|
go-native-* |
109 | 36.7 |
go-build-* |
73 | 28.8 |
setup-go-* |
110 | 25.5 |
npm-* |
79 | 11.1 |
ci-tools-* |
72 | 6.1 |
npm-e2e-* |
71 | 3.3 |
other (pact-verifier-*, Skatzi/taskbase's fitness-* and node-cache-*) |
41 | 0.4 |
buildhits: 24 of 120, measured by #2678 (Checked on 2026-11-10).- Cross-branch hits. Ref scoping ended them for repositories that save nothing on
main. Skatzi/taskbase had 209 hits and 57 misses in 432 CI jobs from 2026-10-30 to 11-07, and 0 hits in 6 lookups since. Taskbase task #2800 (PR #701) makesci.yamlrun on pushes tomain. Its first run there, 10990 ona3f4d1d(2026-11-10 17:51 UTC), passed. Its Fitness functions job loggedCache saved with the key:forsetup-go-Linux-arm64-…andnode-cache-Linux-arm64-npm-…, andCache saved with key:forfitness-staticcheck-…andfitness-ui-node…. Test API and Test MCP saved nothing: theirsetup-gohas nocache-dependency-pathand finds nogo.modat the root (Restore cache failed: Dependencies file is not found). Test UI'ssetup-nodelooked up and saved no cache. Taskbase task #2806 (PR #703) fixes both. Its branch's first push run, 11004 ond3830cd(2026-11-10 18:07 UTC), restored frommain: Fitness functions loggedCache restored from key:for all four entries 10990 saved, and Test UI restorednode-cache-Linux-arm64-npm-…, the same key, so it saved nothing. Both jobs ran on arm64, as 10990's Fitness functions did. Test API and Test MCP ran on x64 and found nothing (Cache is not found). The pull request run, 11005, ran Fitness functions on x64 and missed all four. The first run onmainafter the merge, 11009 on38c7d2e(2026-11-10 18:18 UTC), passed. Test API and Test MCP loggedCache saved with the key:for theirsetup-go-Linux-x64-…keys, and Fitness functions, on x64, saved the x64 copies of its four entries. Test UI restored the arm64node-cache-…frommainand saved nothing. Entries are per architecture, so a job restores frommainonly when a run there used the same one. Skatzi/emiliero cached nothing before or after the rollout: itssetup-gofound nogo.modat the root (it isapi/go.mod). Emiliero task #2801 (PR #43) fixed that. Its first run onmain, 10995 on37c2a8a(2026-11-10 17:57 UTC), savedsetup-go-Linux-x64-…in Test API andnode-cache-Linux-x64-npm-…in Test UI. Thev1.27.11tag's run, 10997, restored the npm entry frommain; its Test API looked up 70 seconds beforemain's save and missed. No new emiliero branch had run CI by 2026-11-10 18:26 UTC. For eloro/webshop-platform, see #2678's next steps. Its Taskbase organization is not one the operator can reach, so eloro's owner files that change. - Job behaviour in every repository served. The repositories with workflows in the other
organizations were read on 2026-11-10: Emmalia/Helloweekly, Dupondforge's
botyard-*, Kodexet'sportal,sitemaker,ServiceSite,brickLayerSiteanddocumentation, and NightGain/trading-engine. gamez, kodexet-websites and miki-research have none. Every job hasruns-on(botyard-runner'swindows.ymlselectswindows, not these runners), serviceoptionsare health checks only, and none usesDOCKER_USERNAME,DOCKER_PASSWORD,::set-env::,::add-path::orNODE_OPTIONS. Helloweekly ran 5 times since the rollout, all passing. The others have not run since.
6.0.0 (#3661)¶
Both clusters and the Terraform runner move from 5.4.1 to gitea/runner:6.0.0 in
PR #1703. Checked on 2026-11-25
against the v6.0.0 release notes and the
source diff v5.4.1...v6.0.0:
builtin:checkoutis removed (#1407): a step withuses: builtin:checkoutfails. None of the 52 workflow and action files on the default branches of the 32 repositories on Gitea usesbuiltin:.- Gitea 1.26.2 or newer (#1395): the runner no
longer sends the sentinel log row, so on an older Gitea most job logs stay in
dbfs_data. The version appears only in an error message: the runner does not refuse an older server. Gitea runs 28.3.0, which has the fix (go-gitea/gitea#37631, 1.27.0). - Unchanged here: the image's entrypoint (
/sbin/tini -- run.sh),/usr/local/bin/gitea-runnerandrun.sh(terraform-runner's init container), the config fields, thecache-serverflags, the cache server'sbolt.dbrecords (trim.sh), and the action cache with itsflock(the Mac mini'sact-actions).runner.tool_cache_mode: sharedis now safe at any capacity (#1401); we keep the defaultnone.
6.0.1 (#3662)¶
Both clusters and the Terraform runner move from 6.0.0 to gitea/runner:6.0.1 in
PR #1704. Checked on 2026-11-25
against the v6.0.1 release notes and the
source diff v6.0.0...v6.0.1; it has no breaking change:
- Default-branch caches (#1412): a job on the
default branch saves caches only for
push,schedule,workflow_dispatch,deleteandregistry_packageevents; others get read-only access (Cache mode: readin the log, a warning on save, not a failure). This repository's workflows use onlypush,pull_request,workflow_dispatchandworkflow_call. ImageOScomes from the job image (#1415), asubuntu<major>from itsos-release, or unset for another OS. Theubuntu-*labels map to Ubuntu images, and no job here with acontainer:uses asetup-*action.- Host-mode teardown no longer deletes
<container.workdir_parent>/<owner>/<repo>(#1409); the Terraform runner's per-job directory is still removed. - Unchanged here: the image's files (no change to the Dockerfile or
run.sh), the config fields, thecache-serverflags, thebolt.dbrecords and the action cache. The credential a runner registers with the cache server gainscache_mode; empty allows everything.
Stale PR runs are cancelled¶
The pull-request workflows (ci-component-tests, ci-docs-build, ci-manifests) set concurrency with
cancel-in-progress: true, grouped by PR number: a new push to a PR cancels that workflow's run for the
previous push. In the 24 hours to 2026-11-01, most CI jobs came from pushes to existing PRs, and the
runners were busy with runs whose results nobody needed. eloro/webshop-platform does the same and also
skips its code jobs for docs-only PRs (its PR #379).