homek8s/apps/base/forgejo/runner-configmap.yaml
Lance Walters 4640f164c3 forgejo-runner-amd64: force_pull=true so a missing job image self-heals
The dind data root was emptied out of band (most likely a hand rm -rf
during the Forgejo 503 fix at ~22:34 UTC on 2026-09-18), which wiped
node:20-bullseye from the docker:27-dind sidecar's imagedb. With
force_pull unset (default false) act_runner treats a failed pull as
best-effort and the job dies in 2s with 'No such image' - a silent
failure no workflow can see or fix.

Setting force_pull: true under container: makes each job verify/re-pull
node:20-bullseye. Trade-off: one manifest check per job, and a Docker
Hub outage would then fail jobs a warm local image could have served.
node:20-bullseye is required regardless (actions/checkout is a JS action)
so we do not change the job image to dodge this.

Evidence: ConfigMap forgejo-runner-config amd64.toml had no force_pull
(key confirmed via kubectl on the Pi). The stale Error pod
forgejo-runner-amd64-59fbb7bfc4-rj2jp (6d17h, 0/2 containers) is left
for a separate cleanup card - it sits on a different overlay and is not
the cause, but should be gc'd.

Co-authored-by: Hermes Agent <[email protected]>
2026-09-18 20:48:50 -04:00

53 lines
2 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: forgejo-runner-config
namespace: forgejo
data:
arm64.toml: |
log:
level: info
runner:
file: /config/runner.ini
# capacity 1: ci.yml builds every job's Rust target into ONE shared named
# volume (onionwire-target-ci, mounted at /target). Two jobs writing that
# volume concurrently clobber each other's freshly-linked test binaries,
# which then fail with "could not execute process ... (never executed)
# Permission denied (os error 13)". capacity 1 is the enforced serializer
# because Forgejo's `concurrency.group` was observed NOT serializing two
# runs of the same group on this runner (446 + 447 overlapped).
capacity: 1
timeout: 1h
cache: /opt/siriusdevops/runner/cache
cache:
enabled: true
dir: /opt/siriusdevops/runner/cache
container:
privileged: true
# No docker_host here: setting it makes the runner inject the host socket
# bind into the job container itself, which collides with the explicit
# -v /var/run/docker.sock in options ("Duplicate mount point").
options: -v /usr/local/bin/docker-static:/usr/bin/docker:ro -v /opt/siriusdevops/runner/cli-plugins:/usr/local/lib/docker/cli-plugins:ro -v /var/run/docker.sock:/var/run/docker.sock
valid_volumes:
- "**"
amd64.toml: |
log:
level: info
runner:
file: /data/runner.ini
# capacity 1: the dind daemon on this runner holds the release/CI build
# containers and images. Two concurrent x86_64 builds on it made the
# *second* build's egress fail (apt looping on "Ign:" for Debian
# InRelease) while a single build on the same daemon succeeded.
capacity: 1
timeout: 1h
cache: /data/cache
cache:
enabled: true
dir: /data/cache
container:
privileged: true
docker_host: "unix:///var/run/docker.sock"
force_pull: true
valid_volumes:
- "**"