[control] Dev mode: throw-away CA and certificates for three dev hosts; push step skipped without a remote

This commit is contained in:
2026-11-07 18:23:41 +01:00
parent 56982fc6b7
commit 2c06efead1
4 changed files with 60 additions and 5 deletions
+15 -3
View File
@@ -790,11 +790,12 @@ impl Control {
)
.await;
}
let push_step = self.push_step();
self.update(&id, |r| {
r.step("write", "done");
r.step("reload", "skipped");
r.step("watch", "skipped");
r.step("push", "pending");
r.step("push", push_step);
});
self.finish(
&id,
@@ -963,11 +964,21 @@ impl Control {
let _ = self.journal(&j);
crash::point("promoted");
self.clear_journal();
self.update(&id, |r| r.step("push", "pending"));
let push_step = self.push_step();
self.update(&id, |r| r.step("push", push_step));
self.finish(&id, "kept", Some(kept_reason), Vec::new());
self.push_wake.notify_one();
}
/// The push step of a kept apply: pending, or skipped when there is no remote.
fn push_step(&self) -> &'static str {
if self.cfg.routes.remote.is_some() {
"pending"
} else {
"skipped"
}
}
fn promote(&self) -> std::io::Result<()> {
for (trial, fin) in [
(self.cfg.trial_path(), self.cfg.edge.config.clone()),
@@ -1260,7 +1271,8 @@ impl Control {
"confirmed" | "promoted" => {
self.promote().map_err(|e| e.to_string())?;
self.clear_journal();
self.update(&j.apply_id, |r| r.step("push", "pending"));
let push_step = self.push_step();
self.update(&j.apply_id, |r| r.step("push", push_step));
self.finish(&j.apply_id, "kept", None, Vec::new());
}
_ => {