Skip to content

Python: Integration tests failing due to parallel worker crashes in Azure Functions in Py3.13 #4259

@larohra

Description

@larohra

Description
The Python - Merge - Tests workflow job is failing due to all 20 parallel pytest-xdist workers crashing during integration tests in packages/azurefunctions/tests/integration_tests/.

Job: https://github.com/microsoft/agent-framework/actions/runs/22343078848/job/64650758582

Symptoms
20 tests failed, 18 passed, 3 skipped (ran for ~12 minutes)
All failures are worker crashes, not assertion errors
Failures span all test categories: single agent, multi-agent, workflows, and HITL
Even the basic test_health_check test fails, indicating the Azure Functions host was likely unreachable
Affected Tests
test_01_single_agent.py – 5 tests
test_04_single_agent_orchestration_chaining.py – 1 test
test_05_multi_agent_orchestration_concurrency.py – 1 test
test_06_multi_agent_orchestration_conditionals.py – 2 tests
test_07_single_agent_orchestration_hitl.py – 2 tests
test_09_workflow_shared_state.py – 3 tests
test_11_workflow_parallel.py – 3 tests
test_12_workflow_hitl.py – 3 tests
Possible Causes
Azure Functions deployment step failed earlier in the workflow
Missing or misconfigured environment secrets/variables
Infrastructure provisioning issue causing the test environment to be unavailable
Steps to Investigate
Check the Azure Functions deployment step in the workflow run
Verify environment secrets and variables are correctly configured
Review infrastructure provisioning logs earlier in the workflow

Requirement:
The integration tests for azurefunctions package should run on Py3.13 without failure.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions