mirror of https://github.com/grpc/grpc.git
[Python run_test] Fix run_test (#34292)
We're not running any test at all from `run_test.py` because of the way we filter test cases:pull/34662/head1d136fd05f/src/python/grpcio_tests/tests/_runner.py (L137)
* `testcase_filter` is read from a json file (like [this one](https://github.com/grpc/grpc/blob/master/src/python/grpcio_tests/tests/tests.json)) and test name is similar to `unit._metadata_test.MetadataTest`. * `case.id()` is loaded by `iterate_suite_cases` and will always have a prefix of `tests`, an example of case id will be: `tests.unit._metadata_test.MetadataTest`. Because of the prefix, none of the test case will be matched thus we're not running any of the tests. This PR fixes the prefix issue and all the regressions comes from not running tests using `run_test.py`. #### Other Changes * Added couple of `__init__.py` file since it's required to load tests. * Added `py_status_code` to Aio rpc state. * `code()` is expecting to return a python gRPC code but current `status_code` is a Cython code. * Added `libsqlite3-dev` to our dockers because it's required for `coverage==7.2.0`. * Renamed csds and admin test because test case file have to end with `_test`:1d136fd05f/src/python/grpcio_tests/tests/_loader.py (L26)
* Removed gevent test from `run_test.py` because Bazel gevent tests should be good enough for us. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. -->
parent
bc0bce2b8f
commit
11d9b083f3
32 changed files with 226 additions and 292 deletions
@ -0,0 +1,13 @@ |
||||
# Copyright 2023 The gRPC Authors |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
@ -0,0 +1,13 @@ |
||||
# Copyright 2023 The gRPC Authors |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
@ -1,93 +1,95 @@ |
||||
[ |
||||
"_sanity._sanity_test.SanityTest", |
||||
"admin.test_admin.TestAdmin", |
||||
"channelz._channelz_servicer_test.ChannelzServicerTest", |
||||
"csds.test_csds.TestCsds", |
||||
"fork._fork_interop_test.ForkInteropTest", |
||||
"health_check._health_servicer_test.HealthServicerBackwardsCompatibleWatchTest", |
||||
"health_check._health_servicer_test.HealthServicerTest", |
||||
"interop._insecure_intraop_test.InsecureIntraopTest", |
||||
"interop._secure_intraop_test.SecureIntraopTest", |
||||
"protoc_plugin._python_plugin_test.ModuleMainTest", |
||||
"protoc_plugin._python_plugin_test.PythonPluginTest", |
||||
"protoc_plugin._python_plugin_test.SimpleStubsPluginTest", |
||||
"protoc_plugin._split_definitions_test.SameProtoGrpcBeforeProtoProtocStyleTest", |
||||
"protoc_plugin._split_definitions_test.SameProtoMid2016ProtocStyleTest", |
||||
"protoc_plugin._split_definitions_test.SameProtoProtoBeforeGrpcProtocStyleTest", |
||||
"protoc_plugin._split_definitions_test.SameProtoSingleProtocExecutionProtocStyleTest", |
||||
"protoc_plugin._split_definitions_test.SplitProtoGrpcBeforeProtoProtocStyleTest", |
||||
"protoc_plugin._split_definitions_test.SplitProtoMid2016ProtocStyleTest", |
||||
"protoc_plugin._split_definitions_test.SplitProtoProtoBeforeGrpcProtocStyleTest", |
||||
"protoc_plugin._split_definitions_test.SplitProtoSingleProtocExecutionProtocStyleTest", |
||||
"protoc_plugin.beta_python_plugin_test.PythonPluginTest", |
||||
"reflection._reflection_client_test.ReflectionClientTest", |
||||
"reflection._reflection_servicer_test.ReflectionServicerTest", |
||||
"status._grpc_status_test.StatusTest", |
||||
"testing._client_test.ClientTest", |
||||
"testing._server_test.FirstServiceServicerTest", |
||||
"testing._time_test.StrictFakeTimeTest", |
||||
"testing._time_test.StrictRealTimeTest", |
||||
"unit._abort_test.AbortTest", |
||||
"unit._api_test.AllTest", |
||||
"unit._api_test.ChannelConnectivityTest", |
||||
"unit._api_test.ChannelTest", |
||||
"unit._auth_context_test.AuthContextTest", |
||||
"unit._auth_test.AccessTokenAuthMetadataPluginTest", |
||||
"unit._auth_test.GoogleCallCredentialsTest", |
||||
"unit._channel_args_test.ChannelArgsTest", |
||||
"unit._channel_close_test.ChannelCloseTest", |
||||
"unit._channel_connectivity_test.ChannelConnectivityTest", |
||||
"unit._channel_ready_future_test.ChannelReadyFutureTest", |
||||
"unit._compression_test.CompressionTest", |
||||
"unit._contextvars_propagation_test.ContextVarsPropagationTest", |
||||
"unit._credentials_test.CredentialsTest", |
||||
"unit._cython._cancel_many_calls_test.CancelManyCallsTest", |
||||
"unit._cython._channel_test.ChannelTest", |
||||
"unit._cython._fork_test.ForkPosixTester", |
||||
"unit._cython._fork_test.ForkWindowsTester", |
||||
"unit._cython._no_messages_server_completion_queue_per_call_test.Test", |
||||
"unit._cython._no_messages_single_server_completion_queue_test.Test", |
||||
"unit._cython._read_some_but_not_all_responses_test.ReadSomeButNotAllResponsesTest", |
||||
"unit._cython._server_test.Test", |
||||
"unit._cython.cygrpc_test.InsecureServerInsecureClient", |
||||
"unit._cython.cygrpc_test.SecureServerSecureClient", |
||||
"unit._cython.cygrpc_test.TypeSmokeTest", |
||||
"unit._dns_resolver_test.DNSResolverTest", |
||||
"unit._dynamic_stubs_test.DynamicStubTest", |
||||
"unit._empty_message_test.EmptyMessageTest", |
||||
"unit._error_message_encoding_test.ErrorMessageEncodingTest", |
||||
"unit._exit_test.ExitTest", |
||||
"unit._grpc_shutdown_test.GrpcShutdownTest", |
||||
"unit._interceptor_test.InterceptorTest", |
||||
"unit._invalid_metadata_test.InvalidMetadataTest", |
||||
"unit._invocation_defects_test.InvocationDefectsTest", |
||||
"unit._local_credentials_test.LocalCredentialsTest", |
||||
"unit._logging_test.LoggingTest", |
||||
"unit._metadata_code_details_test.InspectContextTest", |
||||
"unit._metadata_code_details_test.MetadataCodeDetailsTest", |
||||
"unit._metadata_flags_test.MetadataFlagsTest", |
||||
"unit._metadata_test.MetadataTest", |
||||
"unit._reconnect_test.ReconnectTest", |
||||
"unit._resource_exhausted_test.ResourceExhaustedTest", |
||||
"unit._rpc_part_1_test.RPCPart1Test", |
||||
"unit._rpc_part_2_test.RPCPart2Test", |
||||
"unit._server_shutdown_test.ServerShutdown", |
||||
"unit._server_ssl_cert_config_test.ServerSSLCertConfigFetcherParamsChecks", |
||||
"unit._server_ssl_cert_config_test.ServerSSLCertReloadTestCertConfigReuse", |
||||
"unit._server_ssl_cert_config_test.ServerSSLCertReloadTestWithClientAuth", |
||||
"unit._server_ssl_cert_config_test.ServerSSLCertReloadTestWithoutClientAuth", |
||||
"unit._server_test.ServerTest", |
||||
"unit._server_wait_for_termination_test.ServerWaitForTerminationTest", |
||||
"unit._session_cache_test.SSLSessionCacheTest", |
||||
"unit._signal_handling_test.SignalHandlingTest", |
||||
"unit._version_test.VersionTest", |
||||
"unit._xds_credentials_test.XdsCredentialsTest", |
||||
"unit.beta._beta_features_test.BetaFeaturesTest", |
||||
"unit.beta._beta_features_test.ContextManagementAndLifecycleTest", |
||||
"unit.beta._connectivity_channel_test.ConnectivityStatesTest", |
||||
"unit.beta._implementations_test.CallCredentialsTest", |
||||
"unit.beta._implementations_test.ChannelCredentialsTest", |
||||
"unit.beta._not_found_test.NotFoundTest", |
||||
"unit.beta._utilities_test.ChannelConnectivityTest", |
||||
"unit.framework.foundation._logging_pool_test.LoggingPoolTest" |
||||
"tests._sanity._sanity_test.SanityTest", |
||||
"tests.admin.admin_test.TestAdmin", |
||||
"tests.channelz._channelz_servicer_test.ChannelzServicerTest", |
||||
"tests.csds.csds_test.TestCsds", |
||||
"tests.csds.csds_test.TestCsdsStream", |
||||
"tests.fork._fork_interop_test.ForkInteropTest", |
||||
"tests.health_check._health_servicer_test.HealthServicerBackwardsCompatibleWatchTest", |
||||
"tests.health_check._health_servicer_test.HealthServicerTest", |
||||
"tests.interop._insecure_intraop_test.InsecureIntraopTest", |
||||
"tests.interop._secure_intraop_test.SecureIntraopTest", |
||||
"tests.protoc_plugin._python_plugin_test.ModuleMainTest", |
||||
"tests.protoc_plugin._python_plugin_test.PythonPluginTest", |
||||
"tests.protoc_plugin._python_plugin_test.SimpleStubsPluginTest", |
||||
"tests.protoc_plugin._split_definitions_test.SameProtoGrpcBeforeProtoProtocStyleTest", |
||||
"tests.protoc_plugin._split_definitions_test.SameProtoMid2016ProtocStyleTest", |
||||
"tests.protoc_plugin._split_definitions_test.SameProtoProtoBeforeGrpcProtocStyleTest", |
||||
"tests.protoc_plugin._split_definitions_test.SameProtoSingleProtocExecutionProtocStyleTest", |
||||
"tests.protoc_plugin._split_definitions_test.SplitProtoGrpcBeforeProtoProtocStyleTest", |
||||
"tests.protoc_plugin._split_definitions_test.SplitProtoMid2016ProtocStyleTest", |
||||
"tests.protoc_plugin._split_definitions_test.SplitProtoProtoBeforeGrpcProtocStyleTest", |
||||
"tests.protoc_plugin._split_definitions_test.SplitProtoSingleProtocExecutionProtocStyleTest", |
||||
"tests.protoc_plugin._split_definitions_test.WellKnownTypesTest", |
||||
"tests.protoc_plugin.beta_python_plugin_test.PythonPluginTest", |
||||
"tests.reflection._reflection_client_test.ReflectionClientTest", |
||||
"tests.reflection._reflection_servicer_test.ReflectionServicerTest", |
||||
"tests.status._grpc_status_test.StatusTest", |
||||
"tests.testing._client_test.ClientTest", |
||||
"tests.testing._server_test.FirstServiceServicerTest", |
||||
"tests.testing._time_test.StrictFakeTimeTest", |
||||
"tests.testing._time_test.StrictRealTimeTest", |
||||
"tests.unit._abort_test.AbortTest", |
||||
"tests.unit._api_test.AllTest", |
||||
"tests.unit._api_test.ChannelConnectivityTest", |
||||
"tests.unit._api_test.ChannelTest", |
||||
"tests.unit._auth_context_test.AuthContextTest", |
||||
"tests.unit._auth_test.AccessTokenAuthMetadataPluginTest", |
||||
"tests.unit._auth_test.GoogleCallCredentialsTest", |
||||
"tests.unit._channel_args_test.ChannelArgsTest", |
||||
"tests.unit._channel_close_test.ChannelCloseTest", |
||||
"tests.unit._channel_connectivity_test.ChannelConnectivityTest", |
||||
"tests.unit._channel_ready_future_test.ChannelReadyFutureTest", |
||||
"tests.unit._compression_test.CompressionTest", |
||||
"tests.unit._contextvars_propagation_test.ContextVarsPropagationTest", |
||||
"tests.unit._credentials_test.CredentialsTest", |
||||
"tests.unit._cython._cancel_many_calls_test.CancelManyCallsTest", |
||||
"tests.unit._cython._channel_test.ChannelTest", |
||||
"tests.unit._cython._fork_test.ForkPosixTester", |
||||
"tests.unit._cython._fork_test.ForkWindowsTester", |
||||
"tests.unit._cython._no_messages_server_completion_queue_per_call_test.Test", |
||||
"tests.unit._cython._no_messages_single_server_completion_queue_test.Test", |
||||
"tests.unit._cython._read_some_but_not_all_responses_test.ReadSomeButNotAllResponsesTest", |
||||
"tests.unit._cython._server_test.Test", |
||||
"tests.unit._cython.cygrpc_test.InsecureServerInsecureClient", |
||||
"tests.unit._cython.cygrpc_test.SecureServerSecureClient", |
||||
"tests.unit._cython.cygrpc_test.TypeSmokeTest", |
||||
"tests.unit._dns_resolver_test.DNSResolverTest", |
||||
"tests.unit._dynamic_stubs_test.DynamicStubTest", |
||||
"tests.unit._empty_message_test.EmptyMessageTest", |
||||
"tests.unit._error_message_encoding_test.ErrorMessageEncodingTest", |
||||
"tests.unit._exit_test.ExitTest", |
||||
"tests.unit._grpc_shutdown_test.GrpcShutdownTest", |
||||
"tests.unit._interceptor_test.InterceptorTest", |
||||
"tests.unit._invalid_metadata_test.InvalidMetadataTest", |
||||
"tests.unit._invocation_defects_test.InvocationDefectsTest", |
||||
"tests.unit._local_credentials_test.LocalCredentialsTest", |
||||
"tests.unit._logging_test.LoggingTest", |
||||
"tests.unit._metadata_code_details_test.InspectContextTest", |
||||
"tests.unit._metadata_code_details_test.MetadataCodeDetailsTest", |
||||
"tests.unit._metadata_flags_test.MetadataFlagsTest", |
||||
"tests.unit._metadata_test.MetadataTest", |
||||
"tests.unit._reconnect_test.ReconnectTest", |
||||
"tests.unit._resource_exhausted_test.ResourceExhaustedTest", |
||||
"tests.unit._rpc_part_1_test.RPCPart1Test", |
||||
"tests.unit._rpc_part_2_test.RPCPart2Test", |
||||
"tests.unit._server_shutdown_test.ServerShutdown", |
||||
"tests.unit._server_ssl_cert_config_test.ServerSSLCertConfigFetcherParamsChecks", |
||||
"tests.unit._server_ssl_cert_config_test.ServerSSLCertReloadTestCertConfigReuse", |
||||
"tests.unit._server_ssl_cert_config_test.ServerSSLCertReloadTestWithClientAuth", |
||||
"tests.unit._server_ssl_cert_config_test.ServerSSLCertReloadTestWithoutClientAuth", |
||||
"tests.unit._server_test.ServerTest", |
||||
"tests.unit._server_wait_for_termination_test.ServerWaitForTerminationTest", |
||||
"tests.unit._session_cache_test.SSLSessionCacheTest", |
||||
"tests.unit._signal_handling_test.SignalHandlingTest", |
||||
"tests.unit._version_test.VersionTest", |
||||
"tests.unit._xds_credentials_test.XdsCredentialsTest", |
||||
"tests.unit.beta._beta_features_test.BetaFeaturesTest", |
||||
"tests.unit.beta._beta_features_test.ContextManagementAndLifecycleTest", |
||||
"tests.unit.beta._connectivity_channel_test.ConnectivityStatesTest", |
||||
"tests.unit.beta._implementations_test.CallCredentialsTest", |
||||
"tests.unit.beta._implementations_test.ChannelCredentialsTest", |
||||
"tests.unit.beta._not_found_test.NotFoundTest", |
||||
"tests.unit.beta._utilities_test.ChannelConnectivityTest", |
||||
"tests.unit.framework.foundation._logging_pool_test.LoggingPoolTest" |
||||
] |
||||
|
@ -1,44 +1,44 @@ |
||||
[ |
||||
"_sanity._sanity_test.AioSanityTest", |
||||
"channelz.channelz_servicer_test.ChannelzServicerTest", |
||||
"health_check.health_servicer_test.HealthServicerTest", |
||||
"interop.local_interop_test.InsecureLocalInteropTest", |
||||
"interop.local_interop_test.SecureLocalInteropTest", |
||||
"reflection.reflection_servicer_test.ReflectionServicerTest", |
||||
"status.grpc_status_test.StatusTest", |
||||
"unit._metadata_test.TestTypeMetadata", |
||||
"unit.abort_test.TestAbort", |
||||
"unit.aio_rpc_error_test.TestAioRpcError", |
||||
"unit.auth_context_test.TestAuthContext", |
||||
"unit.call_test.TestStreamStreamCall", |
||||
"unit.call_test.TestStreamUnaryCall", |
||||
"unit.call_test.TestUnaryStreamCall", |
||||
"unit.call_test.TestUnaryUnaryCall", |
||||
"unit.channel_argument_test.TestChannelArgument", |
||||
"unit.channel_ready_test.TestChannelReady", |
||||
"unit.channel_test.TestChannel", |
||||
"unit.client_stream_stream_interceptor_test.TestStreamStreamClientInterceptor", |
||||
"unit.client_stream_unary_interceptor_test.TestStreamUnaryClientInterceptor", |
||||
"unit.client_unary_stream_interceptor_test.TestUnaryStreamClientInterceptor", |
||||
"unit.client_unary_unary_interceptor_test.TestInterceptedUnaryUnaryCall", |
||||
"unit.client_unary_unary_interceptor_test.TestUnaryUnaryClientInterceptor", |
||||
"unit.close_channel_test.TestCloseChannel", |
||||
"unit.compatibility_test.TestCompatibility", |
||||
"unit.compression_test.TestCompression", |
||||
"unit.connectivity_test.TestConnectivityState", |
||||
"unit.context_peer_test.TestContextPeer", |
||||
"unit.done_callback_test.TestClientSideDoneCallback", |
||||
"unit.done_callback_test.TestServerSideDoneCallback", |
||||
"unit.init_test.TestInit", |
||||
"unit.metadata_test.TestMetadata", |
||||
"unit.outside_init_test.TestOutsideInit", |
||||
"unit.secure_call_test.TestStreamStreamSecureCall", |
||||
"unit.secure_call_test.TestUnaryStreamSecureCall", |
||||
"unit.secure_call_test.TestUnaryUnarySecureCall", |
||||
"unit.server_interceptor_test.TestServerInterceptor", |
||||
"unit.server_test.TestServer", |
||||
"unit.server_time_remaining_test.TestServerTimeRemaining", |
||||
"unit.timeout_test.TestTimeout", |
||||
"unit.wait_for_connection_test.TestWaitForConnection", |
||||
"unit.wait_for_ready_test.TestWaitForReady" |
||||
"tests_aio._sanity._sanity_test.AioSanityTest", |
||||
"tests_aio.channelz.channelz_servicer_test.ChannelzServicerTest", |
||||
"tests_aio.health_check.health_servicer_test.HealthServicerTest", |
||||
"tests_aio.interop.local_interop_test.InsecureLocalInteropTest", |
||||
"tests_aio.interop.local_interop_test.SecureLocalInteropTest", |
||||
"tests_aio.reflection.reflection_servicer_test.ReflectionServicerTest", |
||||
"tests_aio.status.grpc_status_test.StatusTest", |
||||
"tests_aio.unit._metadata_test.TestTypeMetadata", |
||||
"tests_aio.unit.abort_test.TestAbort", |
||||
"tests_aio.unit.aio_rpc_error_test.TestAioRpcError", |
||||
"tests_aio.unit.auth_context_test.TestAuthContext", |
||||
"tests_aio.unit.call_test.TestStreamStreamCall", |
||||
"tests_aio.unit.call_test.TestStreamUnaryCall", |
||||
"tests_aio.unit.call_test.TestUnaryStreamCall", |
||||
"tests_aio.unit.call_test.TestUnaryUnaryCall", |
||||
"tests_aio.unit.channel_argument_test.TestChannelArgument", |
||||
"tests_aio.unit.channel_ready_test.TestChannelReady", |
||||
"tests_aio.unit.channel_test.TestChannel", |
||||
"tests_aio.unit.client_stream_stream_interceptor_test.TestStreamStreamClientInterceptor", |
||||
"tests_aio.unit.client_stream_unary_interceptor_test.TestStreamUnaryClientInterceptor", |
||||
"tests_aio.unit.client_unary_stream_interceptor_test.TestUnaryStreamClientInterceptor", |
||||
"tests_aio.unit.client_unary_unary_interceptor_test.TestInterceptedUnaryUnaryCall", |
||||
"tests_aio.unit.client_unary_unary_interceptor_test.TestUnaryUnaryClientInterceptor", |
||||
"tests_aio.unit.close_channel_test.TestCloseChannel", |
||||
"tests_aio.unit.compatibility_test.TestCompatibility", |
||||
"tests_aio.unit.compression_test.TestCompression", |
||||
"tests_aio.unit.connectivity_test.TestConnectivityState", |
||||
"tests_aio.unit.context_peer_test.TestContextPeer", |
||||
"tests_aio.unit.done_callback_test.TestClientSideDoneCallback", |
||||
"tests_aio.unit.done_callback_test.TestServerSideDoneCallback", |
||||
"tests_aio.unit.init_test.TestInit", |
||||
"tests_aio.unit.metadata_test.TestMetadata", |
||||
"tests_aio.unit.outside_init_test.TestOutsideInit", |
||||
"tests_aio.unit.secure_call_test.TestStreamStreamSecureCall", |
||||
"tests_aio.unit.secure_call_test.TestUnaryStreamSecureCall", |
||||
"tests_aio.unit.secure_call_test.TestUnaryUnarySecureCall", |
||||
"tests_aio.unit.server_interceptor_test.TestServerInterceptor", |
||||
"tests_aio.unit.server_test.TestServer", |
||||
"tests_aio.unit.server_time_remaining_test.TestServerTimeRemaining", |
||||
"tests_aio.unit.timeout_test.TestTimeout", |
||||
"tests_aio.unit.wait_for_connection_test.TestWaitForConnection", |
||||
"tests_aio.unit.wait_for_ready_test.TestWaitForReady" |
||||
] |
||||
|
@ -1 +0,0 @@ |
||||
["unit.close_channel_test.CloseChannelTest"] |
@ -1 +1 @@ |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/python_debian11_default_arm64:4fbecbb42c07bce5d982e3808be6981549a5126d@sha256:e1fd0a85aed633d817ac086f3c588c6343d316b7d41a4dd62a8ecfbb70358687 |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/python_debian11_default_arm64:55eb2e98cc7ff914777976a5482fee5fa62e9cbe@sha256:fccca33a655c7aa89dd7ebd9492cbcc1f636bd2a004cd939d1982cfce3d68326 |
@ -1 +1 @@ |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/python_debian11_default_x64:a6300ecdbf62f0873270a97068c013e4ffc0b32d@sha256:8f22ba10b93b14c13ceb296cbbd41dba04947b457efc229412b43280ad6a4adc |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/python_debian11_default_x64:3aec01d65a59f4583b9a54369fc5d08b84b1017e@sha256:51107bfe5f9ef2c9d9c7a6554a16c4335a6d48f81a47cf6176fb36eca0605f02 |
Loading…
Reference in new issue