-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add gRPC support for WASM #55
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
621205a
to
74a39f5
Compare
Let's see if that fix changes the behavior. |
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.
/lgtm
@jplevyak should we consider comment out throwException in _pthread_mutex_destroyHandler by default? |
Yes, we should remove that as it is harmless. |
tools/check_format.py
Outdated
@@ -16,7 +16,8 @@ | |||
|
|||
EXCLUDED_PREFIXES = ("./generated/", "./thirdparty/", "./build", "./.git/", "./bazel-", "./.cache", | |||
"./source/extensions/extensions_build_config.bzl", | |||
"./tools/testdata/check_format/", "./tools/pyformat/", "./api/wasm/") | |||
"./tools/testdata/check_format/", "./tools/pyformat/", "./api/wasm/", | |||
"./test/extensions/filters/http/wasm/") |
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.
Why do we need this? I don't see anything obvious.
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.
Done
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.
Not done ;)
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.
Do we need this or not?
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.
ERROR: ./test/extensions/filters/http/wasm/test_data/grpc_call_cpp.cc:21: unexpected direct dependency on google.protobuf, use the definitions in common/protobuf/protobuf.h instead.
The wasm .cc files disobey envoy style in this regard.
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.
LGTM, thanks!
3 small nits still left:
- typo in include/envoy/grpc/async_client.h:187,
- commented out dead code in source/extensions/common/wasm/wasm.cc:454,
- unnecessary(?) change in tools/check_format.py:20.
tools/check_format.py
Outdated
@@ -16,7 +16,8 @@ | |||
|
|||
EXCLUDED_PREFIXES = ("./generated/", "./thirdparty/", "./build", "./.git/", "./bazel-", "./.cache", | |||
"./source/extensions/extensions_build_config.bzl", | |||
"./tools/testdata/check_format/", "./tools/pyformat/", "./api/wasm/") | |||
"./tools/testdata/check_format/", "./tools/pyformat/", "./api/wasm/", | |||
"./test/extensions/filters/http/wasm/") |
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.
Do we need this or not?
I changed the format exception to specifically be "./test/extensions/filters/http/wasm/test_data" so that it only applies to the WASM code. I am going to merge this and we can talk about removing one of the gRPC Call APIs as a follow up. |
Add gRPC support for WASM