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
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user