Skip to content

Conversation

@yash27-lab
Copy link

This PR fixes flaky kernel deepcopy tests caused by OpenAI async client
finalizers raising unraisable exceptions during garbage collection.

Instead of relying on external SDK behavior, the tests now use a minimal
unpickleable service (async generator / lambda) to deterministically
validate deepcopy and model_dump failure paths.

This makes the tests stable across Python versions and environments.
No production code changes; test-only fix.

@yash27-lab yash27-lab requested a review from a team as a code owner January 16, 2026 04:04
@moonbox3 moonbox3 added the python Pull requests for the Python Semantic Kernel label Jan 16, 2026
@github-actions github-actions bot changed the title Fix flaky deepcopy service tests using unpickleable async state Python: Fix flaky deepcopy service tests using unpickleable async state Jan 16, 2026
@yash27-lab
Copy link
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests for the Python Semantic Kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants