Skip to content

[flutter_tools] initialize frontend server with build#49405

Merged
jonahwilliams merged 11 commits intoflutter:masterfrom
jonahwilliams:frontend_server_4
Feb 24, 2020
Merged

[flutter_tools] initialize frontend server with build#49405
jonahwilliams merged 11 commits intoflutter:masterfrom
jonahwilliams:frontend_server_4

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Jan 24, 2020

Description

Initialize the frontend_server while performing the platform initialization step (xcode/gradle). Massive performance improvement on startup. Also fixes flakiness in integration tests triggered by changing elapsed time.

Fixes #40388
Fixes #49865
Fixes #43464 (at least I think...)

@fluttergithubbot fluttergithubbot added tool Affects the "flutter" command-line tool. See also t: labels. work in progress; do not review labels Jan 24, 2020
@jonahwilliams
Copy link
Contributor Author

This also makes the fast-start workflow less bad, yay!

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

lgtm, with one spelling nit. cool!

final List<Future<bool>> startupTasks = <Future<bool>>[];
for (final FlutterDevice device in flutterDevices) {
final int result = await device.runHot(
// Here we initialize the frontend_server conccurently with the gradle
Copy link
Contributor

Choose a reason for hiding this comment

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

nit. conccurently -> concurrently

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@jonahwilliams
Copy link
Contributor Author

Ahh, it started timing out again. Looks like I didn't hit all of the race conditions in the test

@jonahwilliams
Copy link
Contributor Author

Removing unnecessary synchronization for the second tick seems to have removed the flakiness

@christopherfujino
Copy link
Contributor

looks gooder

@jonahwilliams jonahwilliams deleted the frontend_server_4 branch August 19, 2020 05:27
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 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.

Syncing code takes a long time test/integration.shard/hot_reload_test.dart flakiness InitializeFromDill does not work for Android/macOS builds

4 participants