-
Notifications
You must be signed in to change notification settings - Fork 29.8k
[flutter_tool] Report to analytics when the tool is killed by a signal #41493
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
Conversation
jonahwilliams
left a comment
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
christopherfujino
left a comment
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
christopherfujino
left a comment
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.
looks like CI is failing
Codecov Report
@@ Coverage Diff @@
## master #41493 +/- ##
==========================================
- Coverage 60.67% 59.41% -1.26%
==========================================
Files 193 193
Lines 18833 18841 +8
==========================================
- Hits 11426 11194 -232
- Misses 7407 7647 +240
Continue to review full report at Codecov.
|
|
Fixed tests. |
flutter#41493) * [flutter_tool] Report to analytics when the tool is killed by a signal * Fix analyzer lint
Description
This PR adds signal handlers such that the tool will report a command result event and command timing when the tool is killed by a signal (SIGINT, SIGTERM).
Tests
I added the following tests:
Tests in signals_test.dart and flutter_command_test.dart.
Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?