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
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:
@@ -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;
|
||||
|
||||
@@ -6726,3 +6726,9 @@ used `CHECK` macros to guard nested `optional::value()` calls. Clang-tidy cannot
|
||||
prove that macro is a control-flow guard. The test now uses explicit throwing
|
||||
precondition branches before unwrapping, preserving the same assertions. Run
|
||||
246's network job stopped at those diagnostics before network tests ran.
|
||||
|
||||
Run 247 reached the PostgreSQL build and found two stale `evo-world-clone`
|
||||
provision calls: a double dereference of the owned primitive-life state and an
|
||||
array passed to an explicit retained-build span parameter. The primitive owner
|
||||
is now dereferenced once, and the retained digest array is passed as an explicit
|
||||
span. Run 247's PostgreSQL job stopped before its linked tests.
|
||||
|
||||
Reference in New Issue
Block a user