1# Copyright 2023 gRPC authors. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14load("@rules_python//python:defs.bzl", "py_test") 15load("//bazel:cython_library.bzl", "pyx_library") 16 17pyx_library( 18 name = "native_debug", 19 srcs = ["native_debug.pyx"], 20 visibility = [ 21 "//src/python/grpcio_tests/tests/observability:__subpackages__", 22 "//src/python/grpcio_tests/tests_py3_only/interop:__subpackages__", 23 ], 24 deps = ["@com_google_absl//absl/debugging:failure_signal_handler"], 25) 26 27py_test( 28 name = "fork_test", 29 srcs = glob(["*.py"]), 30 # TODO(yijiem): remove this to test EventEngine fork support 31 env = {"GRPC_EXPERIMENTS": "-event_engine_client"}, 32 imports = ["../.."], 33 main = "_fork_interop_test.py", 34 python_version = "PY3", 35 deps = [ 36 ":native_debug", 37 "//src/proto/grpc/testing:empty_py_pb2", 38 "//src/proto/grpc/testing:py_messages_proto", 39 "//src/proto/grpc/testing:test_py_pb2_grpc", 40 "//src/python/grpcio/grpc:grpcio", 41 "//src/python/grpcio_tests/tests/interop:service", 42 "//src/python/grpcio_tests/tests/unit:test_common", 43 ], 44) 45