Skip to content

Conversation

@danielmillerp
Copy link
Contributor

(base) daniel.miller@SCMC4KVFJ06LL tutorials % ./run_all_async_tests.sh

Running All Async Tutorial Tests

βœ… Prerequisites check passed


Testing: 00_sync/000_hello_acp

πŸš€ Starting 000_hello_acp agent...
βœ… 000_hello_acp agent started (PID: 92063, logs: /tmp/agentex-000_hello_acp.log)
⏳ Waiting for 000_hello_acp agent to be ready...
βœ… 000_hello_acp agent is ready
πŸ§ͺ Running tests for 000_hello_acp...
========================================================== test session starts ==========================================================
platform darwin -- Python 3.13.5, pytest-8.4.2, pluggy-1.6.0 -- /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials/00_sync/000_hello_acp/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials
configfile: pytest.ini
plugins: asyncio-1.2.0, anyio-4.11.0, xdist-3.8.0, ddtrace-3.18.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 2 items

tests/test_agent.py::TestNonStreamingMessages::test_send_simple_message PASSED
tests/test_agent.py::TestStreamingMessages::test_stream_simple_message PASSED

=========================================================== 2 passed in 0.21s ===========================================================
βœ… Tests passed for 000_hello_acp
βœ… PASSED: 00_sync/000_hello_acp
πŸ›‘ Stopping 000_hello_acp agent...
Stopping 000_hello_acp agent (PID: 92063)
βœ… 000_hello_acp agent stopped
Logs available at: /tmp/agentex-000_hello_acp.log


Testing: 00_sync/010_multiturn

πŸš€ Starting 010_multiturn agent...
βœ… 010_multiturn agent started (PID: 92092, logs: /tmp/agentex-010_multiturn.log)
⏳ Waiting for 010_multiturn agent to be ready...
βœ… 010_multiturn agent is ready
πŸ§ͺ Running tests for 010_multiturn...
========================================================== test session starts ==========================================================
platform darwin -- Python 3.13.5, pytest-8.4.2, pluggy-1.6.0 -- /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials/00_sync/010_multiturn/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials
configfile: pytest.ini
plugins: asyncio-1.2.0, anyio-4.11.0, ddtrace-3.18.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 2 items

tests/test_agent.py::TestNonStreamingMessages::test_send_message PASSED
tests/test_agent.py::TestStreamingMessages::test_stream_message PASSED

========================================================== 2 passed in 30.75s ===========================================================
βœ… Tests passed for 010_multiturn
βœ… PASSED: 00_sync/010_multiturn
πŸ›‘ Stopping 010_multiturn agent...
Stopping 010_multiturn agent (PID: 92092)
βœ… 010_multiturn agent stopped
Logs available at: /tmp/agentex-010_multiturn.log


Testing: 00_sync/020_streaming

πŸš€ Starting 020_streaming agent...
βœ… 020_streaming agent started (PID: 92152, logs: /tmp/agentex-020_streaming.log)
⏳ Waiting for 020_streaming agent to be ready...
βœ… 020_streaming agent is ready
πŸ§ͺ Running tests for 020_streaming...
========================================================== test session starts ==========================================================
platform darwin -- Python 3.13.5, pytest-8.4.2, pluggy-1.6.0 -- /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials/00_sync/020_streaming/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials
configfile: pytest.ini
plugins: asyncio-1.2.0, anyio-4.11.0, ddtrace-3.18.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 2 items

tests/test_agent.py::TestNonStreamingMessages::test_send_message PASSED
tests/test_agent.py::TestStreamingMessages::test_send_stream_message PASSED

========================================================== 2 passed in 33.14s ===========================================================
βœ… Tests passed for 020_streaming
βœ… PASSED: 00_sync/020_streaming
πŸ›‘ Stopping 020_streaming agent...
Stopping 020_streaming agent (PID: 92152)
βœ… 020_streaming agent stopped
Logs available at: /tmp/agentex-020_streaming.log


Testing: 10_async/10_temporal/060_open_ai_agents_sdk_hello_world

