Guard cellular clone provisioning optionals
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m4s
Foundation / checks (tsan) (push) Successful in 8m37s
Foundation / checks (client) (push) Successful in 13m54s
Foundation / checks (network) (push) Successful in 15m41s
Foundation / checks (postgres) (push) Failing after 23m1s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 25m12s

This commit is contained in:
dingo
2026-10-11 17:07:44 -04:00
parent 8492ded303
commit 370fe4a40c
2 changed files with 16 additions and 3 deletions
+8 -3
View File
@@ -492,12 +492,17 @@ int provision(const Options& o) {
primitive_opening = std::move(*opening);
}
if (cellular) {
// The provision parser requires these for cellular-v1, but keep this
// execution boundary safe if an incomplete Options value is ever passed.
const auto cellular_width_um = o.cellular_width_um.value_or(0U);
const auto cellular_height_um = o.cellular_height_um.value_or(0U);
const auto cellular_temperature_mk = o.cellular_temperature_mk.value_or(0U);
biology::CellularHabitatConfig habitat_config{};
habitat_config.world = o.source.key.world;
habitat_config.region = o.source.key.region;
habitat_config.frame = primitive_frame;
habitat_config.width_um = *o.cellular_width_um;
habitat_config.height_um = *o.cellular_height_um;
habitat_config.width_um = cellular_width_um;
habitat_config.height_um = cellular_height_um;
habitat_config.patches = o.cellular_patches;
auto habitat = biology::CellularHabitat::create(std::move(habitat_config));
if (!habitat) {
@@ -506,7 +511,7 @@ int provision(const Options& o) {
}
auto opening = server::CellularLives::create(
*primitive_opening, std::move(*habitat),
{{*o.cellular_width_um, *o.cellular_height_um}, 0, *o.cellular_temperature_mk});
{{cellular_width_um, cellular_height_um}, 0, cellular_temperature_mk});
if (!opening) {
std::printf("cellular opening refused %u\n", static_cast<unsigned>(opening.error()));
return 4;
+8
View File
@@ -6994,3 +6994,11 @@ CI run #300 did not rerun the client suite: the path selector omitted
irrelevant. The client selector and its offline regression fixture now include
that test source. The next CI run must execute the diagnostics before its client
result can be used to unblock the server image.
CI run #301 passed the client lifecycle suite and deploy selector fixture, but
the PostgreSQL-enabled analysis rejected three unchecked cellular provisioning
optionals at `apps/evo-world-clone/main.cpp:509`. The execution path now uses
safe `value_or(0)` reads for those parsed values; valid `cellular-v1` options are
still required by the parser. The run failed before the dependent server-image
and Harbor publication jobs could start. CI must validate this repair on the
next push.