Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/dashboard/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas e2da5509ae swarm-ci-runner: run the forge CI runner as a swarm service
The CI runner was a hive deploy module: hive-ci.nix ran it beside the
forge, and hive-c0re registered it through the forge's admin API with
the `core` token, writing the registration token through hive-priv. It
could only run on the forge's host, and it kept an admin-scoped forge
token on a hive.

Now the runner is a swarm service:

- swarm-ci-runner.nix runs it in a `swarm-ci-runner` container on the
  host that sets deploy.ci-runner.enable, reaching the forge by name.
  It needs neither the forge nor a hive there.
- swarm-controller reads the forge's runner registration token with its
  own admin token and writes it to swarm/services/ci-runner/
  registration-token whenever it differs from what it last wrote. Its
  grant on that path is create/update only.
- The runner's own leaf (CN swarm-ci-runner, role and policy of the same
  name) reads that one path. swarm-bao-ci-runner.service fetches it into
  the runner's EnvironmentFile and restarts the runner on a change.
- A pre-start step removes .runner when the daemon's journal since its
  last start holds Forgejo's "unregistered runner" refusal (the daemon
  exits 1 when its startup Declare gets it), or when .runner names
  another forge address; upstream's pre-start step then registers again.

Removed from the hive side: hive-ci.nix and deploy.forgejo.ci.*,
forge/ci_runner.rs, PrivRequest::RegisterCiRunner and its handler and
ReadWritePaths entry, InfraContainer::Ci with hivectl's --ci and the
dashboard's hive-ci journal entry, HYPERHIVE_FORGE_CI_ENABLED, and
read:admin,write:admin from CORE_TOKEN_SCOPES: nothing else in hive-c0re
calls /api/v1/admin/*. The old ci options, under both swarm.forge.ci and
deploy.forgejo.ci, now fail evaluation naming deploy.ci-runner.

The forge's half of the old ci.enable, the actions/checkout mirror and
DEFAULT_ACTIONS_URL = self, is deploy.forgejo.actionsFromSelf.

Closes #4954
2026-10-05 13:55:37 +02:00
..
agent-menu treefmt: apply prettier 2026-09-02 15:25:07 +02:00
builds.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
builds.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
builds.js dashboard: SCH3DUL3S is a read-only list with a removal banner 2026-10-04 21:23:30 +02:00
call.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
colors.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
common.css dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
common.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
core.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
core.html swarm-ci-runner: run the forge CI runner as a swarm service 2026-10-05 13:55:37 +02:00
core.js agents: work/ in the disk-metric docs, holder never sees work/, chown guard comment 2026-10-05 13:23:39 +02:00
dashboard.css dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
dashboard.html dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
flow.css docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
flow.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
flow.js docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
home.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
home.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
index.html dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
logs.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
logs.html swarm-ci-runner: run the forge CI runner as a swarm service 2026-10-05 13:55:37 +02:00
logs.js swarm-ci-runner: run the forge CI runner as a swarm service 2026-10-05 13:55:37 +02:00
permissions.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
schedules.js dashboard: SCH3DUL3S is a read-only list with a removal banner 2026-10-04 21:23:30 +02:00
state.js dashboard: remove the Y3R C4LL questions pane (ask/answer removal, frontend) 2026-08-29 20:35:27 +02:00
stats.css fix(stats): move window selector into the page header tab bar 2026-07-26 17:21:21 +02:00
stats.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
stats.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
stream-worker.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
swarm.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
system-sections.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
tabs.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
theme.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
util.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00