Skip to content

Add AI integration testing suite#214

Open
gvdongen wants to merge 12 commits into
mainfrom
ai-testing-suite
Open

Add AI integration testing suite#214
gvdongen wants to merge 12 commits into
mainfrom
ai-testing-suite

Conversation

@gvdongen

@gvdongen gvdongen commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an end-to-end AI integration test suite for the Python SDK’s Restate AI integrations:

  • OpenAI Agents
  • Pydantic AI
  • Google ADK
  • LangChain

The suite runs the integrations against a real Restate test harness and focuses on the failure modes most likely to break during upstream Agent SDK upgrades: journal mismatches, replay instability, changed response types, tool execution, multi-turn session state, handoffs, and concurrent invocations.

What changed

  • Added ai-tests/ with scripted and live-model scenarios for each integration.
  • Added deterministic model stubs so most tests run without provider credentials.
  • Added live OpenAI/Gemini variants for the tool-call and multi-turn scenarios to check for model response serialization issues.
  • Tests use session-scoped create_test_harness(...) fixtures.
  • Runs tests with always_replay=True and disable_retries=True.
  • Added isolated just recipes per integration and for the full AI suite.
  • Added CI workflows for AI integration tests and manual SDK bump testing.
  • Added configurable harness/client timeout with a 30s default.

Why

Keeping these integrations compatible with fast-moving Agent SDKs currently requires manual upgrades and example testing. This PR makes that process repeatable: bump an SDK, run the focused integration suite, and catch the common breakages before merging.

The tests are integration checks, not model evals. They verify that the SDK protocols remain compatible and deterministic under Restate replay.

Testing

  • just test-ai-scripted (without OpenAI and Google API key, or just test-ai with API keys

This currently runs the deterministic variants for all four integrations.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

Test Results

  8 files  ±0    8 suites  ±0   3m 36s ⏱️ +11s
 60 tests ±0   60 ✅ ±0  0 💤 ±0  0 ❌ ±0 
267 runs  ±0  267 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit bbce19c. ± Comparison against base commit 9e6cd76.

♻️ This comment has been updated with latest results.

@gvdongen
gvdongen marked this pull request as ready for review July 17, 2026 16:11
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.

1 participant