Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Issue 2838843002: [tools] add script to simplify backporting patch to Node.js (Closed)

Created:
3 years, 8 months ago by Yang
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[tools] add script to simplify backporting patch to Node.js usage: backport_node.py <v8 dir> <node dir> <commit hash> [--no-review] R=franzih@chromium.org, machenbach@chromium.org Review-Url: https://codereview.chromium.org/2838843002 Cr-Commit-Position: refs/heads/master@{#44853} Committed: https://chromium.googlesource.com/v8/v8/+/fed3e09356004521023253cfea903e72c42c2e82

Patch Set 1 #

Total comments: 7

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -0 lines) Patch
A tools/release/backport_node.py View 1 1 chunk +96 lines, -0 lines 0 comments Download
A tools/release/test_backport_node.py View 1 chunk +66 lines, -0 lines 0 comments Download
M tools/release/update_node.py View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Yang
3 years, 8 months ago (2017-04-25 10:37:59 UTC) #1
Michael Achenbach
lgtm https://codereview.chromium.org/2838843002/diff/1/tools/release/backport_node.py File tools/release/backport_node.py (right): https://codereview.chromium.org/2838843002/diff/1/tools/release/backport_node.py#newcode15 tools/release/backport_node.py:15: print subprocess.check_call(["git", "diff-tree", "-p", options.commit], cwd=options.v8_path) Why do ...
3 years, 8 months ago (2017-04-25 12:33:45 UTC) #2
Franzi
https://codereview.chromium.org/2838843002/diff/1/tools/release/backport_node.py File tools/release/backport_node.py (right): https://codereview.chromium.org/2838843002/diff/1/tools/release/backport_node.py#newcode56 tools/release/backport_node.py:56: parser = argparse.ArgumentParser(description="Backport V8 commit to Node.js") Can you ...
3 years, 8 months ago (2017-04-25 12:39:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2838843002/20001
3 years, 8 months ago (2017-04-25 13:15:43 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/fed3e09356004521023253cfea903e72c42c2e82
3 years, 8 months ago (2017-04-25 13:39:11 UTC) #9
Yang
3 years, 8 months ago (2017-04-25 18:22:05 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/2838843002/diff/1/tools/release/backport_node.py
File tools/release/backport_node.py (right):

https://codereview.chromium.org/2838843002/diff/1/tools/release/backport_node...
tools/release/backport_node.py:15: print subprocess.check_call(["git",
"diff-tree", "-p", options.commit], cwd=options.v8_path)
On 2017/04/25 12:33:45, Michael Achenbach wrote:
> Why do we output the whole patch? Isn't this sometimes very large?

Debugging remnant. Removing.

https://codereview.chromium.org/2838843002/diff/1/tools/release/backport_node...
tools/release/backport_node.py:18: patch.wait()
On 2017/04/25 12:33:45, Michael Achenbach wrote:
> Probably many roads to Rome. I used to use a different approach for piping
> between processes:
>
https://chromium.googlesource.com/v8/v8/+/2ac17e34cd9847bac75fdd03a8d65cb4e8b...
> 
> but that's just stackoverflow wisdom.

Mine was a piece of stackoverflow wisdom as well :)

https://codereview.chromium.org/2838843002/diff/1/tools/release/backport_node...
tools/release/backport_node.py:56: parser =
argparse.ArgumentParser(description="Backport V8 commit to Node.js")
On 2017/04/25 12:39:50, Franzi wrote:
> Can you add some docu? I.e., what is this for, how to use it? Do you need a
node
> checkout? From which folder do you run it?

Done. Also added documentation for update_node.py

Powered by Google App Engine
This is Rietveld 408576698