Skip to content

Reland #53153 to attach to existing modules and apps for Android - #53289

Merged
xster merged 2 commits into
flutter:masterfrom
xster:fix-attach-2
Mar 25, 2020
Merged

xster merged 2 commits into
flutter:masterfrom
xster:fix-attach-2

Conversation

@xster

@xster xster commented Mar 25, 2020 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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.

@jmagman jmagman left a comment

Copy link
Copy Markdown
Member

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