-
Notifications
You must be signed in to change notification settings - Fork 85
ci: bump Envoy sha to 5423325c #1868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
896fc9b
Bump Envoy sha to 5423325c
Augustyniak 9bb375d
Use new method name
Augustyniak 8ec2fae
fix main thread check
Augustyniak 7669161
Update envoy_mobile_repositories.bzl
6c0aed8
Update protobuf.patch
1ccd483
Remove trailing whitespace
Augustyniak aaaab5f
code review
Augustyniak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,94 +1,37 @@ | ||
| # https://github.com/protocolbuffers/protobuf/pull/6720 | ||
| diff --git a/third_party/BUILD b/third_party/BUILD | ||
| new file mode 100644 | ||
| index 0000000000..b66101a39a | ||
| --- /dev/null | ||
| +++ b/third_party/BUILD | ||
| @@ -0,0 +1 @@ | ||
| +exports_files(["six.BUILD", "zlib.BUILD"]) | ||
|
|
||
| # patching for zlib binding | ||
| diff --git a/BUILD b/BUILD | ||
| index 07ee629..09541cf 100644 | ||
| index efc3d8e7f..746ad4851 100644 | ||
| --- a/BUILD | ||
| +++ b/BUILD | ||
| @@ -260,36 +260,38 @@ cc_library( | ||
| # Map of all well known protos. | ||
| # name => (include path, imports) | ||
| WELL_KNOWN_PROTO_MAP = { | ||
| - "any": ("src/google/protobuf/any.proto", []), | ||
| + "any": ("google/protobuf/any.proto", []), | ||
| "api": ( | ||
| - "src/google/protobuf/api.proto", | ||
| + "google/protobuf/api.proto", | ||
| [ | ||
| "source_context", | ||
| "type", | ||
| ], | ||
| ), | ||
| "compiler_plugin": ( | ||
| - "src/google/protobuf/compiler/plugin.proto", | ||
| + "google/protobuf/compiler/plugin.proto", | ||
| ["descriptor"], | ||
| ), | ||
| - "descriptor": ("src/google/protobuf/descriptor.proto", []), | ||
| - "duration": ("src/google/protobuf/duration.proto", []), | ||
| - "empty": ("src/google/protobuf/empty.proto", []), | ||
| - "field_mask": ("src/google/protobuf/field_mask.proto", []), | ||
| - "source_context": ("src/google/protobuf/source_context.proto", []), | ||
| - "struct": ("src/google/protobuf/struct.proto", []), | ||
| - "timestamp": ("src/google/protobuf/timestamp.proto", []), | ||
| + "descriptor": ("google/protobuf/descriptor.proto", []), | ||
| + "duration": ("google/protobuf/duration.proto", []), | ||
| + "empty": ("google/protobuf/empty.proto", []), | ||
| + "field_mask": ("google/protobuf/field_mask.proto", []), | ||
| + "source_context": ("google/protobuf/source_context.proto", []), | ||
| + "struct": ("google/protobuf/struct.proto", []), | ||
| + "timestamp": ("google/protobuf/timestamp.proto", []), | ||
| "type": ( | ||
| - "src/google/protobuf/type.proto", | ||
| + "google/protobuf/type.proto", | ||
| [ | ||
| "any", | ||
| "source_context", | ||
| ], | ||
| ), | ||
| - "wrappers": ("src/google/protobuf/wrappers.proto", []), | ||
| + "wrappers": ("google/protobuf/wrappers.proto", []), | ||
| } | ||
| @@ -24,7 +24,7 @@ config_setting( | ||
| # ZLIB configuration | ||
| ################################################################################ | ||
|
|
||
| -WELL_KNOWN_PROTOS = [value[0] for value in WELL_KNOWN_PROTO_MAP.values()] | ||
| +RELATIVE_WELL_KNOWN_PROTOS = [proto[1][0] for proto in WELL_KNOWN_PROTO_MAP.items()] | ||
| + | ||
| +WELL_KNOWN_PROTOS = ["src/" + s for s in RELATIVE_WELL_KNOWN_PROTOS] | ||
| -ZLIB_DEPS = ["@zlib//:zlib"] | ||
| +ZLIB_DEPS = ["//external:zlib"] | ||
|
|
||
| filegroup( | ||
| name = "well_known_protos", | ||
| @@ -321,10 +323,17 @@ cc_library( | ||
| # ) | ||
| ################################################################################ | ||
| # Protobuf Runtime Library | ||
| diff --git a/python/google/protobuf/__init__.py b/python/google/protobuf/__init__.py | ||
| index 97ac28028..8b7585d9d 100644 | ||
| --- a/python/google/protobuf/__init__.py | ||
| +++ b/python/google/protobuf/__init__.py | ||
| @@ -31,3 +31,9 @@ | ||
| # Copyright 2007 Google Inc. All Rights Reserved. | ||
|
|
||
| +internal_copied_filegroup( | ||
| + name = "_internal_wkt_protos", | ||
| + srcs = WELL_KNOWN_PROTOS, | ||
| + dest = "", | ||
| + strip_prefix = "src", | ||
| + visibility = ["//visibility:private"], | ||
| +) | ||
| __version__ = '3.16.0' | ||
| + | ||
| [proto_library( | ||
| name = proto[0] + "_proto", | ||
| srcs = [proto[1][0]], | ||
| - strip_import_prefix = "src", | ||
| visibility = ["//visibility:public"], | ||
| deps = [dep + "_proto" for dep in proto[1][1]], | ||
| ) for proto in WELL_KNOWN_PROTO_MAP.items()] | ||
| @@ -824,7 +833,8 @@ internal_copied_filegroup( | ||
|
|
||
| # TODO(dzc): Remove this once py_proto_library can have labels in srcs, in | ||
| # which case we can simply add :protos_python in srcs. | ||
| -COPIED_WELL_KNOWN_PROTOS = ["python/" + s[4:] for s in WELL_KNOWN_PROTOS] | ||
| + | ||
| +COPIED_WELL_KNOWN_PROTOS = ["python/" + s for s in RELATIVE_WELL_KNOWN_PROTOS] | ||
|
|
||
| py_proto_library( | ||
| name = "protobuf_python", | ||
| @@ -942,7 +952,7 @@ cc_library( | ||
|
|
||
| proto_lang_toolchain( | ||
| name = "cc_toolchain", | ||
| - blacklisted_protos = [proto + "_proto" for proto in WELL_KNOWN_PROTO_MAP.keys()], | ||
| + blacklisted_protos = [":_internal_wkt_protos_genrule"], | ||
| command_line = "--cpp_out=$(OUT)", | ||
| runtime = ":protobuf", | ||
| visibility = ["//visibility:public"], | ||
| +if __name__ != '__main__': | ||
| + try: | ||
| + __import__('pkg_resources').declare_namespace(__name__) | ||
| + except ImportError: | ||
| + __path__ = __import__('pkgutil').extend_path(__path__, __name__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we register this in EngineCommon like Envoy is doing: envoyproxy/envoy@bcf6729#diff-51c9c3d59b80fbaef57384b42c3137d0a8c1c5cd46ebd86baeb48bd4d709f0d6R228?
Also two nits:
_is used as a convetion for instance variables not for local variables like this one.