Fix cellular provision clone build
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (network) (push) Failing after 10m45s
Foundation / checks (client) (push) Successful in 13m28s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 4s
Foundation / checks (postgres) (push) Canceled after 49s
Foundation / checks (checks) (push) Canceled after 13m44s

This commit is contained in:
dingo
2026-10-11 03:43:01 -04:00
parent 58a5c6615b
commit fcc91c6f0f
2 changed files with 11 additions and 3 deletions
+5 -3
View File
@@ -73,6 +73,7 @@
#include <filesystem>
#include <limits>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <sys/random.h>
@@ -501,7 +502,7 @@ int provision(const Options& o) {
return 4;
}
auto opening = server::CellularLives::create(
**primitive_opening, std::move(*habitat),
*primitive_opening, std::move(*habitat),
{{*o.cellular_width_um, *o.cellular_height_um}, 0, *o.cellular_temperature_mk});
if (!opening) {
std::printf("cellular opening refused %u\n", static_cast<unsigned>(opening.error()));
@@ -550,8 +551,9 @@ int provision(const Options& o) {
}
if (primitive) {
const std::array retained{manifest->build};
auto recovered = persistence::recover_primitive_checkpoint(*db, *store, o.source.key,
retained, timeout);
auto recovered = persistence::recover_primitive_checkpoint(
*db, *store, o.source.key, std::span<const persistence::Sha256Digest>{retained},
timeout);
if (!recovered || recovered->state->snapshot() != primitive_opening->snapshot()) {
std::puts("provision refused existing opening mismatch");
return 4;