-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
wasm: add V8-based WebAssembly runtime. #8592
Conversation
Part of envoyproxy#4272. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Coverage isn't great, but should be ready for review otherwise. |
c8e64b8
to
872e256
Compare
macOS builds are failing because of an old XCode version on Azure Pipelines (while most of the bleeding edge compiler flags are disabled, XCode 10.x is based on clang-7, which is a bit too old for Chromium/V8, which normally bundles clang from trunk). I tried to configure Azure Pipelines to use XCode 11, but I cannot figure out the correct value for |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Thanks! That was way easier than using XCode task. |
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.
Cool stuff. Will defer to @lizan for review since this is mostly build setup. Thank you!
@@ -0,0 +1,24 @@ | |||
licenses(["notice"]) # Apache 2 |
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.
I thought you're working on bazel native build, where is it? :)
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.
I am, but it's not my top priority at this moment.
@mattklein123 FYI the v8.cc (whose diff is automatically hidden by GH 🤦♂ ) is not build setup and that's the crux of this PR, do you want to take a look too? |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
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.
mostly style, are you adding tests for more coverage?
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@PiotrSikora v8.cc still lacks some coverage, can you improve it more? https://293497-65214191-gh.circle-artifacts.com/0/coverage/coverage/proc/self/cwd/source/extensions/common/wasm/v8/v8.cc.html |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@lizan I've added more tests and ripped out dead code, the rest is a bunch of logging helpers and logs for stuff that we don't have too much use right now... let me know if the coverage looks reasonable enough now. |
/azp run envoy-linux |
Commenter does not have sufficient privileges for PR 8592 in repo envoyproxy/envoy |
@PiotrSikora can you merge master? |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@lizan ping |
@PiotrSikora Very cool to see this capability get closer. Are there plans to add to https://github.com/envoyproxy/envoy/blob/master/source/extensions/extensions_build_config.bzl so WASM can be compiled out if not required? |
@moderation all wasm code are not linked into release binary yet. When we do extension registration it will be added to extensions_build_config. |
Part of #4272.
Signed-off-by: Piotr Sikora piotrsikora@google.com