- Package Name: azure-ai-projects ,
azure-ai-agents
- Package Version: latest (main branch)
- Operating System:All
- Python Version:3.10+
Describe the bug
A manual audit of the sample scripts has revealed systemic robustness issues including infinite polling loops, blocking synchronous sleep in asynchronous samples, and missing error handling for failed run statuses. These patterns could lead to client-side DoS or frozen event loops if adopted by developers.
To Reproduce
- Infinite polling in 'sample_evaluations_builtin_with_traces.py' (L241-L248).
- Blocking 'time.sleep()' in 'sample_agents_functions_async.py' (L81-L83).
- Missing status checks before processing outputs in 'sample_evaluations_builtin_with_csv.py'.`
Expected behavior
- Polling loops should have a maximum timeout or retry limit. 2. Asynchronous samples must use 'await asyncio.sleep()' instead of 'time.sleep()'. 3. Scripts should explicitly verify that a run status is 'completed' before attempting to retrieve results.
Screenshots
Additional context
I am a bug hunter and would be happy to submit a Pull Request to fix these issues in the samples if the maintainers agree with these findings.
azure-ai-agents
Describe the bug
A manual audit of the sample scripts has revealed systemic robustness issues including infinite polling loops, blocking synchronous sleep in asynchronous samples, and missing error handling for failed run statuses. These patterns could lead to client-side DoS or frozen event loops if adopted by developers.
To Reproduce
Expected behavior
Screenshots
Additional context
I am a bug hunter and would be happy to submit a Pull Request to fix these issues in the samples if the maintainers agree with these findings.