Fix mutation offer optional checks
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m0s
Foundation / checks (checks) (push) Failing after 11m42s
Foundation / checks (client) (push) Successful in 13m23s
Foundation / checks (network) (push) Failing after 12m15s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 3m22s
Foundation / checks (tsan) (push) Canceled after 1m38s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m0s
Foundation / checks (checks) (push) Failing after 11m42s
Foundation / checks (client) (push) Successful in 13m23s
Foundation / checks (network) (push) Failing after 12m15s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 3m22s
Foundation / checks (tsan) (push) Canceled after 1m38s
This commit is contained in:
@@ -549,15 +549,17 @@ match_cellular_mutation_actions_to_trace(const CellularLives& predecessor,
|
||||
const auto& mutations = batch.ticks[tick_index].mutations;
|
||||
const auto selection = std::ranges::lower_bound(mutations, life->identity.life, {},
|
||||
&CellularMutationSelection::life_id);
|
||||
if (!life->mutation.offer)
|
||||
return std::unexpected{CellularActionBlockError::mismatch};
|
||||
const auto& offer = life->mutation.offer.value();
|
||||
if (selection == mutations.end() || selection->life_id != life->identity.life ||
|
||||
selection->event_index != action.input.event_index ||
|
||||
selection->offer_tick != action.input.offer_tick ||
|
||||
selection->operator_id != action.input.operator_id || !life->mutation.offer ||
|
||||
selection->operator_id != action.input.operator_id ||
|
||||
life->mutation.event_index != action.input.event_index ||
|
||||
life->mutation.offer_tick != action.input.offer_tick ||
|
||||
life->identity.life != action.input.life_id ||
|
||||
life->mutation.offer->parent != life->identity.genome ||
|
||||
!std::ranges::any_of(life->mutation.offer->candidates, [&](const auto& candidate) {
|
||||
life->identity.life != action.input.life_id || offer.parent != life->identity.genome ||
|
||||
!std::ranges::any_of(offer.candidates, [&](const auto& candidate) {
|
||||
return candidate.operator_id == action.input.operator_id;
|
||||
}))
|
||||
return std::unexpected{CellularActionBlockError::mismatch};
|
||||
|
||||
Reference in New Issue
Block a user