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

Issue 2643723005: WebUI: Apply local patch to vulcanize. (Closed)

Created:
3 years, 11 months ago by dpapad
Modified:
3 years, 11 months ago
Reviewers:
Nico, Dan Beam
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebUI: Apply local patch to vulcanize. The local patch unblocks the GN/Ninja migration for vulcanize. BUG=673825 Review-Url: https://codereview.chromium.org/2643723005 Cr-Commit-Position: refs/heads/master@{#445233} Committed: https://chromium.googlesource.com/chromium/src/+/d60fc621f4162b8bcbf666236508fbf53210bb05

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -2 lines) Patch
M third_party/node/README.chromium View 1 chunk +1 line, -1 line 0 comments Download
M third_party/node/node_modules.tar.gz.sha1 View 1 chunk +1 line, -1 line 0 comments Download
A third_party/node/patch_vulcanize.diff View 1 chunk +62 lines, -0 lines 0 comments Download
M third_party/node/update_npm_deps View 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 21 (10 generated)
dpapad
3 years, 11 months ago (2017-01-20 22:28:14 UTC) #7
Dan Beam
lgtm
3 years, 11 months ago (2017-01-20 23:56:46 UTC) #8
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/2643723005/1
3 years, 11 months ago (2017-01-21 00:43:47 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/d60fc621f4162b8bcbf666236508fbf53210bb05
3 years, 11 months ago (2017-01-21 00:53:19 UTC) #13
Nico
why don't we upstream this instead? https://codereview.chromium.org/2643723005/diff/1/third_party/node/update_npm_deps File third_party/node/update_npm_deps (right): https://codereview.chromium.org/2643723005/diff/1/third_party/node/update_npm_deps#newcode21 third_party/node/update_npm_deps:21: # Apply local ...
3 years, 11 months ago (2017-01-22 21:50:41 UTC) #15
dpapad
On 2017/01/22 at 21:50:41, thakis wrote: > why don't we upstream this instead? Part of ...
3 years, 11 months ago (2017-01-23 17:54:23 UTC) #16
Nico
On 2017/01/23 17:54:23, dpapad wrote: > On 2017/01/22 at 21:50:41, thakis wrote: > > why ...
3 years, 11 months ago (2017-01-23 18:38:35 UTC) #17
Dan Beam
On 2017/01/23 18:38:35, Nico wrote: > On 2017/01/23 17:54:23, dpapad wrote: > > On 2017/01/22 ...
3 years, 11 months ago (2017-01-23 18:48:46 UTC) #18
Nico
On 2017/01/23 18:48:46, Dan Beam (slow - converging) wrote: > On 2017/01/23 18:38:35, Nico wrote: ...
3 years, 11 months ago (2017-01-23 18:59:02 UTC) #19
Dan Beam
On 2017/01/23 18:59:02, Nico wrote: > On 2017/01/23 18:48:46, Dan Beam (slow - converging) wrote: ...
3 years, 11 months ago (2017-01-23 19:07:34 UTC) #20
Nico
3 years, 11 months ago (2017-01-23 19:48:32 UTC) #21
Message was sent while issue was closed.
On Mon, Jan 23, 2017 at 2:07 PM, <dbeam@chromium.org> wrote:

> On 2017/01/23 18:59:02, Nico wrote:
> > On 2017/01/23 18:48:46, Dan Beam (slow - converging) wrote:
> > > On 2017/01/23 18:38:35, Nico wrote:
> > > > On 2017/01/23 17:54:23, dpapad wrote:
> > > > > On 2017/01/22 at 21:50:41, thakis wrote:
> > > > > > why don't we upstream this instead?
> > > > >
> > > > > Part of the local patch is in the process of being upstreamed, see
> > > > > https://github.com/Polymer/polymer-bundler/pull/401. The
> remaining part
> is
> > > > > specific to Chrome's usage of vulcanize and it is going to be a
> harder
> > sell
> > > > for
> > > > > upstreaming.
> > > >
> > > > Maybe upstream would be amenable to some plugin thing? (I don't know
> what
> > > you're
> > > > trying to do, but forking vulcanize roughly immediately after adding
> a dep
> > on
> > > it
> > > > seems like a suboptimal start).
> > >
> > > the API exists to easily invoke vulcanize/hydrolysis from a node.js
> script.
> > > would you like us to start writing scripts with #!/usr/bin/env node as
> the
> > > shebang?
> >
> > I don't know what problem you're trying to solve and how node scripts
> usually
> > work or if they usually have shebang lines. (I do know that shebang lines
> don't
> > work on Windows.)
> >
> > As a third_party owner, I do know that we try reasonably hard to not have
> > downstream diffs if it can be helped (because it makes it a lot harder to
> update
> > the third-party dep -- yes, it's scripted, but what if the patch stops
> applying,
> > etc. We want through several of these "update dep that wasn't updated in
> a
> long
> > time and where none of the people who added it are still around"
> exercises,
> they
> > aren't super fun).
> >
> > If you want, you can provide some more background and maybe I'll see
> some way
> to
> > do that that doesn't require permanent downstream diffs. (Temporary
> downstream
> > diffs that just apply patches locally that have been sent upstream and
> that
> have
> > a chance of being accepted are A-Ok of course.)
>
> when we added a dependency on node.js in chromium, I think it was with the
> understanding that we wouldn't step on Python's toes. We use python in many
> places, have good support (linting, modules, python binary bundled with the
> check out, presubmits, unit tests, the works). if we start to write scripts
> with node.js to support the node-based tools, I'm OK with that, but I'm
> worried
> that folks will misinterpret that as: I want to accomplish a goal, should I
> write a Python script or a Node script to accomplish it? Having 2 ways may
> not
> be useful in this regard.
>
> That's why I worry about adding scripts to Chromium's src/ that invoke
> node.
>
> Also, for what it's worth, we will continue working with the Polymer team
> to get
> that upstream PR included. We've worked with them to land like 50 PRs over
> the
> last year. It may not land in the exact same form (there may be further
> review
> iteration), but I'm confident we'll get something working that suffices our
> needs (because others have had similar requests over the years, we found
> out in
> their issue tracker).
>
> tl;dr - I don't want to step on Python's toes; it's basically a temporary
> patch.
>

I didn't understand most of that except "temporary patch", but that sounds
good to me :-)

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698