deploy the closure the swarm declares, read no forge head, drop the update badge
This commit is contained in:
parent
279428a66f
commit
47c2acb640
1 changed files with 647 additions and 2001 deletions
|
|
@ -122,20 +122,12 @@ pub fn applied_root() -> PathBuf {
|
|||
state_root().join("applied")
|
||||
}
|
||||
|
||||
/// `applied/.<name>.hyperhive-rev` — marker recording the hyperhive commit
|
||||
/// `internal/meta` pinned when an agent was last successfully built (the boot
|
||||
/// reconcile's staleness check).
|
||||
/// `applied/.<name>.closure` — marker holding the store path of the swarm's
|
||||
/// closure an agent was last swapped to or created from, which
|
||||
/// [`crate::attic::closure::pending`] compares the record's with.
|
||||
#[must_use]
|
||||
pub fn applied_rev_marker(name: &str) -> PathBuf {
|
||||
applied_root().join(format!(".{name}.hyperhive-rev"))
|
||||
}
|
||||
|
||||
/// `applied/.<name>.config-rev` — marker recording the config commit
|
||||
/// `internal/meta` pinned when an agent was last successfully built (the
|
||||
/// dashboard's deployed chip). Absent for an archetype agent.
|
||||
#[must_use]
|
||||
pub fn applied_config_marker(name: &str) -> PathBuf {
|
||||
applied_root().join(format!(".{name}.config-rev"))
|
||||
pub fn applied_closure_marker(name: &str) -> PathBuf {
|
||||
applied_root().join(format!(".{name}.closure"))
|
||||
}
|
||||
|
||||
/// `meta/` — plain state beside the hive's other files (`topology.json`,
|
||||
|
|
@ -147,17 +139,6 @@ pub fn meta_root() -> PathBuf {
|
|||
state_root().join("meta")
|
||||
}
|
||||
|
||||
/// `meta-rev/` — one file per agent naming the `internal/meta` commit its
|
||||
/// rebuild builds from (`crate::meta_rev`).
|
||||
///
|
||||
/// ⚠️ Deliberately **not** in the agent's runtime dir: that is bind-mounted
|
||||
/// read-write into the container as `/run/hive`, and the commit decides which
|
||||
/// flake the agent's own toplevel is built from.
|
||||
#[must_use]
|
||||
pub fn meta_rev_dir() -> PathBuf {
|
||||
state_root().join("meta-rev")
|
||||
}
|
||||
|
||||
/// `knowledge/` — local checkout of the `internal/knowledge` repo. A
|
||||
/// `&str` (used as a git `-C` arg / clone target throughout the knowledge
|
||||
/// worker), so it stays a const rather than a `PathBuf` fn.
|
||||
|
|
|
|||
Loading…
Reference in a new issue