Skip to content

Commit e11f74c

Browse files
mpk-droidclaude
andcommitted
fix: scope route lookup to namespace and skip sleep on last retry
- Pass namespace to get_route so it doesn't resolve against the wrong project - Break out of retry loop on last attempt instead of sleeping needlessly Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6ef17f1 commit e11f74c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

agents/langgraph/react_agent/tests/integration/test_deployment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def deployed_agent(cluster_auth, agent_dir):
5050
run_make("deploy", cwd=agent_dir, timeout=300)
5151
deployed = True
5252

53-
route_url = get_route(AGENT_NAME)
53+
route_url = get_route(AGENT_NAME, namespace=namespace)
5454
logger.info("Agent deployed at %s", route_url)
5555

5656
yield route_url

tests/integration/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def health_check(
111111
httpx.TimeoutException,
112112
) as exc:
113113
last_exc = exc
114+
if attempt == retries - 1:
115+
break
114116
wait = min(backoff * (2 ** attempt), 15.0)
115117
logger.info(
116118
"Health check attempt %d/%d failed, retrying in %.1fs: %s",

0 commit comments

Comments
 (0)