From b2d2508bff07a3317349f26bd8e1114f6a339d94 Mon Sep 17 00:00:00 2001 From: ctiller <10120821+ctiller@users.noreply.github.com> Date: Fri, 12 Sep 2025 22:02:34 +0000 Subject: [PATCH] Automated change: Fix sanity tests --- .../grpcio_observability/make_grpcio_observability.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/python/grpcio_observability/make_grpcio_observability.py b/src/python/grpcio_observability/make_grpcio_observability.py index 445476eadf0e7..23fabfbdff340 100755 --- a/src/python/grpcio_observability/make_grpcio_observability.py +++ b/src/python/grpcio_observability/make_grpcio_observability.py @@ -53,7 +53,10 @@ # maps bazel reference to a proto to actual path BAZEL_PROTO_REFERENCE_LINK = [ ("//src", "grpc_root/src/core/ext/upb-gen/src"), - ("@com_google_protobuf//src/google/", "grpc_root/src/core/ext/upb-gen/google/"), + ( + "@com_google_protobuf//src/google/", + "grpc_root/src/core/ext/upb-gen/google/", + ), ] ABSL_INCLUDE = (os.path.join("third_party", "abseil-cpp"),) @@ -143,7 +146,9 @@ def _bazel_proto_name_to_file_path(name): """Transform bazel reference to source file name.""" for link in BAZEL_PROTO_REFERENCE_LINK: if name.startswith(link[0]): - filepath = link[1] + name[len(link[0]) :].replace(":", "/").replace(".proto", ".upb_minitable.c") + filepath = link[1] + name[len(link[0]) :].replace(":", "/").replace( + ".proto", ".upb_minitable.c" + ) return filepath return None