Set timeouts on curl requests in CI

This commit is contained in:
Ben Banfield-Zanin 2025-12-15 10:45:03 +00:00
parent 75593d0f52
commit bca3d88799
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1 @@
CI: set timeouts for curl so it doesn't attempt to connect for longer than `Pod` startup time.

View file

@ -261,6 +261,10 @@ async def has_actual_metrics_on_endpoint(
"curl",
[
"-s",
"--connect-timeout",
"2",
"--max-time",
"5",
f"http://{service.metadata.name}.{generated_data.ess_namespace}.svc.cluster.local:{port_spec.port}/metrics",
],
restart_policy="OnFailure",