hive-c0re: fix two more comments with the same stale repo-created-after-spawn premise
This commit is contained in:
parent
e5a9703e00
commit
7d80f5146d
2 changed files with 11 additions and 7 deletions
|
|
@ -466,10 +466,12 @@ pub async fn clone_config_into_proposed(dir: &Path, name: &str) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
Ok(o) => {
|
Ok(o) => {
|
||||||
// `info`, not `warn`: on the hive-level create flow every first
|
// `info`, not `warn`: the normal case right after
|
||||||
// spawn lands here and nothing is wrong. Logged at all because
|
// `swarm-controller` creates the agent, before it has pushed
|
||||||
// "where did this agent's config come from" is worth answering
|
// anything into the repo it just made, and nothing is wrong.
|
||||||
// from the journal, and proposed is seeded exactly once.
|
// Logged at all because "where did this agent's config come
|
||||||
|
// from" is worth answering from the journal, and proposed is
|
||||||
|
// seeded exactly once.
|
||||||
tracing::info!(
|
tracing::info!(
|
||||||
%name,
|
%name,
|
||||||
stderr = %String::from_utf8_lossy(&o.stderr).trim(),
|
stderr = %String::from_utf8_lossy(&o.stderr).trim(),
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,11 @@ use super::git::{
|
||||||
/// avoided: whichever wrote second would win, and neither knows about
|
/// avoided: whichever wrote second would win, and neither knows about
|
||||||
/// the other.
|
/// the other.
|
||||||
///
|
///
|
||||||
/// The template ([`seed_template`]) is what the hive-level create flow
|
/// The template ([`seed_template`]) is what this still falls back to when
|
||||||
/// still lands on, since that flow creates the forge repo *after* the
|
/// there's genuinely nothing to clone yet — `swarm-controller` creates
|
||||||
/// first spawn.
|
/// `agent-configs/<name>` before telling a hive to deploy, but hasn't
|
||||||
|
/// necessarily pushed `main` to it yet, or the forge is unreachable, or
|
||||||
|
/// the core token isn't minted.
|
||||||
///
|
///
|
||||||
/// **Seeding is the whole of hive-c0re's write.** Changes to the repo
|
/// **Seeding is the whole of hive-c0re's write.** Changes to the repo
|
||||||
/// arrive as PRs from a clone, via the forge, like any other code
|
/// arrive as PRs from a clone, via the forge, like any other code
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue