Skip to content

Split analysis steps out of dev/bots/test.dart into dev/bots/analyze.dart - #21174

Merged
aam merged 5 commits into
flutter:masterfrom
aam:split-analyze
Aug 30, 2018
Merged

aam merged 5 commits into
flutter:masterfrom
aam:split-analyze

Conversation

@aam

@aam aam commented Aug 29, 2018

Copy link
Copy Markdown
Member

This allows to run analysis step with command line arguments that are only applicable to flutter analyze(like --dart-sdk, needed for dart-flutter-engine head-head-head bot).

…dart.

This allows to run analysis step with command line arguments that are only applicable to flutter analyze(like --dart-sdk, needed for dart-flutter-engine head-head-head bot).
@athomas

athomas commented Aug 29, 2018

Copy link
Copy Markdown
Contributor

@aam did you forget to add analyze.dart to the commit?

@aam

aam commented Aug 29, 2018

Copy link
Copy Markdown
Member Author

@aam did you forget to add analyze.dart to the commit?

Oops, I certainly did!

Comment thread dev/bots/test.dart Outdated

const Map<String, ShardRunner> _kShards = <String, ShardRunner>{
'analyze': _analyzeRepo,
// 'analyze': _analyzeRepo, handled by analyze.dart

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove this line, and the ones below. You might add a comment above the declaration just saying that this only covers shards handled by this script.

Comment thread dev/bots/analyze.dart Outdated
return new DateTime.now().difference(start).toString();
}

Future<Null> _runCommand(String executable, List<String> arguments, {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot of repeated code here... Can you please split out the common code and import it into both from there? Most of the command execution and progress stuff is identical.

@gspencergoog

Copy link
Copy Markdown
Contributor

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@aam
aam merged commit 391e91c into flutter:master Aug 30, 2018
@aam
aam deleted the split-analyze branch August 30, 2018 15:34
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants