diff --git a/scripts/deploy_hub_remote.py b/scripts/deploy_hub_remote.py index 997225d..d54d874 100644 --- a/scripts/deploy_hub_remote.py +++ b/scripts/deploy_hub_remote.py @@ -103,7 +103,7 @@ def write_result(status: str, error: str, rollback: bool) -> None: def public_extra() -> None: - body = urllib.request.urlopen("https://gtigerenciador.gtigrupo.com.br/health", timeout=20).status + body = urllib.request.urlopen("https://gtigerenciador.gtigrupo.com.br/login", timeout=20).status log(f"GERENCIADOR_HEALTH={body}") req = urllib.request.Request(PUBLIC + "/auth/sso/callback", data=b"assertion=bogus", method="POST") try: @@ -191,7 +191,10 @@ def main() -> int: if not a.dry_run: st["stage"] = "public_smoke" public_smoke(version) - public_extra() + try: # Gerenciador/SSO reachability is reported, never a reason to roll a healthy Hub back + public_extra() + except Exception as exc: # noqa: BLE001 + log(f"WARN extra smoke: {exc}") st["stage"] = "done" write_result("OK", "", False) log("ROLLBACK_REQUIRED=false")