ci: document the runner setup (I3)
CI / test (push) Successful in 1m43s
CI / test (pull_request) Successful in 49s

The cache only works when the job container shares the host network (a
bridge job cannot reach the runner's cache server through a host
firewall); record that, force_pull and node_download so the runner can be
rebuilt without rediscovering them.
This commit is contained in:
raucao committed 2026-11-30 11:34:19 +04:00
1 parent 1ee4930f2b
commit 55e1155e8e
1 file changed
+18
+18
View File
@@ -118,6 +118,24 @@ The package must stay public (linked to `raucao/regent`): a label-based runner
cannot pass pull credentials. `NO_PUSH=1 build-aux/ci/build-image.sh` builds
without pushing, for trying the Dockerfile locally.
### The runner
The runner is an ordinary Gitea runner registered at repository level with that
one label; it needs Docker and nothing else installed. A few settings in its
`config.yaml` are not defaults, and matter:
- `container.force_pull: true` — the registry's `:latest` stays authoritative
instead of a stale local copy.
- `runner.node_download: false` — use the node baked into the image instead of
downloading one per job.
- `container.network: host` with `cache.host: 127.0.0.1` — the runner's cache
server listens on the host, and a job container on an auto-created bridge
network cannot reach it when a host firewall filters container→host traffic.
The cache step then times out on every run (five retries with backoff — about
a minute wasted) and nothing is ever cached. Host networking puts the job on
`127.0.0.1`, where the cache works: a run with a warm cache is ~50 s, against
~3m 40s without one.
## Validating the package metadata
```sh