Skip to content
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

Upgrade V8 to 9.0 #111

Merged
merged 7 commits into from
Apr 21, 2021
Merged

Upgrade V8 to 9.0 #111

merged 7 commits into from
Apr 21, 2021

Conversation

rogchap
Copy link
Owner

@rogchap rogchap commented Apr 15, 2021

fixes #109

@rogchap rogchap marked this pull request as draft April 15, 2021 02:48
@rogchap
Copy link
Owner Author

rogchap commented Apr 15, 2021

@cleiner (FYI @zwang) The build for Windows is failing with the upgrade to V8:

error: patch failed: tools/debug_helper/BUILD.gn:95
error: tools/debug_helper/BUILD.gn: patch does not apply

What is the process to get the right patches for new versions of V8?
I tried the steps detailed here https://github.com/rogchap/v8go/blob/master/deps/windows_x86_64/README.md but it just deleted all the patch files.

I think we need to add more detailed steps to upgrade V8 to latest versions.

FYI; I'm using a unix machine.

@@ -19,7 +19,7 @@ jobs:
run: cd deps/depot_tools && git config --unset-all remote.origin.fetch; git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
shell: bash
- name: Build V8 linux
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-18.04'
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Owner Author

Choose a reason for hiding this comment

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

Oooh, nice. Thanks @kuoruan 👍

.... now going to update all my projects

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to change this before merge? if not, I can merge this PR now.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I'll address this in another PR later, as we have already run the builds for this version

@kuoruan
Copy link
Contributor

kuoruan commented Apr 15, 2021

Use git apply --reject --whitespace=fix 0000-add-mingw-main-code-changes.patch can apply most of the patches.

then fix others manually.

@cleiner
Copy link
Contributor

cleiner commented Apr 15, 2021

Sorry for the confusion, @rogchap. Please see PR #113 against this branch.

cleiner and others added 4 commits April 16, 2021 08:05
Co-authored-by: rogchap <rogchap@users.noreply.github.com>
Co-authored-by: rogchap <rogchap@users.noreply.github.com>
Co-authored-by: rogchap <rogchap@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Apr 16, 2021

Codecov Report

Merging #111 (de08acf) into master (571ffb0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #111   +/-   ##
=======================================
  Coverage   96.63%   96.63%           
=======================================
  Files          12       12           
  Lines         416      416           
=======================================
  Hits          402      402           
  Misses          9        9           
  Partials        5        5           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 571ffb0...de08acf. Read the comment docs.

@rogchap rogchap marked this pull request as ready for review April 16, 2021 05:44
@rogchap rogchap requested a review from zwang April 16, 2021 05:45
@rogchap rogchap merged commit 5e31992 into master Apr 21, 2021
@rogchap rogchap deleted the v9_0_upgrade branch April 21, 2021 21:46
macournoyer pushed a commit to Shopify/v8go that referenced this pull request May 6, 2021
genevieve pushed a commit to Shopify/v8go that referenced this pull request Jul 20, 2021
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.

Security: update v8 and tag new release due to zero day exploit
4 participants