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

Issue 2576053002: Give automation extension api owners ownership of externs (Closed)

Created:
4 years ago by David Tseng
Modified:
4 years ago
Reviewers:
Devlin, Dan Beam
CC:
chromium-reviews, vitalyp+closure_chromium.org, jlklein+watch-closure_chromium.org, dbeam+watch-closure_chromium.org, aboxhall, dmazzoni
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Give automation extension api owners ownership of externs BUG= Committed: https://crrev.com/484e132178179990a45f6c74c218d12bee61f094 Cr-Commit-Position: refs/heads/master@{#438680}

Patch Set 1 #

Patch Set 2 : Give automation extension api owners ownership of externs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M third_party/closure_compiler/externs/OWNERS View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
David Tseng
4 years ago (2016-12-14 21:46:09 UTC) #3
Dan Beam
you misspelled Devlin's email, but lgtm from me
4 years ago (2016-12-14 22:39:28 UTC) #5
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/2576053002/20001
4 years ago (2016-12-14 23:36:23 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-14 23:51:24 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/484e132178179990a45f6c74c218d12bee61f094 Cr-Commit-Position: refs/heads/master@{#438680}
4 years ago (2016-12-14 23:55:51 UTC) #12
Dan Beam
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2579603002/ by dbeam@chromium.org. ...
4 years ago (2016-12-15 00:36:54 UTC) #13
Dan Beam
not lgtm in the meantime
4 years ago (2016-12-15 00:37:08 UTC) #14
David Tseng
On 2016/12/15 00:36:54, Dan Beam wrote: > A revert of this CL (patchset #2 id:20001) ...
4 years ago (2016-12-15 03:02:14 UTC) #15
Dan Beam
fixing the reviewers list so that Devlin gets this On 2016/12/15 03:02:14, David Tseng wrote: ...
4 years ago (2016-12-15 04:19:51 UTC) #18
Dan Beam
4 years ago (2016-12-16 01:44:54 UTC) #19
Message was sent while issue was closed.
On 2016/12/15 04:19:51, Dan Beam wrote:
> fixing the reviewers list so that Devlin gets this
> 
> On 2016/12/15 03:02:14, David Tseng wrote:
> > On 2016/12/15 00:36:54, Dan Beam wrote:
> > > A revert of this CL (patchset #2 id:20001) has been created in
> > > https://codereview.chromium.org/2579603002/ by mailto:dbeam@chromium.org.
> > > 
> > > The reason for reverting is: Manually editing generated files is not the
> right
> > > way to change things in this folder.
> > > 
> > > https://codereview.chromium.org/2563013003/
> > > https://codereview.chromium.org/2544203004/
> > > 
> > > Please either fix the tools, report bugs, or remove generation steps (or
> move
> > > these externs to somewhere else), then resubmit this CL..
> > 
> > Ok.
> > 
> > Would be great to figure out what you guys want to do with these...
> > 
> > These externs really don't even belong in third party but are proper
extension
> > api resources (e.g. that license warning you're probably ignoring when
> > uploading). Anyway, pointers to a Docs, bug, etc with plans would be useful
to
> > unblock future work/cls. Thanks.
> 
> Closure compiler is a third-party tool, as far as Chromium is concerned.  We
use
> this tool to typecheck our code.  Externs don't make sense outside of the
> context of closure compilation, as far as I know (do you know anywhere else
> these are used except for closure?).  This is why closure compiler externs are
> considered "third-party".
> 
> We used to keep a big, hand-edited list of externs for lots of stuff.  But it
> didn't make a ton of sense to us.  Just one more thing to update, and in an
> error-prone, time-consuming way.
> 
> So tbreisacher@ and rdevlin.cronin@ wrote a generator that took .json or .idl
> files and spit out sweet .js extern files.  And generally it works really well
> and improved on things.  We haven't yet set up a presubmit requiring
> re-generating an .idl's equivalent .js externs file, but that'd be helpful.  I
> don't think it's reasonable to expect folks to (know to) update a .js file on
> the other side of the code base.
> 
> BUT what I do expect is files that say "this is generated" can be re-generated
> at any time.  Many others believe this is reasonable as well, and folks have
> lost manual edits in the past because of this (see:
> https://codereview.chromium.org/1034873002).
> 
> I've been meaning to write a script that regenerates externs automatically
(i.e.
> takes all the IDLs we care about and re-runs
> tools/json_schema_compiler/compiler.py and plops the results into
> third_party/closure_compiler/externs/).  I just haven't done it yet.
> 
> I'm sorry that there's not more docs on this process.  This is pretty much all
> the formal "doc" on it (other than code and bugs):
>
https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilat...
>
https://docs.google.com/document/d/1Ee9ggmp6U-lM-w9WmxN5cSLkK9B5YAq14939Woo-J...
> 
> I'm redoing a lot of the doc for the webui platform and this could be included
> in the process.
> 
> Like I mentioned, there are a few alternatives:
> 
> 1) improve the generator
> 2) remove the instructions to auto-generate and continue to manually curate
> 3) move these externs out of this file

Fun fact I learned today: a presubmit does exist for this, it's just incomplete:
https://cs.chromium.org/chromium/src/extensions/common/api/PRESUBMIT.py?q=api...

Additional fun fact: Devlin is interested in reducing the checked in, generated
code, see:
https://codereview.chromium.org/2583573002/

Powered by Google App Engine
This is Rietveld 408576698