Skip to content

Retry Python dev-server startup timeouts and align SDK versions - #59

Merged
brianstrauch merged 2 commits into
mainfrom
fix/python-dev-server-startup
Oct 8, 2026
Merged

brianstrauch merged 2 commits into
mainfrom
fix/python-dev-server-startup

Conversation

@brianstrauch

@brianstrauch brianstrauch commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

What was changed

All eight Python plugins now make up to three attempts to start the dev server when the SDK reports its explicit startup timeout, with a one-second delay between attempts. Other errors and cancellation propagate immediately. The helper accepts a configured startup callback so server options remain caller-owned.

  • Add the canonical helper and retry tests to the plugin template, copy them into every plugin's isolated test environment, and enforce byte-identical copies through the conventions check.
  • Rewrite the Deep Agents suggestion test to supply both SDK suggestion values while exercising real continue-as-new and state carry. Remove its lowered server history threshold and timer-heavy fake agent.
  • Upgrade MCP and OpenAI Agents to SDK 1.34.0 and update the new-plugin template to require temporalio>=1.34.0,<2. All eight plugin lockfiles retain SDK 1.34.0. SDK dependencies and lockfiles remain managed per plugin, preserving plugin-specific extras and compatibility with later SDK 1.x releases.

Why?

The Deep Agents Windows CI job failed during fixture setup because the local server missed the SDK's five-second startup deadline. OpenAI Agents already had a broader retry helper; applying one narrow policy across the plugins makes the recovery consistent.

Using SDK 1.34.0 across the plugin test environments gives the helper one startup-timeout format to recognize.

Checklist

  1. How was this tested:
    • All eight full plugin suites with two pytest workers per suite: 757 passed, 17 skipped.
    • All eight plugin lint and type-check targets passed.
    • Repository tooling tests: 153 passed, including retry-template drift and new-plugin scaffolding coverage.
    • Repository conventions and git diff --check passed.
    • Confirmed all eight plugin requirements use >=1.34.0,<2, every plugin lockfile contains SDK 1.34.0, and the source template requires SDK 1.34.0 or later.
    • MCP and OpenAI Agents wheels and sdists built, passed artifact checks, and passed isolated import/provenance smoke tests.
    • Local validation ran on macOS; the PR's CI matrix validates Windows and Linux.
  2. Docs updates: document the startup retry policy in AGENTS.md and update the OpenAI Agents installation requirements and cutover guidance for Temporal 1.34 or later.

@brianstrauch
brianstrauch requested a review from a team as a code owner October 7, 2026 18:12
@brianstrauch
brianstrauch merged commit 494ef90 into main Oct 8, 2026
90 of 92 checks passed
@brianstrauch
brianstrauch deleted the fix/python-dev-server-startup branch October 8, 2026 20:32
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