Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore deprecation warnings from protobufs #4751

Merged
merged 8 commits into from
Dec 16, 2021
16 changes: 16 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@
# limitations under the License.


def pytest_configure(config):
# Ignore deprecation warnings in python code generated from our protobuf definitions.
# Eventually, the warnings will be removed by upgrading protoc compiler. However, at
# the moment upgrading breaks TensorFlow Quantum and therefore is deferred. See issues
# #4161 and #4737.
Copy link
Collaborator

Choose a reason for hiding this comment

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

TensorFlow Quantum is no longer blocking here. It is the fact that nobody has bothered to do a GAPIC rebuild of the v1alpha1 protos.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated comment. PTAL

for f in (
"FieldDescriptor",
"Descriptor",
"EnumDescriptor",
"EnumValueDescriptor",
"FileDescriptor",
"OneofDescriptor",
):
config.addinivalue_line("filterwarnings", f"ignore:Call to deprecated create function {f}")


def pytest_addoption(parser):
parser.addoption(
"--rigetti-integration",
Expand Down