Repository navigation
azdev test: cap pytest below 9.2 for pytest-forked compatibility - #560
Merged
Cooper Cox (coopercox-ms) merged 1 commit intoNov 3, 2026
Conversation
Cooper Cox (coopercox-ms)
requested review from
aryasadeghi1,
Ethan Yang (necusjz) and
ZelinWang (wangzelin007)
November 3, 2026 01:16
|
Hi Cooper Cox (@coopercox-ms), |
Cooper Cox (coopercox-ms)
requested a review
from Thomas Temby (thomas-temby)
November 3, 2026 01:39
Thomas Temby (thomas-temby)
approved these changes
Nov 3, 2026
Cooper Cox (coopercox-ms)
deleted the
users/coopercox/pin-pytest-below-9.2
branch
November 3, 2026 03:15
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.
Related command
azdev testDescription
Problem. Since pytest 9.2.0 was published (27 Oct),
azdev testfails every test on Linux and macOS with "running the test EXITED with status 3". The requiredAzure.azdev-clicheck fails this way in the three "Test azdev test" jobs (azdev test redis): ondevsince build 367005, the first run after the release, and on unrelated PRs such as #559.Cause. On POSIX,
azdev testalways passes--forked(azdev/operations/testtool/pytest_runner.py). pytest-forked 1.7.5, the latest release, can't serialise pytest 9.2 reports (pytest-dev/pytest-forked#113, still open), so every forked test fails. azdev requirespytest>=5.0.0with no upper bound, so a fresh install gets 9.2.0.Fix. Cap pytest below 9.2 in azdev's own dependencies until pytest-forked supports it. It's a package dependency rather than a CI-only constraint because anyone who installs azdev and runs
azdev testhits this. Azure/azure-cli and Azure/azure-cli-extensions (Azure/azure-cli-extensions#10535) already cappytest<9.2in their CI constraints for the same reason.Evidence.
python -m buildandtwine checkpass. The wheel and sdist declareRequires-Dist: pytest<9.2,>=5.0.0.azdev setup -c -r, thenazdev test redis. pytest stays at 9.1.1 after setup, and all 20 redis tests pass. Installing pytest 9.2.0 in the same environment brings back "EXITED with status 3". Both runs use the samepytest -x -v --forked ... -n autocommand.This unblocks
devCI and #559.This checklist is used to make sure that common guidelines for a pull request are followed.
pylint azdev --rcfile=.pylintrc -r nflake8 --statistics --append-config=.flake8 azdev