fix: deploy extra smoke uses Gerenciador /login and is non-blocking

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
gti
2026-09-24 10:25:45 -03:00
co-authored by Claude Sonnet 5
parent 25a8321dd4
commit 59443ffe3e
+5 -2
View File
@@ -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")