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

Issue 628363002: Modify dartanalyzer scripts to look more like dart2js scripts. (Closed)

Created:
6 years, 2 months ago by Paul Berry
Modified:
6 years, 2 months ago
CC:
reviews_dartlang.org, ricow1, srdjan, Johnni Winther
Visibility:
Public.

Description

Modify dartanalyzer scripts to look more like dart2js scripts. The dartanalyzer script (and its Windows companion, dartanalyzer.bat) now support: - Executing from snapshot if present, otherwise from source (needed for buildbot tests). - Passing in the appropriate package root when executind from source. - Passing in VM tuning parameters to speed up analysis. - Passing through extra DART_VM_OPTIONS to the VM. Also, the old editor/tools/analyzer script has been removed and the test infrastructure now uses sdk/bin/dartanalyzer, in the same way that it works for dart2js. R=ahe@google.com, johnniwinther@google.com, ricow@google.com Committed: https://code.google.com/p/dart/source/detail?r=41150

Patch Set 1 #

Patch Set 2 : Fix handling of package root. #

Patch Set 3 : Remove editor/tools/analyzer. #

Total comments: 7

Patch Set 4 : Address some code review comments. #

Patch Set 5 : Move code inside else clause #

Total comments: 1

Patch Set 6 : Rework based on code review comments #

Total comments: 8

Patch Set 7 : Address code review comments and rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -60 lines) Patch
D editor/tools/analyzer View 1 2 1 chunk +0 lines, -53 lines 0 comments Download
M sdk/bin/dartanalyzer View 1 2 3 4 5 2 chunks +35 lines, -5 lines 0 comments Download
M sdk/bin/dartanalyzer.bat View 1 2 3 4 5 2 chunks +27 lines, -2 lines 2 comments Download
A + sdk/bin/dartanalyzer_sdk View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + sdk/bin/dartanalyzer_sdk.bat View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
M tools/create_sdk.py View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M tools/testing/dart/compiler_configuration.dart View 1 2 3 4 5 6 1 chunk +20 lines, -1 line 0 comments Download

Messages

