Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions integration_tests/test_deployment_validation_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ def test_probe_runs_and_returns_expected_shape(
data = resp.json()["data"]
# Probe-launched shape, not the short-circuit shape.
assert "probe_id" in data, f"expected probe-launched shape with probe_id; got {data!r}"
# Probe-timeout shape (``probe_id`` + ``error: probe_timeout``, no
# ``result``) is environmental — surface a useful message instead
# of letting ``data["result"]`` raise ``KeyError``.
if "result" not in data:
pytest.fail(f"probe pod did not complete before route timeout: {data!r}")
result = data["result"]
assert result.get("gateway_reachable") is True
assert result.get("internet_blocked") is True
Expand Down
5 changes: 4 additions & 1 deletion orchestrator/routes/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,10 @@ def validate_network_isolation() -> tuple[Response, int]:
return jsonify({"success": False, "message": f"probe submit failed: {exc}"}), 500

try:
pod = _wait_for_probe_pod(k8s, namespace, probe_id, timeout=30.0)
# 30s was too tight: probe-pod scheduling on the k3s integration
# cluster intermittently exceeded the deadline. 75s sits under the
# require_lifecycle_secret route's 90s HTTP-timeout ceiling.
pod = _wait_for_probe_pod(k8s, namespace, probe_id, timeout=75.0)
if pod is None:
return (
jsonify(
Expand Down
Loading