[flutter_tool] Report to analytics when the tool is killed by a signal#41493
Merged
zanderso merged 2 commits intoflutter:masterfrom Sep 30, 2019
zanderso:command-result-killed
Merged
[flutter_tool] Report to analytics when the tool is killed by a signal#41493zanderso merged 2 commits intoflutter:masterfrom zanderso:command-result-killed
zanderso merged 2 commits intoflutter:masterfrom
zanderso:command-result-killed
Conversation
christopherfujino
suggested changes
Sep 27, 2019
Contributor
christopherfujino
left a comment
There was a problem hiding this comment.
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.
|
Member
Author
|
Fixed tests. |
Inconnu08
pushed a commit
to Inconnu08/flutter
that referenced
this pull request
Sep 30, 2019
flutter#41493) * [flutter_tool] Report to analytics when the tool is killed by a signal * Fix analyzer lint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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?