Skip to content

Switch flutter_tools from script to app-jit snapshot.#27749

Merged
jonahwilliams merged 11 commits into
flutter:masterfrom
jonahwilliams:training_day
Mar 16, 2019
Merged

Switch flutter_tools from script to app-jit snapshot.#27749
jonahwilliams merged 11 commits into
flutter:masterfrom
jonahwilliams:training_day

Conversation

@jonahwilliams

@jonahwilliams jonahwilliams commented Feb 10, 2019

Copy link
Copy Markdown
Contributor

Small startup improvement to tools time as measured on a mac:

script:

 time flutter > /dev/null

real	0m0.549s
user	0m0.416s
sys	0m0.206s

app-jit

time flutter > /dev/null

real	0m0.326s
user	0m0.251s
sys	0m0.178s

Also added a training command where we could attempt to exercise more of the tool to get better training. Requires disabling asserts for certain tools tests

@zoechi zoechi added the tool Affects the "flutter" command-line tool. See also t: labels. label Feb 11, 2019
@jonahwilliams

Copy link
Copy Markdown
Contributor Author

These tests do not fail locally, investigating as a potential issue with the cirrus env

@jonahwilliams
jonahwilliams requested review from dnfield and yjbanov and removed request for dnfield March 15, 2019 14:29
Comment thread dev/bots/test.dart Outdated
path.join(flutterRoot, 'packages', 'flutter_tools'),
flutterRoot,
enableFlutterToolAsserts: true,
enableFlutterToolAsserts: false, // required to use app-jit tool snapshots.

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.

Would it be possible to ever flip this flag to true? If not, maybe remove it?

import '../runner/flutter_command.dart';

// This command is run when generating the app-jit snapshot for the tool, so it cannot access the Cache
// or any artifacts that haven't been downloaded yet.

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.

nit: ///


// This command is run when generating the app-jit snapshot for the tool, so it cannot access the Cache
// or any artifacts that haven't been downloaded yet.
class TrainingCommand extends FlutterCommand {

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 not a lot of training here :)

@yjbanov

yjbanov commented Mar 15, 2019

Copy link
Copy Markdown
Contributor

lgtm

@jonahwilliams

Copy link
Copy Markdown
Contributor Author

The tool_tests-linux has actually passed, submitting

@jonahwilliams
jonahwilliams merged commit 72605d2 into flutter:master Mar 16, 2019
@jonahwilliams
jonahwilliams deleted the training_day branch March 16, 2019 02:33
@jonahwilliams

Copy link
Copy Markdown
Contributor Author

This had a small, but measurable speedup on flutter test - yay!

2019-03-19

@yjbanov

yjbanov commented Mar 19, 2019

Copy link
Copy Markdown
Contributor

🎆

@yjbanov

yjbanov commented Mar 19, 2019

Copy link
Copy Markdown
Contributor

Let's update the baseline!

dart-bot pushed a commit to dart-lang/sdk that referenced this pull request Mar 22, 2019
This reverts move to appjit for flutter tools (flutter/flutter#27749) that is in the range of the changes that broke `pub run build_runner test`

Change-Id: Ia1c1e66031fb7976faf75cf4a9bf95bac3a450a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97640
Reviewed-by: Alexander Aprelev <[email protected]>
@amirh amirh mentioned this pull request Mar 29, 2019
9 tasks
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants