From b51c96a5766ca95a8bec8a6e463b7a7296e7dbb3 Mon Sep 17 00:00:00 2001 From: dingo Date: Mon, 12 Oct 2026 03:35:44 -0400 Subject: [PATCH] Initialize cellular host before checking recovery --- docs/engineering/VALIDATION.md | 8 ++++++++ tests/cellular_publication_tests.cpp | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/engineering/VALIDATION.md b/docs/engineering/VALIDATION.md index f7922e6..048ea7e 100644 --- a/docs/engineering/VALIDATION.md +++ b/docs/engineering/VALIDATION.md @@ -7085,3 +7085,11 @@ CI run #326 compiled the PostgreSQL targets but failed while applying migration name already created by migration 28. The pending migration now uses the unique `parse_checkpoint_manifest_v31` alias. The PostgreSQL gate and Harbor image publication are pending another CI run. + +CI run #327 applied migration 32 and built the PostgreSQL test targets, then +failed in the cellular publication integration test while recovering the +migrated checkpoint. The fixture inspected `committed()` before calling `step()` +on the newly created host; host recovery and lease acquisition happen during +`step()`. The test now checks readiness first, matching the established restart +test. PostgreSQL CI and Harbor image publication must rerun before a playtest +image is available. diff --git a/tests/cellular_publication_tests.cpp b/tests/cellular_publication_tests.cpp index 5b407f6..521190f 100644 --- a/tests/cellular_publication_tests.cpp +++ b/tests/cellular_publication_tests.cpp @@ -299,10 +299,11 @@ void cellular_profile_migration_is_durable_and_recovers_without_a_tick() { auto restarted_made = CellularRegionHost::create(config, connect, std::move(*recovery_objects)); CHECK(restarted_made); auto restarted = std::move(*restarted_made); + CHECK(restarted->step().ready); const auto restarted_committed = restarted->committed(); CHECK(restarted_committed); const auto& restarted_committed_value = checked_value(restarted_committed); - CHECK(restarted->step().ready && restarted_committed_value.head.sequence == 3 && + CHECK(restarted_committed_value.head.sequence == 3 && restarted_committed_value.head.end_tick == 1 && restarted->state()->tick() == 1 && restarted->state()->format_version() == cellular_lives_revision_format && restarted->state()->snapshot() == *target_payload);