fix: serialize Tower migration validation
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-14 15:22:16 +02:00
parent c0943fe7d4
commit 7fa4f1fac9
5 changed files with 64 additions and 0 deletions
@@ -248,3 +248,13 @@ def test_temporal_frontend_and_official_operator_contracts_exist() -> None:
assert "provision_mol_population_history.py" in dockerfile
assert "provision_mol_historical_landuse.py" in dockerfile
assert "fake" not in population.lower()
def test_tower_deploy_waits_for_startup_migration_before_live_smoke() -> None:
for relative_path in ("scripts/deploy_tower.ps1", "scripts/deploy_tower.sh"):
script = (ROOT / relative_path).read_text(encoding="utf-8")
wait_position = script.index("wait_for_geointel_health")
invocation_position = script.index("\nwait_for_geointel_health", wait_position)
smoke_position = script.index("LIVE_SMOKE_CONTAINER=geointel bash scripts/live_migration_smoke.sh")
assert "docker inspect --format" in script
assert invocation_position < smoke_position