-
Notifications
You must be signed in to change notification settings - Fork 76
Bump v8 to version 11.2.34 #327
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
Conversation
No, some of those changes are Envoy-specific (e.g. integration with it's build system and existing dependencies).
If it builds, then it applied fine. The
It's the
Envoy wants tarballs and googlesource.com doesn't support deterministic tarballs, so it has to be created and stored externally. See how it's build here: https://storage.googleapis.com/envoyproxy-wee8/wee8-fetch-deps.sh, it's only an automated dependency extraction and tarball creation. The comment about flattened checkout was true with old
Only @mpwarres can update
If it builds, then it applied fine.
The one in Envoy.
No (see above).
Ask @mpwarres.
You could add another V8 target (e.g.
(missing link) |
# 10.7.193.13 | ||
commit = "6c8b357a84847a479cd329478522feefc1c3195a", | ||
# 11.2.34 | ||
commit = "fb6dd9c9d5034ca221e895b01072b0269f2611e7", |
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.
You need to update //base/trace_event/common
below to a version that matches V8 as well.
See https://storage.googleapis.com/envoyproxy-wee8/wee8-fetch-deps.sh (or just run it) to see how it's extracted.
@@ -126,10 +126,10 @@ def proxy_wasm_cpp_host_repositories(): | |||
maybe( | |||
git_repository, | |||
name = "v8", | |||
# 10.7.193.13 | |||
commit = "6c8b357a84847a479cd329478522feefc1c3195a", | |||
# 11.2.34 |
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.
This is a wrong version to update to.
The main branch of V8 isn't stable, and you should use only versions used in linux/stable
or linux/beta
builds of Chrome. See v8_version
column here: https://omahaproxy.appspot.com.
@PiotrSikora So I attempted to update the patch to either linux/stable (10.9.194.10) and linux/beta (11.0.226.13) but unfortunately both fail with the error:
This file in fact does exists but because the bazel build uses a build command that includes the needed directory path with:
instead of
this file is ignored and not seen. The save_registers_asm.cc includes the file as |
You can add diff replacing
That's probably 2-3 months away, so not worth waiting for, IMHO. |
Hi .. @lizan @PiotrSikora Hi .. I'd like to bump v8 used here to a more recent version. Ultimately this is to support the version used in envoy. Two things concerning this:
(1) In envoy there is a patch file located here: which is beefer version of the one found here: .. basically subsuming what is found in the v8.patch in this repository. So first, should these files be consistent? Second, how do I test that the patch applies OK here when building. I wasn't sure which target to build to test the new v8 but I choose this one this set of commands at the root:
The build completed and clearly seem to bring in the new v8. However, when I sabotaged the v8.patch by adding garbage to it, the steps above still worked. Clearly the v8.patch file was not applied while building v8.
(2) The build files in envoy have pointers to a version of v8 found here:
https://github.com/envoyproxy/envoy/blob/9d9940b49f642fcf483ac8ff387ecb521dcf94fc/bazel/repository_locations.bzl#L1065-L1078
in repositories_locations.bzl point to the same version of v8 as listed here:
proxy-wasm-cpp-host/bazel/repositories.bzl
Lines 126 to 135 in 0f5a0e7
So, setting aside that I don't understand why the envoy build needs to point to a different repository with the same code for v8 that is already brought in by proxy-wasm-cpp-host, based on some comments from @lizan about dependencies being flattened, I do assume these to sources need to be the same version of v8. So I tried to do a wget on the location here:
urls = ["https://storage.googleapis.com/envoyproxy-wee8/v8-{version}.tar.gz"],
substituting the version number (11.2.34) this patch is trying to bump to and the file was not found. Of course the old commit version (10.7.193.13) is found. How do I update this location with the version of v8 consistent to the one now pointed to in this patch?
So my primary questions are:
(1) How do I test that v8.patch is applied properly when just building proxy-wasm-cpp-host.
(2) Which v8.patch file is used by envoy (the one in the envoy repo or the one in this repo)
(3) Should these two v8.patch files be identical?
(4) How do I update https://storage.googleapis.com/ to include v8-11.2.34.tar.gz
I guess I have another question related to this patch. I'd like to include a v8 patch file for proxy-wasm-cpp-host (or envoy) that is targeting build flags in v8 friendly to debugging and perf analysis. I assume that needs to be done with a patch file. How do I add another v8-perf.patch file that is only used when specified with some command line flag when building.
nearly identically but basically subsumes what is here in this repository: