From 59443ffe3e35b51ded6e7e866e750e0402f00b84 Mon Sep 17 00:00:00 2001 From: gti Date: Thu, 24 Sep 2026 10:25:45 -0300 Subject: [PATCH] fix: deploy extra smoke uses Gerenciador /login and is non-blocking Co-Authored-By: Claude Sonnet 5 --- scripts/deploy_hub_remote.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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")