Commit 278570d
authored
fix(ci): increase test-examples timeout and reduce sleep in error_handling example (#760)
The `test-examples` CI job running `streaming_mode.py all` consistently
times out at 120 seconds. This happens because the job runs 10
sequential live API examples, and the error_handling example's `sleep
60` bash command (which intentionally triggers an asyncio timeout after
10s) adds unnecessary wall-clock time, especially with slower CLI
versions.
**Changes:**
1. **`examples/streaming_mode.py`**: Reduce the bash sleep duration from
60 seconds to 5 seconds in the timeout/error-handling example. The
internal `asyncio.timeout(10.0)` still fires correctly since 5s < 10s
would let it complete normally, but the important behavior
(demonstrating timeout handling) is preserved. A 5-second sleep is
sufficient to show the pattern without wasting 50+ seconds of CI budget.
2. **`.github/workflows/test.yml`**: Increase the `timeout` for
`streaming_mode.py all` from 120s to 180s to provide headroom for API
latency variance across the full suite of examples.1 parent 4e8e7c9 commit 278570d
2 files changed
Lines changed: 25 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
157 | | - | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
292 | 297 | | |
293 | 298 | | |
294 | 299 | | |
| |||
355 | 360 | | |
356 | 361 | | |
357 | 362 | | |
358 | | - | |
| 363 | + | |
359 | 364 | | |
360 | 365 | | |
361 | 366 | | |
362 | 367 | | |
363 | | - | |
| 368 | + | |
364 | 369 | | |
365 | 370 | | |
366 | 371 | | |
| |||
377 | 382 | | |
378 | 383 | | |
379 | 384 | | |
| 385 | + | |
380 | 386 | | |
381 | 387 | | |
382 | 388 | | |
| |||
428 | 434 | | |
429 | 435 | | |
430 | 436 | | |
431 | | - | |
432 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
433 | 441 | | |
434 | 442 | | |
435 | 443 | | |
436 | 444 | | |
437 | | - | |
| 445 | + | |
438 | 446 | | |
439 | 447 | | |
440 | 448 | | |
| |||
447 | 455 | | |
448 | 456 | | |
449 | 457 | | |
450 | | - | |
| 458 | + | |
451 | 459 | | |
452 | 460 | | |
453 | 461 | | |
| |||
0 commit comments