Skip to content

Fix flaky OpenAI test timeouts#1466

Merged
DABH merged 1 commit into
mainfrom
fix-openai-test-timeouts
Apr 20, 2026
Merged

Fix flaky OpenAI test timeouts#1466
DABH merged 1 commit into
mainfrom
fix-openai-test-timeouts

Conversation

@DABH
Copy link
Copy Markdown
Contributor

@DABH DABH commented Apr 19, 2026

Noticed while working on #1448. Encountered repeated failures on 3.14/ubuntu-latest with the tests in question here and then no failures of these tests after these changes.

Summary

  • test_hello_world_agent[False] had a 5s execution_timeout and test_input_guardrail[False] had 10s, but both use a 30s activity start_to_close_timeout
  • The workflow times out before the OpenAI API call can complete on slower CI runners (consistently failing on ubuntu-latest)
  • Bumped both to 60s to give the real OpenAI API calls enough headroom

Test plan

  • Verify build-lint-test (3.14, ubuntu-latest) OpenAI test step passes

test_hello_world_agent[False] had a 5s execution timeout and
test_input_guardrail[False] had a 10s timeout, but both use a 30s
activity start_to_close_timeout. The workflow times out before the
OpenAI API call can complete on slower CI runners. Bump both to 60s.
@DABH DABH requested a review from a team as a code owner April 19, 2026 18:42
Copy link
Copy Markdown
Member

@brianstrauch brianstrauch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 but in the long run these tests should be rewritten to not make external API calls

@DABH
Copy link
Copy Markdown
Contributor Author

DABH commented Apr 20, 2026

These tests maybe shouldn't but e2e smoke/system tests with real API calls are good and should live somewhere...

@DABH DABH merged commit 7e36940 into main Apr 20, 2026
30 of 31 checks passed
@DABH DABH deleted the fix-openai-test-timeouts branch April 20, 2026 17:29
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