Remove pytest-azurepipelines plugin to fix Python 3.14 stall#936
Merged
Conversation
The pytest-azurepipelines plugin hooks into session finalization to upload test results to ADO. On Python 3.14 this intermittently causes the process to hang until the step timeout. The plugin is unnecessary since test results are already captured via --junitxml and published by the PublishTestResults task. Tests pass locally on Python 3.14 without the plugin (304 passed in 51s). Ref: #935 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the shared Azure Pipelines stages template to prevent intermittent pytest hangs on Python 3.14 by removing the pytest-azurepipelines plugin from the CI install step, relying instead on existing --junitxml output and PublishTestResults tasks for reporting.
Changes:
- Remove
pytest-azurepipelinesfrom the dependency install commands in both UnitTests and E2ETests stages. - Keep JUnit XML generation +
PublishTestResults@2as the mechanism for publishing test results to Azure DevOps.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Robbie-Microsoft
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Python 3.14 unit tests intermittently stall at 99-100% completion, hanging until the 5-minute step timeout. All other Python versions (3.9–3.13) complete in ~1.5 minutes. See #935.
Root Cause
The \pytest-azurepipelines\ plugin hooks into pytest's session finalization to upload test results to ADO. On Python 3.14, this intermittently hangs the process.
Evidence: Tests pass locally on Python 3.14 in 51 seconds (304 passed) without the plugin installed.
Fix
Remove \pytest-azurepipelines\ from pip install — it's unnecessary since:
Testing