-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter] ensure vmservice binding is registered in profile mode #83913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flutter] ensure vmservice binding is registered in profile mode #83913
Conversation
|
FYI @Hixie . |
|
Oh, haha, good catch. |
|
I'd like to find a way to test this without adding a devicelab test, but I'm scratching my head a bit right now |
| ); | ||
|
|
||
| registerStringServiceExtension( | ||
| name: 'activeDevToolsServerAddress', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one probably needs to move out of the assert block too right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh good catch
|
Soliciting testing ideas: I can't turn off asserts in our unit tests, so I can't show that the extension is still registered. |
|
I can't think of a way to really test this other than an end-to-end test in devicelab either. |
|
Maybe the first step is to fix the flakiness. :-) (In the meantime you could also make the test pass in the case where it fails to bootstrap devtools, since we already test that in existing tests. Can a test decide midway through itself that it should be skipped?) |
|
Yeah, I think that's what we have to do. if its flaky we can revisit. |
|
I added a devicelab test, will add to infra config after this lands |
Ensure that devtools will launch from the cmdline on a profile build
WIP due to testing