Skip to content

chore: release main - #18876

Closed
release-please[bot] wants to merge 1 commit into
mainfrom
release-please--branches--main
Closed

release-please[bot] wants to merge 1 commit into
mainfrom
release-please--branches--main

Conversation

@release-please

@release-please release-please Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🤖 I have created a release beep boop

google-api-core: 2.43.1

2.43.1 (2026-10-28)

Bug Fixes

  • google-api-core: remove packages_distributions scan and shorten EOL warning window (#18872) (fa77b42)

This PR was generated with Release Please. See documentation.

@release-please
release-please Bot requested review from a team as code owners October 27, 2026 22:46
@trusted-contributions-gcf trusted-contributions-gcf Bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 27, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 27, 2026
@chalmerlowe

Copy link
Copy Markdown
Contributor

Pytest issued a new release today and it handles filterwarnings differently than the last version did, which is causing several CI checks to fail.

Root Cause: Upstream pytest 9.2.0 Release Today (21:30 UTC)
pytest 9.2.0 was published to PyPI at 2026-10-27T21:30:19Z (roughly 90 minutes before this CI run).

In pytest <= 9.1.1, filterwarnings = error from pytest.ini / pyproject.toml was applied after pytest_configure plugin hooks ran.

In pytest 9.2.0, filterwarnings = error is now active before self.hook.pytest_configure.call_historic(...) (_pytest/config/init.py, line 1370).

When pytest-asyncio runs its pytest_configure hook (pytest_asyncio/plugin.py, line 300):

warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))

pytest 9.2.0 immediately promotes that warning into a fatal startup crash (exit code 3) in any package that has filterwarnings = error and pytest-asyncio installed.

INTERNALERROR> pytest.PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.

Because #18866 modifies packages/google-api-core (listed in CORE_PACKAGES in ci/get_package_shards.py), CI runs unit and core-deps handwritten across all 58 handwritten packages.

Affected Packages Across the Monorepo

Across the entire monorepo, only 9 packages combine filterwarnings = error with pytest-asyncio:

packages/db-dtypes/pytest.ini
packages/google-auth-httplib2/pytest.ini
packages/google-cloud-dns/pytest.ini
packages/google-cloud-documentai-toolbox/pytest.ini
packages/google-cloud-error-reporting/pytest.ini
packages/google-cloud-logging/pytest.ini
packages/google-cloud-pubsub/pytest.ini
packages/google-cloud-runtimeconfig/pytest.ini
packages/google-api-core/pyproject.toml

@release-please
release-please Bot force-pushed the release-please--branches--main branch from 812afa3 to 12089fd Compare October 28, 2026 08:18
@trusted-contributions-gcf trusted-contributions-gcf Bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 28, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 28, 2026
@chalmerlowe

chalmerlowe commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

The failing CI should be resolved by this PR which is in the queue for review:
#18883

daniel-sanche pushed a commit that referenced this pull request Oct 28, 2026
## Summary

Temporarily pin `pytest<9.2` in the `noxfile.py` configuration of the 13
handwritten packages affected by the `pytest 9.2.0` release.

## Context

Upstream `pytest 9.2.0` (released on October 27, 2026) changed warning
filter initialization so that `filterwarnings = error` is applied
*before* `pytest_configure` plugin hooks run, and removed the private
`FixtureManager._arg2fixturedefs` attribute used by
`pytest-asyncio==0.21.2`.

Pinning `pytest<9.2` in the affected handwritten packages unblocks CI
and current release pull requests (such as #18876). A follow-up effort
will address `pytest 9.2` compatibility across these packages cleanly.

## Why These 13 Handwritten Packages Are Pinned

All 13 packages configure `filterwarnings = error` in `pytest.ini` or
`pyproject.toml` and fall into two categories:

1. **Direct `pytest-asyncio` usage (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 pins `pytest-asyncio==0.21.2`),
`google-cloud-logging`, `google-cloud-pubsub`, and
`google-cloud-runtimeconfig`. Each installs `pytest-asyncio` directly in
its own `noxfile.py` alongside `filterwarnings = error`, causing `pytest
9.2.0` to abort during startup when `pytest-asyncio` emits
`PytestDeprecationWarning` for `asyncio_default_fixture_loop_scope`.

2. **Shared CI virtualenv inheritance (3 packages)**:
`google-cloud-core`, `google-cloud-testutils`, and `proto-plus`.
Although these three do not install `pytest-asyncio` in their own
`noxfile.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 install
`pytest-asyncio` into that shared environment it will trigger the
`filterwarnings = error` startup failure when these three packages run.
@chalmerlowe chalmerlowe added the release-please:force-run To run release-please label Oct 28, 2026
@release-please release-please Bot removed the release-please:force-run To run release-please label Oct 28, 2026
@daniel-sanche
daniel-sanche deleted the release-please--branches--main branch October 28, 2026 19:32
@daniel-sanche daniel-sanche added release-please:force-run To run release-please and removed autorelease: closed labels Oct 28, 2026
@release-please release-please Bot removed the release-please:force-run To run release-please label Oct 28, 2026
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