πŸš€ Starting 060_open_ai_agents_sdk_hello_world agent...
βœ… 060_open_ai_agents_sdk_hello_world agent started (PID: 92333, logs: /tmp/agentex-060_open_ai_agents_sdk_hello_world.log)
⏳ Waiting for 060_open_ai_agents_sdk_hello_world agent to be ready...
βœ… 060_open_ai_agents_sdk_hello_world agent is ready
πŸ§ͺ Running tests for 060_open_ai_agents_sdk_hello_world...
========================================================== test session starts ==========================================================
platform darwin -- Python 3.13.5, pytest-8.4.2, pluggy-1.6.0 -- /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials
configfile: pytest.ini
plugins: asyncio-1.2.0, anyio-4.11.0, ddtrace-3.18.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 2 items

tests/test_agent.py::TestNonStreamingEvents::test_send_event_and_poll [DEBUG 060 POLL] Sending message: 'Hello how is life?'
[DEBUG 060 POLL] Received update - Status: None, Content length: 295
[DEBUG 060 POLL] Received update - Status: IN_PROGRESS, Content length: 0
[DEBUG 060 POLL] Received update - Status: DONE, Content length: 84
[DEBUG 060 POLL] Streaming complete!
[DEBUG 060 POLL] βœ… Successfully received haiku response!
[DEBUG 060 POLL] Final haiku:
Life flows like a stream,
With moments of peace and change,
Endless in its song.
PASSED
tests/test_agent.py::TestStreamingEvents::test_send_event_and_stream PASSED

=========================================================== 2 passed in 3.28s ===========================================================
βœ… Tests passed for 060_open_ai_agents_sdk_hello_world
βœ… PASSED: 10_async/10_temporal/060_open_ai_agents_sdk_hello_world
πŸ›‘ Stopping 060_open_ai_agents_sdk_hello_world agent...
Stopping 060_open_ai_agents_sdk_hello_world agent (PID: 92333)
βœ… 060_open_ai_agents_sdk_hello_world agent stopped
Logs available at: /tmp/agentex-060_open_ai_agents_sdk_hello_world.log


Testing: 10_async/10_temporal/070_open_ai_agents_sdk_tools

πŸš€ Starting 070_open_ai_agents_sdk_tools agent...
βœ… 070_open_ai_agents_sdk_tools agent started (PID: 92546, logs: /tmp/agentex-070_open_ai_agents_sdk_tools.log)
⏳ Waiting for 070_open_ai_agents_sdk_tools agent to be ready...
βœ… 070_open_ai_agents_sdk_tools agent is ready
πŸ§ͺ Running tests for 070_open_ai_agents_sdk_tools...
========================================================== test session starts ==========================================================
platform darwin -- Python 3.13.5, pytest-8.4.2, pluggy-1.6.0 -- /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials
configfile: pytest.ini
plugins: asyncio-1.2.0, anyio-4.11.0, ddtrace-3.18.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 2 items

tests/test_agent.py::TestNonStreamingEvents::test_send_event_and_poll [DEBUG 070 POLL] Polling for initial task creation message...
[DEBUG 070 POLL] Initial message: Hello! I've received your task. Normally you can do some state initialization here, or just pass and
[DEBUG 070 POLL] Sending message: 'What is the weather in New York City?'
[DEBUG 070 POLL] Received message - Type: text, Author: agent, Status: None
[DEBUG 070 POLL] Agent text update - Status: None, Length: 375
[DEBUG 070 POLL] Received message - Type: text, Author: user, Status: None
[DEBUG 070 POLL] Received message - Type: text, Author: agent, Status: IN_PROGRESS
[DEBUG 070 POLL] Agent text update - Status: IN_PROGRESS, Length: 0
[DEBUG 070 POLL] Received message - Type: text, Author: agent, Status: DONE
[DEBUG 070 POLL] Agent text update - Status: DONE, Length: 0
[DEBUG 070 POLL] Received message - Type: tool_request, Author: agent, Status: DONE
[DEBUG 070 POLL] βœ… Saw tool_request - agent is calling get_weather tool
[DEBUG 070 POLL] Received message - Type: tool_response, Author: agent, Status: DONE
[DEBUG 070 POLL] βœ… Saw tool_response - get_weather returned result
[DEBUG 070 POLL] Received message - Type: text, Author: agent, Status: IN_PROGRESS
[DEBUG 070 POLL] Agent text update - Status: IN_PROGRESS, Length: 0
[DEBUG 070 POLL] Received message - Type: text, Author: agent, Status: DONE
[DEBUG 070 POLL] Agent text update - Status: DONE, Length: 63
[DEBUG 070 POLL] βœ… Streaming complete!
[DEBUG 070 POLL] Final response: The current temperature in New York City is 22 degrees Celsius.
PASSED
tests/test_agent.py::TestStreamingEvents::test_send_event_and_stream PASSED

