Fix cellular lifecycle validation and trigger image smoke
Foundation / checks (deploy) (push) Successful in 11s
Foundation / checks (ecs) (push) Successful in 1m57s
Foundation / checks (client) (push) Successful in 13m21s
Foundation / checks (network) (push) Successful in 15m17s
Foundation / checks (checks) (push) Failing after 18m24s
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 1m37s
Foundation / checks (postgres) (push) Canceled after 5m49s
Foundation / checks (deploy) (push) Successful in 11s
Foundation / checks (ecs) (push) Successful in 1m57s
Foundation / checks (client) (push) Successful in 13m21s
Foundation / checks (network) (push) Successful in 15m17s
Foundation / checks (checks) (push) Failing after 18m24s
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 1m37s
Foundation / checks (postgres) (push) Canceled after 5m49s
This commit is contained in:
@@ -276,7 +276,8 @@ void retained_feeding_earns_a_persistent_mutation_offer() {
|
||||
const std::array intent{CellularLifeIntent{life_id, {{0, 0}, {{0, 0}}}}};
|
||||
const auto advanced = owner.advance_tick(intent);
|
||||
CHECK(advanced && advanced->lives.size() == 1 && advanced->lives[0].candidate.intake);
|
||||
const auto& intake = advanced->lives[0].candidate.intake.value();
|
||||
const auto intake = advanced->lives[0].candidate.intake.value_or(
|
||||
evo::biology::CellularPatchUptakeProposal{});
|
||||
total_acquired += intake.transfer.acquired.energy.value;
|
||||
const auto offer = owner.mutation_offer(life_id);
|
||||
CHECK(offer);
|
||||
@@ -309,11 +310,13 @@ void retained_feeding_earns_a_persistent_mutation_offer() {
|
||||
auto revision_owner = owner.migrate_to_v3();
|
||||
CHECK(revision_owner && (*revision_owner)->format_version() == cellular_lives_revision_format);
|
||||
const auto current_offer = (*revision_owner)->mutation_offer(life_id);
|
||||
CHECK(current_offer && *current_offer);
|
||||
const auto current_offer_data =
|
||||
current_offer.value_or(std::nullopt).value_or(evo::biology::MutationOffer{});
|
||||
CHECK(current_offer && !current_offer_data.candidates.empty());
|
||||
const CellularMutationSelection selection{life_id,
|
||||
(*revision_owner)->lives()[0].mutation.event_index,
|
||||
(*revision_owner)->lives()[0].mutation.offer_tick,
|
||||
999, (*current_offer)->candidates[0].operator_id};
|
||||
999, current_offer_data.candidates[0].operator_id};
|
||||
CellularBatch mutation_batch;
|
||||
mutation_batch.header = {(*revision_owner)->world(),
|
||||
(*revision_owner)->region(),
|
||||
|
||||
Reference in New Issue
Block a user