Recover cellular profile migration after lease reacquire
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (postgres) (push) Failing after 4m4s
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 5m8s
Foundation / checks (checks) (push) Canceled after 7m14s

This commit is contained in:
dingo
2026-10-11 05:18:15 -04:00
parent 66b8088f44
commit b8d0262a6c
+8 -6
View File
@@ -235,12 +235,14 @@ void cellular_profile_migration_is_durable_and_recovers_without_a_tick() {
const auto target_payload =
(*recovery_objects)->get({target_manifest->payload_sha256, target_manifest->payload_bytes});
CHECK(target_payload);
const auto recovered = recover_cellular_checkpoint(*owner, **recovery_objects, key, *authority,
std::span{&build, 1}, 5s);
CHECK(recovered && recovered->checkpoint.head.sequence == 2 &&
recovered->checkpoint.head.end_tick == 1 && recovered->state->tick() == 1 &&
recovered->state->format_version() == cellular_lives_format &&
recovered->state->snapshot() == *target_payload);
auto restarted_made = CellularRegionHost::create(config, connect, std::move(*recovery_objects));
CHECK(restarted_made);
auto restarted = std::move(*restarted_made);
CHECK(restarted->step().ready && restarted->committed()->head.sequence == 2 &&
restarted->committed()->head.end_tick == 1 && restarted->state()->tick() == 1 &&
restarted->state()->format_version() == cellular_lives_format &&
restarted->state()->snapshot() == *target_payload);
restarted->drain();
}
} // namespace