Skip to content

tests: filter DeprecationWarning in opentelemetry-api#17239

Merged
suztomo merged 1 commit into
mainfrom
fix-build-logging
May 22, 2026
Merged

tests: filter DeprecationWarning in opentelemetry-api#17239
suztomo merged 1 commit into
mainfrom
fix-build-logging

Conversation

@parthea
Copy link
Copy Markdown
Contributor

@parthea parthea commented May 22, 2026

This PR is needed to resolve the failing unit-3.11 presubmit in #17235 which is due to a new DeprecationWarning from opentelemetry-api. See build log.

This PR filters the deprecation warning in opentelemetry-api until a fix is available. See the linked issue for more information.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the pytest.ini configuration for google-cloud-logging to suppress a DeprecationWarning related to the SelectableGroups dict interface, referencing an open issue in the OpenTelemetry repository. The review feedback points out that the current regex for the warning filter is likely too restrictive to match the actual warning message, which typically includes quotes around class and method names. A more flexible regex using wildcards was suggested to ensure the filter works as intended.

Comment thread packages/google-cloud-logging/pytest.ini
@suztomo suztomo merged commit 7cced41 into main May 22, 2026
34 checks passed
@suztomo suztomo deleted the fix-build-logging branch May 22, 2026 20:26
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