=========================================================== 2 passed in 4.31s ===========================================================
βœ… Tests passed for 070_open_ai_agents_sdk_tools
βœ… PASSED: 10_async/10_temporal/070_open_ai_agents_sdk_tools
πŸ›‘ Stopping 070_open_ai_agents_sdk_tools agent...
Stopping 070_open_ai_agents_sdk_tools agent (PID: 92546)
βœ… 070_open_ai_agents_sdk_tools agent stopped
Logs available at: /tmp/agentex-070_open_ai_agents_sdk_tools.log


Testing: 10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop

πŸš€ Starting 080_open_ai_agents_sdk_human_in_the_loop agent...
βœ… 080_open_ai_agents_sdk_human_in_the_loop agent started (PID: 92647, logs: /tmp/agentex-080_open_ai_agents_sdk_human_in_the_loop.log)
⏳ Waiting for 080_open_ai_agents_sdk_human_in_the_loop agent to be ready...
βœ… 080_open_ai_agents_sdk_human_in_the_loop agent is ready
πŸ§ͺ Running tests for 080_open_ai_agents_sdk_human_in_the_loop...
========================================================== test session starts ==========================================================
platform darwin -- Python 3.13.5, pytest-8.4.2, pluggy-1.6.0 -- /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/daniel.miller/codebases/scale-agentex-python/examples/tutorials
configfile: pytest.ini
plugins: asyncio-1.2.0, anyio-4.11.0, ddtrace-3.18.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 2 items

tests/test_agent.py::TestNonStreamingEvents::test_send_event_and_poll_with_human_approval [DEBUG 080 POLL] Polling for initial task creation message...
[DEBUG 080 POLL] Initial message: Hello! I've received your task. Normally you can do some state initialization here, or just pass and
[DEBUG 080 POLL] Sending message: 'Please confirm my order'
[DEBUG 080 POLL] Waiting for child workflow to spawn...
[DEBUG 080 POLL] Received message - Type: text, Author: agent, Status: None
[DEBUG 080 POLL] Agent text update - Status: None, Length: 375
[DEBUG 080 POLL] Received message - Type: text, Author: user, Status: None
[DEBUG 080 POLL] Received message - Type: text, Author: agent, Status: DONE
[DEBUG 080 POLL] Agent text update - Status: DONE, Length: 0
[DEBUG 080 POLL] Received message - Type: tool_request, Author: agent, Status: DONE
[DEBUG 080 POLL] βœ… Saw tool_request - agent is calling wait_for_confirmation tool
[DEBUG 080 POLL] πŸ”” Child workflow should be spawned - will signal it to approve
[DEBUG 080 POLL] Sending approval signal to child workflow...
[DEBUG 080 POLL] βœ… Approval signal sent successfully!
[DEBUG 080 POLL] Received message - Type: tool_response, Author: agent, Status: DONE
[DEBUG 080 POLL] βœ… Saw tool_response - child workflow completed after approval
[DEBUG 080 POLL] Received message - Type: text, Author: agent, Status: DONE
[DEBUG 080 POLL] Agent text update - Status: DONE, Length: 74
[DEBUG 080 POLL] βœ… Streaming complete!
[DEBUG 080 POLL] βœ… Human-in-the-loop workflow completed successfully!
PASSED
tests/test_agent.py::TestStreamingEvents::test_send_event_and_stream PASSED

=========================================================== 2 passed in 7.41s ===========================================================
βœ… Tests passed for 080_open_ai_agents_sdk_human_in_the_loop
βœ… PASSED: 10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop
πŸ›‘ Stopping 080_open_ai_agents_sdk_human_in_the_loop agent...
Stopping 080_open_ai_agents_sdk_human_in_the_loop agent (PID: 92647)
βœ… 080_open_ai_agents_sdk_human_in_the_loop agent stopped
Logs available at: /tmp/agentex-080_open_ai_agents_sdk_human_in_the_loop.log

================================================================================
Test Summary

Total: 6
Passed: 6
Failed: 0

πŸŽ‰ All tests passed!

(base) daniel.miller@SCMC4KVFJ06LL tutorials %

@danielmillerp danielmillerp merged commit 27e0e0a into main Nov 6, 2025
12 checks passed
@danielmillerp danielmillerp deleted the dm/update-tests branch November 6, 2025 15:01
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.

3 participants