Repository navigation
test: pin pytest<9.2 in failing handwritten packages - #18883
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the 'noxfile.py' configuration files across multiple packages to pin the 'pytest' dependency to versions below 9.2 ('pytest<9.2'). This change affects unit tests, system tests, prerelease sessions, and core dependency installations. Additionally, a minor formatting adjustment was made in 'packages/google-cloud-testutils/noxfile.py' to add an empty line before imports. There are no review comments, and I have no feedback to provide.
…ltiple owlbot passes
chalmerlowe
marked this pull request as ready for review
October 28, 2026 18:31
chalmerlowe
requested review from
julianxu-goog
and removed request for
a team
October 28, 2026 18:31
daniel-sanche
approved these changes
Oct 28, 2026
Closed
4 tasks
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.
Summary
Temporarily pin
pytest<9.2in thenoxfile.pyconfiguration of the 13 handwritten packages affected by thepytest 9.2.0release.Context
Upstream
pytest 9.2.0(released on October 27, 2026) changed warning filter initialization so thatfilterwarnings = erroris applied beforepytest_configureplugin hooks run, and removed the privateFixtureManager._arg2fixturedefsattribute used bypytest-asyncio==0.21.2.Pinning
pytest<9.2in the affected handwritten packages unblocks CI and current release pull requests (such as #18876). A follow-up effort will addresspytest 9.2compatibility across these packages cleanly.Why These 13 Handwritten Packages Are Pinned
All 13 packages configure
filterwarnings = errorinpytest.iniorpyproject.tomland fall into two categories:Direct
pytest-asynciousage (10 packages):db-dtypes,google-api-core,google-auth-httplib2,google-cloud-dns,google-cloud-documentai-toolbox,google-cloud-error-reporting,google-cloud-firestore(also pinspytest-asyncio==0.21.2),google-cloud-logging,google-cloud-pubsub, andgoogle-cloud-runtimeconfig. Each installspytest-asynciodirectly in its ownnoxfile.pyalongsidefilterwarnings = error, causingpytest 9.2.0to abort during startup whenpytest-asyncioemitsPytestDeprecationWarningforasyncio_default_fixture_loop_scope.Shared CI virtualenv inheritance (3 packages):
google-cloud-core,google-cloud-testutils, andproto-plus. Although these three do not installpytest-asyncioin their ownnoxfile.py, our GitHub Actions test workflows reuse a shared Nox virtualenv directory (NOX_ENVDIR=/tmp/shared_nox_envs) across all packages in the same CI shard. When earlier packages in a shard installpytest-asynciointo that shared environment it will trigger thefilterwarnings = errorstartup failure when these three packages run.