Total messages: 29 (3 generated)
Paul Berry
Rico-- I still haven't had a chance to set up a Windows dev image. Would ...
6 years, 2 months ago (2014-10-06 20:12:21 UTC) #2
scheglov
Removing editor/tools/analyzer LGTM
6 years, 2 months ago (2014-10-06 20:15:17 UTC) #3
ricow1
https://codereview.chromium.org/628363002/diff/40001/sdk/bin/dartanalyzer File sdk/bin/dartanalyzer (right): https://codereview.chromium.org/628363002/diff/40001/sdk/bin/dartanalyzer#newcode24 sdk/bin/dartanalyzer:24: DART_ROOT="$(cd "${SDK_DIR}/.." ; pwd -P)" this is not true ...
6 years, 2 months ago (2014-10-07 06:03:08 UTC) #4
ahe
I've applied the patch locally. Then I diff'ed sdk/bin/dart2js and sdk/bin/dartanalyzer. The diff contains a ...
6 years, 2 months ago (2014-10-07 11:07:11 UTC) #5
Paul Berry
https://codereview.chromium.org/628363002/diff/40001/sdk/bin/dartanalyzer File sdk/bin/dartanalyzer (right): https://codereview.chromium.org/628363002/diff/40001/sdk/bin/dartanalyzer#newcode24 sdk/bin/dartanalyzer:24: DART_ROOT="$(cd "${SDK_DIR}/.." ; pwd -P)" On 2014/10/07 06:03:08, ricow1 ...
6 years, 2 months ago (2014-10-07 23:39:18 UTC) #6
Paul Berry
On 2014/10/07 11:07:11, ahe wrote: > I've applied the patch locally. Then I diff'ed sdk/bin/dart2js ...
6 years, 2 months ago (2014-10-07 23:53:57 UTC) #7
Ivan Posva
By using undocumented VM flags your application will break without any warning in the future. ...
6 years, 2 months ago (2014-10-08 04:52:31 UTC) #9
Paul Berry
On 2014/10/08 04:52:31, Ivan Posva wrote: > By using undocumented VM flags your application will ...
6 years, 2 months ago (2014-10-08 04:59:38 UTC) #10
scheglov
On 2014/10/08 04:52:31, Ivan Posva wrote: > By using undocumented VM flags your application will ...
6 years, 2 months ago (2014-10-08 14:11:04 UTC) #11
Paul Berry
6 years, 2 months ago (2014-10-08 14:11:12 UTC) #12
Paul Berry
On 8 October 2013 00:31, ahe wrote: >On Wed Oct 08 2014 at 1:53:58 AM ...
6 years, 2 months ago (2014-10-08 21:10:05 UTC) #13
Paul Berry
On 9 October 2014 03:07, ahe wrote: >On Wed Oct 08 2014 at 11:10:05 PM ...
6 years, 2 months ago (2014-10-09 13:22:52 UTC) #14
ahe
On 2014/10/09 13:22:52, Paul Berry wrote: > Agreed. To clarify my proposal about "dartanalyzer_local" above, ...
6 years, 2 months ago (2014-10-09 13:31:40 UTC) #15
Paul Berry
On 2014/10/09 13:31:40, ahe wrote: > On 2014/10/09 13:22:52, Paul Berry wrote: > > Agreed. ...
6 years, 2 months ago (2014-10-09 14:02:50 UTC) #16
ahe
On 2014/10/09 14:02:50, Paul Berry wrote: > Ok, if I'm understanding correctly, your proposal is: ...
6 years, 2 months ago (2014-10-09 14:20:32 UTC) #17
Paul Berry
PTAL. I've updated the CL to follow Peter's suggestion. Peter: Rather than place the scripts ...
6 years, 2 months ago (2014-10-09 17:26:15 UTC) #18
Ivan Posva
On 2014/10/09 17:26:15, Paul Berry wrote: > PTAL. I've updated the CL to follow Peter's ...
6 years, 2 months ago (2014-10-10 05:19:09 UTC) #19
Paul Berry
Rico and Peter, Any chance you could have a look at this soon? Thanks, Paul
6 years, 2 months ago (2014-10-13 12:52:55 UTC) #20
ahe
Didn't look at shell and bat files, rest of CL LGTM! https://codereview.chromium.org/628363002/diff/80001/tools/create_sdk.py File tools/create_sdk.py (right): ...
6 years, 2 months ago (2014-10-15 08:44:54 UTC) #21
ricow1
I second what Peter said about having scripts that are in sdk/bin be runable from ...
6 years, 2 months ago (2014-10-15 11:12:34 UTC) #22
Paul Berry
https://codereview.chromium.org/628363002/diff/80001/sdk/bin/dartanalyzer_sdk File sdk/bin/dartanalyzer_sdk (right): https://codereview.chromium.org/628363002/diff/80001/sdk/bin/dartanalyzer_sdk#newcode2 sdk/bin/dartanalyzer_sdk:2: # Copyright (c) 2013, the Dart project authors. Please ...
6 years, 2 months ago (2014-10-16 00:16:03 UTC) #23
Johnni Winther
.bat files LGTM (i.e. works) when modified according the comment. aprelev@: Could you take a ...
6 years, 2 months ago (2014-10-16 11:42:36 UTC) #25
Paul Berry
https://codereview.chromium.org/628363002/diff/160001/sdk/bin/dartanalyzer.bat File sdk/bin/dartanalyzer.bat (right): https://codereview.chromium.org/628363002/diff/160001/sdk/bin/dartanalyzer.bat#newcode48 sdk/bin/dartanalyzer.bat:48: set PACKAGE_ROOT=%BUILD_DIR%\packages\ On 2014/10/16 11:42:36, Johnni Winther wrote: > ...
6 years, 2 months ago (2014-10-16 14:16:30 UTC) #26
Paul Berry
Committed patchset #7 (id:160001) manually as 41150 (presubmit successful).
6 years, 2 months ago (2014-10-16 14:21:48 UTC) #27
aam-me
On 2014/10/16 11:42:36, Johnni Winther wrote: > .bat files LGTM (i.e. works) when modified according ...
6 years, 2 months ago (2014-10-16 18:22:25 UTC) #28
Paul Berry
6 years, 2 months ago (2014-10-16 18:30:58 UTC) #29
Message was sent while issue was closed.
On 2014/10/16 18:22:25, aam wrote:
> On 2014/10/16 11:42:36, Johnni Winther wrote:
> > .bat files LGTM (i.e. works) when modified according the comment.
> > 
> > aprelev@: Could you take a look at the .bat files?
> 
> Yes, looks good to me too.

Thanks!

> 
> Just curious why sdk/bin/dartanalyzer_sdk.bat doesn't have changes introduced
> into sdk/bin/dartanalyzer.bat?
> If I understand correctly it's dartanalyzer_sdk.bat that gets included into
> {build}/{version}/dart-sdk/bin.
> 
> Who is the user of this sdk/bin/dartanalyzer.bat vs dartanalyzer_sdk.bat?

Correct; dartanalyzer_sdk.bat is what gets included into
{build}/{version}/dart-sdk/bin (which is what gets released).  The changes I'm
making in this CL are just to support the buildbots and developers of the Dart
SDK.  For example, developers want to be able to run the analyzer from raw
source rather than from the snapshot, so that they don't have to do a build
before they can test their changes.  That feature isn't necessary for the end
user (in fact it would be problematic to ship it to them, since they may not
have the analyzer source code at all).

Powered by Google App Engine
This is Rietveld 408576698