Skip to content

[flutter_tools] Report iOS mDNS lookup failures to analytics #41384

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

Merged
merged 1 commit into from
Sep 26, 2019
Merged

[flutter_tools] Report iOS mDNS lookup failures to analytics #41384

merged 1 commit into from
Sep 26, 2019

Conversation

zanderso
Copy link
Member

Description

We're getting reports that mDNS lookups are failing on iOS. This PR adds some analytics events to get a better idea of the severity of the issue.

Related Issues

#41085

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read [Handling breaking changes]). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

@zanderso zanderso added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 26, 2019
@fluttergithubbot
Copy link
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. While there are exceptions to this rule, if this patch modifies code it is probably not an exception.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@codecov
Copy link

codecov bot commented Sep 26, 2019

Codecov Report

Merging #41384 into master will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #41384      +/-   ##
==========================================
+ Coverage   60.07%   60.21%   +0.14%     
==========================================
  Files         193      193              
  Lines       18751    18753       +2     
==========================================
+ Hits        11265    11293      +28     
+ Misses       7486     7460      -26
Flag Coverage Δ
#flutter_tool 60.21% <100%> (+0.14%) ⬆️
Impacted Files Coverage Δ
packages/flutter_tools/lib/src/ios/devices.dart 65.69% <100%> (+0.28%) ⬆️
...ges/flutter_tools/lib/src/build_system/source.dart 54.05% <0%> (-32.44%) ⬇️
packages/flutter_tools/lib/src/base/build.dart 66.66% <0%> (-8.34%) ⬇️
...ools/lib/src/build_runner/resident_web_runner.dart 75.83% <0%> (-2.69%) ⬇️
packages/flutter_tools/lib/src/version.dart 91.9% <0%> (-1.43%) ⬇️
packages/flutter_tools/lib/src/cache.dart 45.31% <0%> (-0.67%) ⬇️
packages/flutter_tools/lib/src/commands/run.dart 64.39% <0%> (-0.49%) ⬇️
packages/flutter_tools/lib/src/base/logger.dart 82.12% <0%> (-0.39%) ⬇️
.../flutter_tools/lib/src/runner/flutter_command.dart 82.75% <0%> (+0.43%) ⬆️
...ges/flutter_tools/lib/src/android/android_sdk.dart 78.86% <0%> (+20.75%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7fa5dd7...d72fa4c. Read the comment docs.

@tvolkert
Copy link
Contributor

Can you add a test that we properly report these analytics events?

@zanderso
Copy link
Member Author

Will post a PR with unit tests in a few minutes.

@zanderso zanderso merged commit bb7e3f6 into flutter:master Sep 26, 2019
@zanderso zanderso deleted the mdns-failure-analytics branch September 26, 2019 20:41
@zanderso
Copy link
Member Author

Test here: #41410

tvolkert pushed a commit to tvolkert/flutter that referenced this pull request Sep 27, 2019
@tvolkert tvolkert mentioned this pull request Sep 27, 2019
tvolkert added a commit that referenced this pull request Sep 27, 2019
* [flutter_tools] Report iOS mDNS lookup failures to analytics (#41384)
* [flutter_tools] Adds tests of mdns analytics events (#41410)
* [flutter_tool] Add analytics events for ios-mdns fallback success/failure (#41482)
* roll ideviceinstaller, libimobiledevice, libplist, openssl & usbmuxd to signed versions (#41411)
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Sep 30, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants