fix(test): Double timeout for slow OpenAI API tests#1794
Merged
Stephen Belanger (Qard) merged 3 commits intomainfrom Apr 10, 2026
Merged
fix(test): Double timeout for slow OpenAI API tests#1794Stephen Belanger (Qard) merged 3 commits intomainfrom
Stephen Belanger (Qard) merged 3 commits intomainfrom
Conversation
Luca Forstner (lforst)
approved these changes
Apr 10, 2026
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>
76782d2 to
0486a33
Compare
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
openai.chat.completions.toolsandopenai.responses.compacthave been timing out across many PRs (fix: Capture anthropic server tool use inputs for streaming APIs #1776, fix(claude-agent-sdk): Don't drop tool spans for spawning subagents #1779, fix(openai): Collectlogprobandrefulsalsoutput for streaming APIs #1774, feat(claude-agent-sdk): Improve task lifecycle and lifecycle details #1777, feat: Capture grounding metadata for Google GenAI #1773, feat: Track server tool use metrics for anthropic SDK #1772) due to OpenAI API latency🤖 Generated with Claude Code