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
Consolidate ascii spinner stop in devtools activation #75679
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
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.
We really need to make the BufferLogger spinners hit this same assert
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.
LGTM
The devtools launcher is somewhat standalone, could we write a test with this using a fake logger?
That's a good idea.
There are already tests that exercise the exception case
The flutter/packages/flutter_tools/lib/src/devtools_launcher.dart Lines 155 to 168 in 021311e
So the original exception caught could be:
2. Let me think about how to test this by simulating either one or two. |
* Avoid iOS local networking dialog in integration tests (#75163) * ios_platform_view tests pass when device rotated (#75665) * Consolidate ascii spinner stop in devtools activation (#75679) * Fix problem causing tasks to timeout. (#76028) This is because the command was actually collecting logs continuously from the device. Additionally idevicesyslog does not have a reboot option. Bug: #76027 * fix Autovalidate enum references in fix data (#77419) * roll engine cherrypicks Co-authored-by: Jenn Magder <magder@google.com> Co-authored-by: godofredoc <54371434+godofredoc@users.noreply.github.com> Co-authored-by: Phil Quitslund <pq@users.noreply.github.com>
status.stop()
incatch
was throwing because the timer was already stopped and nulled out. Consolidate the statusstop
calls into onefinally
block.Introduced in #73366
Fixes #75677