the builder reads an agent's icon from its config and the controller writes the swarm's copy
This commit is contained in:
parent
07ca0b6100
commit
181ef5f421
1 changed files with 299 additions and 13 deletions
|
|
@ -317,6 +317,7 @@ async fn rebuild(world: &impl World, agent: &str, stored: Stored) -> Outcome {
|
|||
cached,
|
||||
private_users,
|
||||
nix_builds,
|
||||
..
|
||||
} => (out_path, system, cached, private_users, nix_builds),
|
||||
FromMetaReply::Failed { error_tail } => {
|
||||
tracing::warn!(%agent, %meta_rev, %error_tail, "cache miss: the rebuild failed");
|
||||
|
|
@ -684,6 +685,7 @@ mod tests {
|
|||
cached,
|
||||
private_users: Some(false),
|
||||
nix_builds: Some(NixBuilds::Host),
|
||||
icon: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1028,6 +1030,7 @@ mod tests {
|
|||
cached,
|
||||
private_users: Some(true),
|
||||
nix_builds: Some(NixBuilds::Disabled),
|
||||
icon: None,
|
||||
};
|
||||
let world = Fake::missing(&["iris"]).answering("iris", answer);
|
||||
pass_at(&world, &mut Backoff::default(), Instant::now()).await;
|
||||
|
|
|
|||
Loading…
Reference in a new issue