Skip to content

Commit

Permalink
[grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - BUILD (
Browse files Browse the repository at this point in the history
#36607)

[grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - BUILD
In this CL we are just editing the build and bzl files to add dependencies.
This is done to prevent merge conflict and constantly having to re-make the make files using generate_projects.sh for each set of changes.

Closes #36607

COPYBARA_INTEGRATE_REVIEW=#36607 from tanvi-jagtap:build_test_cpp 3e17d77
PiperOrigin-RevId: 633523097
  • Loading branch information
tanvi-jagtap authored and Copybara-Service committed May 14, 2024
1 parent d8b141f commit 1585097
Show file tree
Hide file tree
Showing 13 changed files with 78 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/cpp/common/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ grpc_cc_test(
srcs = ["timer_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
flaky = True,
Expand All @@ -52,6 +53,7 @@ grpc_cc_test(
srcs = ["time_jump_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = [
Expand Down
27 changes: 27 additions & 0 deletions test/cpp/end2end/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ grpc_cc_library(
srcs = ["test_service_impl.cc"],
hdrs = ["test_service_impl.h"],
external_deps = [
"absl/log:log",
"gtest",
"absl/log:check",
"absl/synchronization",
Expand Down Expand Up @@ -65,6 +66,7 @@ grpc_cc_library(
hdrs = ["connection_attempt_injector.h"],
external_deps = [
"absl/log:check",
"absl/log:log",
],
deps = [
"//:grpc",
Expand Down Expand Up @@ -92,6 +94,7 @@ grpc_cc_library(
srcs = ["rls_server.cc"],
hdrs = ["rls_server.h"],
external_deps = [
"absl/log:log",
"gtest",
],
deps = [
Expand All @@ -106,6 +109,7 @@ grpc_cc_test(
srcs = ["async_end2end_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
shard_count = 10,
Expand Down Expand Up @@ -187,6 +191,7 @@ grpc_cc_binary(
srcs = ["client_crash_test_server.cc"],
external_deps = [
"absl/flags:flag",
"absl/log:log",
"gtest",
],
deps = [
Expand All @@ -207,6 +212,7 @@ grpc_cc_test(
name = "client_fork_test",
srcs = ["client_fork_test.cc"],
external_deps = [
"absl/log:log",
"absl/strings",
"gtest",
],
Expand All @@ -232,6 +238,7 @@ grpc_cc_test(
srcs = ["client_callback_end2end_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = ["cpp_end2end_test"],
Expand Down Expand Up @@ -371,6 +378,7 @@ grpc_cc_test(
grpc_cc_test(
name = "end2end_test",
size = "large",
external_deps = ["absl/log:log"],
flaky = True, # TODO(b/151704375)
shard_count = 10,
tags = [
Expand Down Expand Up @@ -448,6 +456,7 @@ grpc_cc_test(
srcs = ["hybrid_end2end_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = ["cpp_end2end_test"],
Expand Down Expand Up @@ -489,6 +498,7 @@ grpc_cc_test(
name = "mock_test",
srcs = ["mock_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
tags = ["cpp_end2end_test"],
Expand Down Expand Up @@ -565,6 +575,7 @@ grpc_cc_test(
srcs = ["rls_end2end_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/types:optional",
"gtest",
],
Expand Down Expand Up @@ -599,6 +610,7 @@ grpc_cc_test(
srcs = ["service_config_end2end_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = ["cpp_end2end_test"],
Expand Down Expand Up @@ -699,6 +711,7 @@ grpc_cc_test(
],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = [
Expand All @@ -725,6 +738,7 @@ grpc_cc_binary(
external_deps = [
"absl/flags:flag",
"absl/log:check",
"absl/log:log",
"gtest",
],
deps = [
Expand Down Expand Up @@ -764,6 +778,7 @@ grpc_cc_test(
name = "server_load_reporting_end2end_test",
srcs = ["server_load_reporting_end2end_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
tags = [
Expand All @@ -782,6 +797,7 @@ grpc_cc_test(
name = "flaky_network_test",
srcs = ["flaky_network_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
tags = [
Expand Down Expand Up @@ -809,6 +825,7 @@ grpc_cc_test(
srcs = ["shutdown_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = ["cpp_end2end_test"],
Expand All @@ -828,6 +845,7 @@ grpc_cc_test(
name = "streaming_throughput_test",
srcs = ["streaming_throughput_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
tags = [
Expand All @@ -851,6 +869,7 @@ grpc_cc_test(
size = "large",
srcs = ["thread_stress_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
shard_count = 5,
Expand All @@ -875,6 +894,7 @@ grpc_cc_test(
srcs = ["cfstream_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = [
Expand Down Expand Up @@ -904,6 +924,7 @@ grpc_cc_test(
srcs = ["message_allocator_end2end_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = ["cpp_end2end_test"],
Expand All @@ -925,6 +946,7 @@ grpc_cc_test(
srcs = ["context_allocator_end2end_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = ["cpp_end2end_test"],
Expand All @@ -946,6 +968,7 @@ grpc_cc_test(
srcs = ["port_sharing_end2end_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = ["cpp_end2end_test"],
Expand Down Expand Up @@ -1035,6 +1058,7 @@ grpc_cc_test(
name = "orca_service_end2end_test",
srcs = ["orca_service_end2end_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
tags = ["cpp_end2end_test"],
Expand Down Expand Up @@ -1080,6 +1104,7 @@ grpc_cc_test(
"//src/core/tsi/test_creds:server1.pem",
],
external_deps = [
"absl/log:log",
"gtest",
],
tags = ["ssl_credentials_test"],
Expand All @@ -1106,6 +1131,7 @@ grpc_cc_test(
"//src/core/tsi/test_creds:server1.pem",
],
external_deps = [
"absl/log:log",
"gtest",
],
tags = ["tls_credentials_test"],
Expand Down Expand Up @@ -1134,6 +1160,7 @@ grpc_cc_test(
],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
tags = ["crl_provider_test"],
Expand Down
9 changes: 9 additions & 0 deletions test/cpp/end2end/xds/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ grpc_cc_library(
hdrs = ["xds_end2end_test_lib.h"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
deps = [
Expand Down Expand Up @@ -115,6 +116,7 @@ grpc_cc_test(
],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
flaky = True, # TODO(b/144705388)
Expand Down Expand Up @@ -162,6 +164,7 @@ grpc_cc_test(
size = "large",
srcs = ["xds_cluster_end2end_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
flaky = True, # TODO(b/144705388)
Expand Down Expand Up @@ -190,6 +193,7 @@ grpc_cc_test(
srcs = ["xds_cluster_type_end2end_test.cc"],
external_deps = [
"absl/log:check",
"absl/log:log",
"gtest",
],
flaky = True, # TODO(b/144705388)
Expand Down Expand Up @@ -217,6 +221,7 @@ grpc_cc_test(
size = "large",
srcs = ["xds_core_end2end_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
flaky = True,
Expand All @@ -243,6 +248,7 @@ grpc_cc_test(
size = "large",
srcs = ["xds_csds_end2end_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
linkstatic = True, # Fixes dyld error on MacOS
Expand Down Expand Up @@ -324,6 +330,7 @@ grpc_cc_test(
size = "large",
srcs = ["xds_wrr_end2end_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
linkstatic = True, # Fixes dyld error on MacOS
Expand Down Expand Up @@ -410,6 +417,7 @@ grpc_cc_test(
size = "large",
srcs = ["xds_routing_end2end_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
flaky = True, # TODO(b/144705388)
Expand Down Expand Up @@ -458,6 +466,7 @@ grpc_cc_test(
size = "large",
srcs = ["xds_override_host_end2end_test.cc"],
external_deps = [
"absl/log:log",
"gtest",
],
linkstatic = True, # Fixes dyld error on MacOS
Expand Down
1 change: 1 addition & 0 deletions test/cpp/ext/filters/logging/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ grpc_cc_library(
srcs = ["library.cc"],
hdrs = ["library.h"],
external_deps = [
"absl/log:log",
"gtest",
],
language = "C++",
Expand Down

0 comments on commit 1585097

Please sign in to comment.