-
Notifications
You must be signed in to change notification settings - Fork 1.3k
For #5599: Remove dependency on fetch_httpurlconnection #5716
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5716 +/- ##
============================================
+ Coverage 14.44% 14.45% +<.01%
+ Complexity 324 323 -1
============================================
Files 256 255 -1
Lines 10499 10516 +17
Branches 1530 1536 +6
============================================
+ Hits 1517 1520 +3
- Misses 8856 8873 +17
+ Partials 126 123 -3
Continue to review full report at Codecov.
|
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.
@colintheshots Unfortunately, there's more :) #3976
Glean is using HttpURLConnectionClient
by default, but we should be able to provide an alternative fetch client in its configuration here: https://github.com/mozilla-mobile/fenix/blob/master/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt#L440
@csadilek I think it's ready for re-review. Glean should now be using Gecko instead. |
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 good! Needs one small change re: reusing our existing client see:
httpClient = lazy(LazyThreadSafetyMode.NONE) { components.core.client } |
I will try to test this manually as well quickly.
Glean.initialize(context, | ||
Configuration(channel = BuildConfig.BUILD_TYPE, | ||
httpClient = ConceptFetchHttpUploader( | ||
lazy { GeckoViewFetchClient(context) } |
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.
I think we want to use our existing client instance here lazy { context.components.core.client }
or is there a reason you created a new instance?
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.
Oh, no I didn't do that deliberately. Sure, I can fix that easily.
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.
OK cool, let's land once you get a chance to push up the change.
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.
I'm just waiting for master to become unbroken and then I'll land it.
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.
@csadilek It's been pushed now.
OK, tested and saw it successfully sending pings with GeckoViewFetch. Excited to finally have a single http client in the stack! |
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 PR removes an unused dependency to ensure it doesn't get used. Using httpurlconnection would foil the ability to funnel all traffic through the secure proxy tunnel.
Pull Request checklist
After merge
To download an APK when reviewing a PR: