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

Issue 996483003: Run dartanalyze on the dartzip file structure. (Closed)

Created:
5 years, 9 months ago by Elliot Glaysher
Modified:
5 years, 9 months ago
Reviewers:
zra, tonyg
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Run dartanalyze on the dartzip file structure, by default. This patch relands b905249b657b3ff373878a8756e2bde47e1289e6, which enabled running dartanalyze by default, and hopefully fixes the problems seen in that first run: Instead of setting --package-root to the current build's out/.../gen/ dir, after building the dartzip file, unzip it to a temporary directory and then run the analyzer on that. a) This allows us to check that all dependencies are actually expressed in build rules. b) This lets us run the dartanalyze in other repositories. (We may be consuming dartzips in repository B which were generated in repository A.) c) This keeps us from being tied to the build output of one repository. BUG=459376 R=tonyg@chromium.org, zra@google.com Committed: https://chromium.googlesource.com/external/mojo/+/62e312b60088f007e0296ad0a9607e78fd448392

Patch Set 1 #

Total comments: 4

Patch Set 2 : most of tonyg's nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -73 lines) Patch
M BUILD.gn View 1 chunk +0 lines, -18 lines 0 comments Download
M mojo/public/dart/rules.gni View 4 chunks +25 lines, -10 lines 0 comments Download
M mojo/public/tools/dart_analyze.py View 1 2 chunks +51 lines, -33 lines 0 comments Download
M mojo/tools/mojob.py View 2 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Elliot Glaysher
OK, learning from my first attempt to turn dartanalyze on by default. This should fix ...
5 years, 9 months ago (2015-03-09 21:31:46 UTC) #2
Elliot Glaysher
+zra, to verify that what I'm doing with the url-mapping commands is ok.
5 years, 9 months ago (2015-03-09 21:37:26 UTC) #4
tonyg
lgtm, but it does seem like a good idea to wait for zra https://codereview.chromium.org/996483003/diff/1/mojo/public/tools/dart_analyze.py File ...
5 years, 9 months ago (2015-03-09 21:44:21 UTC) #5
zra
lgtm On 2015/03/09 21:37:26, Elliot Glaysher wrote: > +zra, to verify that what I'm doing ...
5 years, 9 months ago (2015-03-09 21:47:46 UTC) #6
Elliot Glaysher
tony: did the imports and the use of the zipfile module, but: https://codereview.chromium.org/996483003/diff/1/mojo/public/tools/dart_analyze.py File mojo/public/tools/dart_analyze.py ...
5 years, 9 months ago (2015-03-09 22:18:48 UTC) #7
Elliot Glaysher
5 years, 9 months ago (2015-03-09 22:19:48 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
62e312b60088f007e0296ad0a9607e78fd448392 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698