Skip to content

Revert "use envoy_google_grpc_external_deps for google_grpc_context_l…#8407

Merged
htuch merged 1 commit intoenvoyproxy:masterfrom
qiwzhang:revert_grpc
Sep 27, 2019
Merged

Revert "use envoy_google_grpc_external_deps for google_grpc_context_l…#8407
htuch merged 1 commit intoenvoyproxy:masterfrom
qiwzhang:revert_grpc

Conversation

@qiwzhang
Copy link
Copy Markdown
Contributor

…ib (#8380)"

This reverts commit 6d77245.

Signed-off-by: Wayne Zhang qiwzhang@google.com

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

…ib (envoyproxy#8380)"

This reverts commit 6d77245.

Signed-off-by: Wayne Zhang <qiwzhang@google.com>
@qiwzhang
Copy link
Copy Markdown
Contributor Author

@mattklein123 @lizan @htuch could you help to merge this "revert" change?

@@ -3,7 +3,6 @@ licenses(["notice"]) # Apache 2
load(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need to revert this file?

Copy link
Copy Markdown
Contributor Author

@qiwzhang qiwzhang Sep 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I can revert this file.

My new change is: to making this google_grpc_context_lib using google_grpc, not support "target:gce".

But in source/exec/BUILD,use google_grpc_select to depend on google_grpc_context_lib
which will check if google_grpc is disbled or not.

My new change will be:

diff --git a/source/exe/BUILD b/source/exe/BUILD
index 719cded40..47256f5ae 100644
--- a/source/exe/BUILD
+++ b/source/exe/BUILD
@@ -8,6 +8,7 @@ load(
     "envoy_cc_posix_library",
     "envoy_cc_win32_library",
     "envoy_package",
+    "envoy_select_google_grpc",
 )
 load(
     "//source/extensions:all_extensions.bzl",
@@ -71,12 +72,12 @@ envoy_cc_library(
         "//source/common/api:os_sys_calls_lib",
         "//source/common/common:compiler_requirements_lib",
         "//source/common/common:perf_annotation_lib",
-        "//source/common/grpc:google_grpc_context_lib",
         "//source/common/stats:symbol_table_creator_lib",
         "//source/server:hot_restart_lib",
         "//source/server:hot_restart_nop_lib",
         "//source/server/config_validation:server_lib",
-    ] + select({
+    ] + envoy_select_google_grpc(["//source/common/grpc:google_grpc_context_lib"])
+      + select({
         "//bazel:disable_signal_trace": [],
         "//conditions:default": [
             "//source/common/signal:sigaction_lib",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is my new PR: #8409

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#8409 is closed, can you advise on what PR you want reviewed?

Copy link
Copy Markdown
Contributor Author

@qiwzhang qiwzhang Sep 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@htuch could you help to just merge this "revert" PR? I found out that I don't need to make any changes in upstream envoy. I just need to change copybara config to fix target.gce issue.

Basically, copybara remove dep google_grpc_context_lib from envoy_main_common_lib

@htuch htuch merged commit 555f88b into envoyproxy:master Sep 27, 2019
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
…ib (envoyproxy#8380)" (envoyproxy#8407)

This reverts commit 6d77245.

Signed-off-by: Wayne Zhang <qiwzhang@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants