ci: run python-ci on ubuntu-latest runner image
CI / skip-ci-check (pull_request) Successful in 30s
CI / secret-scan (pull_request) Successful in 30s
CI / python-ci (pull_request) Failing after 42s

Host/container nesting with node:20-bookworm kept failing on main
(~50s) while local pytest (105) and ruff stayed green. Match apply-bot:
setup-python on ubuntu-latest docker label, keep secret-scan on heavy.
This commit is contained in:
2026-08-06 13:38:25 -04:00
parent 7c3c92ec13
commit b24544066e
2 changed files with 20 additions and 23 deletions
+5 -3
View File
@@ -69,16 +69,18 @@ def _free_port() -> int:
return s.getsockname()[1]
def _wait_health(url: str, timeout: float = 30.0) -> None:
def _wait_health(url: str, timeout: float = 45.0) -> None:
deadline = time.time() + timeout
last_err: Exception | None = None
while time.time() < deadline:
try:
with urllib.request.urlopen(url, timeout=1) as resp:
if resp.status == 200:
return
except (urllib.error.URLError, TimeoutError):
except (urllib.error.URLError, TimeoutError) as exc:
last_err = exc
time.sleep(0.15)
raise RuntimeError(f"Server did not start: {url}")
raise RuntimeError(f"Server did not start: {url} ({last_err!r})")
@pytest.fixture(scope="session")