hyperhive/hive-c0re/src/forge
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas ebb4eea691 hive-c0re: re-register the CI runner when the forge address changes
act_runner records the --instance URL it was registered with and reads the
forge address from .runner and nowhere else: the nix option reaches only
`register`, and upstream re-registers on a changed token or labels, never on
a changed URL. Our own precond short-circuits on .runner existing, and
runner_valid asks whether the runner id still exists -- which after a rename
it does. So changing swarm.forge.domain left the runner dialling a name its
container's derived extraHosts no longer resolves, with every check green.
The symptom is CI going quiet rather than anything failing.

Compare the persisted address against the configured base as part of the
same early return. A disagreement mints a fresh registration token, which
changes the token hash upstream already keys on, so upstream removes .runner
and re-registers against the current --instance. This module never writes or
deletes that file; the deletion stays with the script that owns registration.

The comparison is host-only and lenient on purpose. Both sides render from
one nix expression -- http://${swarm.forge.domain}, reaching the runner as
instances.hive.url and this daemon as HIVE_FORGE_URL -- so they cannot drift,
while scheme, port and trailing slash are exactly the cosmetic differences
that would otherwise re-register on every boot. Unreadable, missing or
unparseable input keeps the existing credentials, matching runner_valid's
treatment of a transport error: only a positive disagreement counts.
2026-08-26 13:11:15 +02:00
..
ci_runner.rs hive-c0re: re-register the CI runner when the forge address changes 2026-08-26 13:11:15 +02:00
config_pr_poll.rs hive-sh4re: split approval-queue schema into its own topic module 2026-08-10 23:05:18 +02:00
mod.rs docs(#3255): correct the reaper invariant the swarm webhook test guards 2026-08-19 21:05:52 +02:00
pr_merge.rs fix(#2911): keep the forge token out of argv 2026-08-02 13:21:42 +02:00
reconcile.rs fix(#2911): keep the forge token out of argv 2026-08-02 13:21:42 +02:00
repos.rs revive: reseed applied from forge main, no proposed fallback 2026-08-18 00:13:23 +02:00
users.rs fix(#3245): resolve the remaining intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00