Skip to content

Conversation

@xster
Copy link
Member

@xster xster commented Mar 25, 2020

Fixes #52975

The test failure was from the timeout which was overly aggressive. The attached signal came after we timed out and started to uninstall the app.

@fluttergithubbot fluttergithubbot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels Mar 25, 2020
@xster xster requested a review from jmagman March 25, 2020 20:58

await eventOrExit(listening.future);
await eventOrExit(ready.future);
await eventOrExit(ready.future).timeout(const Duration(seconds: 15), onTimeout: () {
Copy link
Member

Choose a reason for hiding this comment

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

Why did this take more than 5 seconds in the devicelab so consistently? That seems like a long time...
How long does it take on your machine?

Copy link
Member Author

Choose a reason for hiding this comment

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

Partly discussed offline. I thought it was just logcat pipe from the device but that's only taking 500ms.

Takes me ~8s to do a whole attach process. There's definitely some hot spots in the process. Filed #53313 to dig for low hanging fruits.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

LGTM, the only change is the timeout bump.

@xster xster merged commit 1376746 into flutter:master Mar 25, 2020
@xster xster deleted the fix-attach-2 branch March 25, 2020 23:45
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flutter attach doesn't connect after the flutter module's VM/engine started

4 participants