Skip to content
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

On init and if upload is disabled, see if we need to resend a de… #545

Merged
merged 6 commits into from
Dec 5, 2019

Conversation

badboy
Copy link
Member

@badboy badboy commented Dec 4, 2019

No new ping will be generated.
It will only sent a previously-failed ping, if any.

I would block that on #539, so that I can include the necessary Python changes as well

@badboy badboy added the blocked Blocked pull requests and issues label Dec 4, 2019
@badboy badboy force-pushed the retry-del-req branch 2 times, most recently from cfddcb2 to a1aeec4 Compare December 4, 2019 14:20
@codecov-io
Copy link

codecov-io commented Dec 4, 2019

Codecov Report

Merging #545 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #545      +/-   ##
============================================
+ Coverage     74.43%   74.47%   +0.04%     
  Complexity      334      334              
============================================
  Files           100      100              
  Lines          5886     5897      +11     
  Branches        745      746       +1     
============================================
+ Hits           4381     4392      +11     
  Misses          965      965              
  Partials        540      540
Impacted Files Coverage Δ Complexity Δ
...oid/src/main/java/mozilla/telemetry/glean/Glean.kt 89.11% <100%> (+0.17%) 1 <0> (ø) ⬇️
glean-core/ios/Glean/Glean.swift 93.02% <100%> (+0.29%) 0 <0> (ø) ⬇️
...ozilla/telemetry/glean/private/StringMetricType.kt 96.87% <0%> (+0.1%) 13% <0%> (ø) ⬇️

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 51dfd6d...efef236. Read the comment docs.

Copy link
Contributor

@mdboom mdboom left a comment

Choose a reason for hiding this comment

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

Is there a way to write a test for this?

@badboy
Copy link
Member Author

badboy commented Dec 4, 2019

There is! Let me do that.

@badboy
Copy link
Member Author

badboy commented Dec 4, 2019

Looks like it currently already retries: https://github.com/mozilla/glean/blob/master/glean-core/android/src/main/java/mozilla/telemetry/glean/scheduler/DeletionPingUploadWorker.kt#L188

As I understand it it's tried for a total runtime of 10 minutes (unless force-stopped I guess). Just makes it a bit harder to test.
I might just consider on Swift then, where we don't have this automatic retry.

@badboy badboy removed the blocked Blocked pull requests and issues label Dec 5, 2019
@badboy badboy requested a review from mdboom December 5, 2019 12:56
…n request ping

No new ping will be generated.
It will only sent a previously-failed ping, if any.
@badboy badboy changed the title On init and if upload is disabled, see if we need to resend a deletion request ping On init and if upload is disabled, see if we need to resend a de… Dec 5, 2019
@badboy badboy merged commit 5f850d1 into master Dec 5, 2019
@badboy badboy deleted the retry-del-req branch December 5, 2019 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants