Enable grpc integration tests

[skip changelog]
This commit is contained in:
Roman Inflianskas 2024-07-19 19:40:39 +03:00
parent cb469e0a9e
commit bca0aea322
No known key found for this signature in database

View file

@ -201,6 +201,7 @@ Summary: %{summary}
%{toxenvs_by_components}
%{toxenv}-common
%{toxenv}-cloud_resource_context
%{toxenv}-grpc
%{nil}
}
@ -219,7 +220,6 @@ Summary: %{summary}
# gevent: no_py313_support_gevent
# gql: no_gql
# graphene: old_graphene
# grpc: protobuf is too old
# httpx: require network
# potel: no_potel
# pymongo: no_mockupdb
@ -246,7 +246,6 @@ Summary: %{summary}
%{toxenv}-gevent
%{toxenv}-gql
%{toxenv}-graphene
%{toxenv}-grpc
%{toxenv}-httpx
%{toxenv}-potel
%{toxenv}-pymongo
@ -302,6 +301,10 @@ sed -r -i '/(opentelemetry-instrumentation-sklearn)/d' setup.py
sed -r -i '/(opentelemetry-instrumentation-starlette)/d' setup.py
sed -r -i '/(opentelemetry-instrumentation-tortoiseorm)/d' setup.py
# These Python packages needed for linting are not packaged.
sed -r -i '/(mypy-protobuf)/d' tox.ini
sed -r -i '/(types-protobuf)/d' tox.ini
%generate_buildrequires
%pyproject_buildrequires -x %{extras_csv} -e %{toxenvs_csv}
@ -310,7 +313,7 @@ sed -r -i '/(opentelemetry-instrumentation-tortoiseorm)/d' setup.py
# Re-generate the protobuf bindings for compatibility with the packaged
# protobuf version.
pushd tests/integrations/grpc/protos/
protoc --python_out="${PWD}" grpc_test_service.proto
protoc --python_out="${PWD}/.." grpc_test_service.proto
popd
%pyproject_wheel
@ -423,9 +426,6 @@ ignore="${ignore-} --ignore=tests/integrations/graphene"
# no_mockupdb
ignore="${ignore-} --ignore=tests/integrations/pymongo"
# protobuf is too old
ignore="${ignore-} --ignore=tests/integrations/grpc"
# no_newrelic
deselect="${deselect-} --deselect=tests/integrations/celery/test_celery.py::test_newrelic_interference"