Add cellular genome revision profile migration
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m59s
Foundation / checks (checks) (push) Failing after 2m10s
Foundation / checks (postgres) (push) Failing after 10m34s
Foundation / checks (network) (push) Failing after 12m19s
Foundation / checks (tsan) (push) Failing after 2m14s
Foundation / checks (client) (push) Successful in 15m7s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m59s
Foundation / checks (checks) (push) Failing after 2m10s
Foundation / checks (postgres) (push) Failing after 10m34s
Foundation / checks (network) (push) Failing after 12m19s
Foundation / checks (tsan) (push) Failing after 2m14s
Foundation / checks (client) (push) Successful in 15m7s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -212,6 +212,24 @@ void cellular_profile_migration_is_explicit_and_no_tick() {
|
||||
CHECK((*migrated)->advance_tick(migrated_idle) &&
|
||||
(*migrated)->format_version() == cellular_lives_format &&
|
||||
(*migrated)->rules_version() == cellular_lives_rules && (*migrated)->tick() == 3);
|
||||
|
||||
const auto v2_before = (*migrated)->snapshot();
|
||||
const auto revision_profile = (*migrated)->migrate_to_v3();
|
||||
CHECK(revision_profile &&
|
||||
(*revision_profile)->format_version() == cellular_lives_revision_format &&
|
||||
(*revision_profile)->rules_version() == cellular_lives_rules &&
|
||||
(*revision_profile)->tick() == (*migrated)->tick() &&
|
||||
(*revision_profile)->current_total() == (*migrated)->current_total() &&
|
||||
std::ranges::equal((*revision_profile)->lives(), (*migrated)->lives()) &&
|
||||
(*revision_profile)->archive().format_version() ==
|
||||
evo::biology::lineage_archive_revision_format &&
|
||||
(*revision_profile)->archive().revisions().empty() &&
|
||||
(*migrated)->snapshot() == v2_before);
|
||||
const auto v3_bytes = (*revision_profile)->snapshot();
|
||||
const auto v3_restored =
|
||||
CellularLives::restore(v3_bytes, 91, 1, 1, (*revision_profile)->tick());
|
||||
CHECK(v3_restored && (*v3_restored)->snapshot() == v3_bytes &&
|
||||
(*v3_restored)->format_version() == cellular_lives_revision_format);
|
||||
}
|
||||
|
||||
void retained_feeding_earns_a_persistent_mutation_offer() {
|
||||
|
||||
Reference in New Issue
Block a user