Skip to content

Fix official CI by replacing AnyIO in generator cleanup tests - #333

Merged
andystaples merged 2 commits into
mainfrom
andystaples-ado-ci-fix-751
Nov 2, 2026
Merged

andystaples merged 2 commits into
mainfrom
andystaples-ado-ci-fix-751

Conversation

@andystaples

@andystaples andystaples commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Official pipeline run failed during core test collection because the generator-cleanup tests import anyio, which the official build does not install.

Replace the test's anyio.create_task_group() context with Python 3.11's standard-library asyncio.TaskGroup and remove anyio from the development requirements. Preserve the existing cancellation, asynchronous-generator cleanup, and resource-release assertions for both direct and thread-pool execution.

No additional pipeline dependency is needed. Runtime dependencies continue to be resolved through the built wheels, preserving checks for missing package dependency declarations. SDK behavior is unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 20:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the change adding anyio to CI test tooling.

No open issues 🎉

What changed in this PR

Fixes the official CI test-collection failure by installing anyio as test tooling, while preserving runtime dependency resolution through built wheels.

Changes:

  • Adds anyio to the pipeline’s tooling installation.
  • Updates the dependency comment to include anyio; no SDK dependencies or behavior change.
File Description
eng/​templates/​build.yml Installs anyio for tests and updates the accompanying comment.

Review effort: Balanced

@andystaples andystaples changed the title Fix missing anyio test dependency in official CI Fix official CI by replacing AnyIO in generator cleanup tests Nov 2, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@andystaples
andystaples merged commit d6fb240 into main Nov 2, 2026
25 checks passed
@andystaples
andystaples deleted the andystaples-ado-ci-fix-751 branch November 2, 2026 21:03
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