Repository navigation
Split analysis steps out of dev/bots/test.dart into dev/bots/analyze.dart - #21174
Merged
Merged
Conversation
…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).
Contributor
|
@aam did you forget to add analyze.dart to the commit? |
Member
Author
Oops, I certainly did! |
|
|
||
| const Map<String, ShardRunner> _kShards = <String, ShardRunner>{ | ||
| 'analyze': _analyzeRepo, | ||
| // 'analyze': _analyzeRepo, handled by analyze.dart |
Contributor
There was a problem hiding this comment.
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.
| return new DateTime.now().difference(start).toString(); | ||
| } | ||
|
|
||
| Future<Null> _runCommand(String executable, List<String> arguments, { |
Contributor
There was a problem hiding this comment.
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
approved these changes
Aug 30, 2018
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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).