Remove signal handler from observability tests

pull/37241/head
Xuan Wang 4 months ago
parent 9b015c45ec
commit 7316c0ca51
  1. 3
      src/python/grpcio_tests/tests/observability/BUILD.bazel
  2. 4
      src/python/grpcio_tests/tests/observability/_csm_observability_plugin_test.py
  3. 4
      src/python/grpcio_tests/tests/observability/_observability_plugin_test.py
  4. 4
      src/python/grpcio_tests/tests/observability/_open_telemetry_observability_test.py

@ -41,7 +41,6 @@ py_test(
":test_server",
"//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_observability/grpc_observability:pyobservability",
"//src/python/grpcio_tests/tests/fork:native_debug",
"//src/python/grpcio_tests/tests/testing",
requirement("opentelemetry-sdk"),
],
@ -57,7 +56,6 @@ py_test(
":test_server",
"//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_observability/grpc_observability:pyobservability",
"//src/python/grpcio_tests/tests/fork:native_debug",
"//src/python/grpcio_tests/tests/testing",
requirement("protobuf"),
requirement("opentelemetry-sdk"),
@ -74,7 +72,6 @@ py_test(
":test_server",
"//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_csm_observability/grpc_csm_observability:csm_observability",
"//src/python/grpcio_tests/tests/fork:native_debug",
"//src/python/grpcio_tests/tests/testing",
requirement("protobuf"),
requirement("opentelemetry-sdk"),

@ -43,10 +43,6 @@ from opentelemetry.sdk.metrics.export import MetricsData
from opentelemetry.sdk.metrics.export import PeriodicExportingMetricReader
from opentelemetry.sdk.resources import Resource
from src.python.grpcio_tests.tests.fork import native_debug
native_debug.install_failure_signal_handler()
from tests.observability import _test_server
logger = logging.getLogger(__name__)

@ -33,10 +33,6 @@ from opentelemetry.sdk.metrics.export import MetricExporter
from opentelemetry.sdk.metrics.export import MetricsData
from opentelemetry.sdk.metrics.export import PeriodicExportingMetricReader
from src.python.grpcio_tests.tests.fork import native_debug
native_debug.install_failure_signal_handler()
from tests.observability import _test_server
logger = logging.getLogger(__name__)

@ -36,10 +36,6 @@ from opentelemetry.sdk.metrics.export import MetricExporter
from opentelemetry.sdk.metrics.export import MetricsData
from opentelemetry.sdk.metrics.export import PeriodicExportingMetricReader
from src.python.grpcio_tests.tests.fork import native_debug
native_debug.install_failure_signal_handler()
from tests.observability import _test_server
logger = logging.getLogger(__name__)

Loading…
Cancel
Save