Repository navigation
Commit 74394c5
fix(ci): pin the tutorial agents to the local server explicitly
The tutorial tests passed only because the generated client defaulted to
http://localhost:5003. The tutorials' test clients pass base_url
explicitly, but the AGENTS do not: the ADK builds Agentex() and
AsyncAgentex() with no arguments, so they fall back to
ENVIRONMENTS["production"] in _client.py.
That default is wrong, and it shipped. agentex-client 0.28.1 on PyPI
carries "production": "http://localhost:5003", so every user calling
Agentex() is pointed at their own machine. This trunk already corrects it
to https://agentex.sgp.scale.com, matching stainless.yml -- which is why
19 tutorial legs fail on the promote branch while the identical suite
passes on the production trunk (33 passed, 0 failed, dispatched as a
baseline to check exactly this).
So the promote fixes a real bug and these tests were encoding it as
expected behaviour. Pin the local server explicitly rather than reverting
the fix. Agents are plain subprocesses of run_agent_test.sh and inherit
the step environment.
The variable name matters: the SDK reads AGENTEX_BASE_URL, while the
AGENTEX_API_BASE_URL already on the command line is a separate variable
that only the tutorials' own test files read.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent bc1a463 commit 74394c5
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
172 | 187 | | |
173 | 188 | | |
174 | 189 | | |
| |||
0 commit comments