Watch
0
0
Fork
You've already forked hyperhive
0

swarm-controller: move the deploy concern into its own module

Refs #6897
This commit is contained in:
atlas 2026-11-27 20:46:23 +01:00 • committed by mara
commit 352af3ea59
13 changed files with 17 additions and 10 deletions

View file

@ -3,7 +3,7 @@
// queue) pointed at swarm-controller's own GET /api/jobq/graph instead
// of hive-c0re's — same wire shape (Vec<hive_jobq_wire::GraphNode>),
// different endpoint, no component fork. swarm-controller's graph has
// no real node kinds wired in yet (see swarm-controller/src/jobq.rs's
// no real node kinds wired in yet (see swarm-controller/src/deploy/jobq.rs's
// SwarmNodeKind/SwarmResourceKind), so this renders an empty tree today
// — the page exists so the wiring is in place before the first real
// swarm-level job (e.g. CreateAgent) lands.

View file

@ -276,7 +276,7 @@ let
};
# What `internal/meta` renders into every agent's build
# (swarm-controller/src/meta_flake.rs `Settings`): the names and values
# (swarm-controller/src/deploy/meta_flake.rs `Settings`): the names and values
# ./hive-c0re/environment.nix forwards, minus the per-host ones. One flake
# serves every hive, so a host's own answer here would reach all of them.
# `HIVE_AGENT_NATS_URL` is per host and reaches the container through the

View file

@ -0,0 +1,11 @@
//! The deploy concern: the job graph and its worker, builds, the meta flake and
//! its fan-out, cache misses, config drift and the attic copy.
pub(crate) mod attic_copy;
pub(crate) mod builder;
pub(crate) mod cache_miss;
pub(crate) mod config_drift;
pub(crate) mod jobq;
pub(crate) mod meta_build;
pub(crate) mod meta_fanout;
pub(crate) mod meta_flake;

View file

@ -26,17 +26,10 @@ use anyhow::{Context, Result};
mod accounts;
mod agents;
mod archetypes;
mod attic_copy;
mod auth;
mod bash_task;
mod builder;
mod cache_miss;
mod config_drift;
mod deploy;
mod git_forge;
mod jobq;
mod meta_build;
mod meta_fanout;
mod meta_flake;
mod observability;
mod observability_grant;
mod queue_identity;
@ -61,6 +54,9 @@ use agents::{
agent_status, agent_todos, agents_md, agents_md_initial, inference, message_stream, pause_hold,
schedules, subagent_term, term_stream, wanted,
};
use deploy::{
attic_copy, builder, cache_miss, config_drift, jobq, meta_build, meta_fanout, meta_flake,
};
use git_forge::{
config_pr, forge, forge_events, issue_report, pr_conflicts, pr_report, pulls, webhook,
};