Skip to content

fix(test): Double timeout for slow OpenAI API tests#1794

Merged
Stephen Belanger (Qard) merged 3 commits intomainfrom
fix/oai-test-timeouts
Apr 10, 2026
Merged

fix(test): Double timeout for slow OpenAI API tests#1794
Stephen Belanger (Qard) merged 3 commits intomainfrom
fix/oai-test-timeouts

Conversation

@Qard
Copy link
Copy Markdown
Contributor

Summary

🤖 Generated with Claude Code

openai.chat.completions.tools and openai.responses.compact have been
timing out across many PRs due to OpenAI API latency. Increase their
timeout from the suite default of 10s to 30s.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Stephen Belanger (Qard) and others added 2 commits April 11, 2026 00:17
- Increase ai-sdk multi-round tool use test timeout to 60s (Windows CI
  consistently hits 30s due to multiple sequential LLM API calls)
- Increase openai e2e scenario timeout from 60s to 120s (scenario runs
  ~15 operations, some of which can take 15s+ with API slowness)
- Deduplicate identical items in summarizeResponsesOutput to avoid
  flaky snapshot failures when the Responses API returns duplicate
  output entries

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The 10s default timeout is too tight for Windows CI runners where API
calls are consistently slower. This caused openai.chat.completions.streaming
(which makes 2 API calls) to timeout after exhausting all 3 retries.

Raising to 30s matches the timeout already used in ai-sdk.test.ts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Qard Stephen Belanger (Qard) merged commit 3d3c075 into main Apr 10, 2026
53 of 55 checks passed
@Qard Stephen Belanger (Qard) deleted the fix/oai-test-timeouts branch April 10, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants