Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Issue 2862453002: Add metrics for certificate report uploads (Closed)

Created:
3 years, 7 months ago by meacer
Modified:
3 years, 7 months ago
CC:
chromium-reviews, grt+watch_chromium.org, timvolodine, vakh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add metrics for certificate report uploads When sending certificate reports, we suspect that some content filters, firewalls and captive portals delay the response indefinitely without sending back any response. Certificate uploads rely on a response to be received in order to decide whether to retry uploading the report, so this breaks those assumptions. This CL adds a histogram to understand how often this happens. In particular, a difference between submitted reports and the sum of failed and successful reports will indicate that some reports simply get lost. The histogram also provides insight about how often queued reports are dropped, which will help us fine tune the queue size and report time-to-live. A question that came up while discussing this histogram was whether it would be useful since UMA uploads can also be blocked in a similar way. The answer seems to be yes, as UMA retries metrics uploads with a different frequency, and it persists metrics uploads whereas cert reports are not persisted. BUG=682933 Review-Url: https://codereview.chromium.org/2862453002 Cr-Commit-Position: refs/heads/master@{#469883} Committed: https://chromium.googlesource.com/chromium/src/+/19c49d0f04233c3a406d8171eddbe6209362ade5

Patch Set 1 #

Patch Set 2 : Browser tests #

Patch Set 3 : histograms.xml #

Total comments: 15

Patch Set 4 : Rebase and address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -3 lines) Patch
M chrome/browser/safe_browsing/certificate_reporting_service.h View 1 2 3 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service.cc View 1 2 3 7 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc View 1 2 3 17 chunks +67 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service_test_utils.h View 1 2 3 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service_test_utils.cc View 1 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc View 1 2 3 19 chunks +79 lines, -2 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
meacer
jialiul, estark: PTAL? We discussed this during enamel sync, but I think there might still ...
3 years, 7 months ago (2017-05-04 23:43:10 UTC) #8
meacer
-estark@google +estark@chromium
3 years, 7 months ago (2017-05-04 23:43:32 UTC) #10
Jialiu Lin
LGTM https://codereview.chromium.org/2862453002/diff/40001/chrome/browser/safe_browsing/certificate_reporting_service.h File chrome/browser/safe_browsing/certificate_reporting_service.h (right): https://codereview.chromium.org/2862453002/diff/40001/chrome/browser/safe_browsing/certificate_reporting_service.h#newcode60 chrome/browser/safe_browsing/certificate_reporting_service.h:60: enum UMAEvent { nit: how about "ReportOutcome"? "UMAEvent" ...
3 years, 7 months ago (2017-05-05 00:25:43 UTC) #11
estark
lgtm with nits and a question: can you remind me (and/or document somewhere if it ...
3 years, 7 months ago (2017-05-05 16:21:14 UTC) #12
meacer
Thanks, PTAL? https://codereview.chromium.org/2862453002/diff/40001/chrome/browser/safe_browsing/certificate_reporting_service.h File chrome/browser/safe_browsing/certificate_reporting_service.h (right): https://codereview.chromium.org/2862453002/diff/40001/chrome/browser/safe_browsing/certificate_reporting_service.h#newcode60 chrome/browser/safe_browsing/certificate_reporting_service.h:60: enum UMAEvent { On 2017/05/05 00:25:43, Jialiu ...
3 years, 7 months ago (2017-05-05 19:24:20 UTC) #13
meacer
> can you remind me (and/or document somewhere if it isn't already) how we ensure ...
3 years, 7 months ago (2017-05-05 19:25:13 UTC) #14
Jialiu Lin
Thanks! LGTM
3 years, 7 months ago (2017-05-05 20:12:38 UTC) #15
meacer
isherman: Can you PTAL at tools/metrics? Thanks.
3 years, 7 months ago (2017-05-05 21:23:55 UTC) #17
Ilya Sherman
Metrics LGTM, thanks.
3 years, 7 months ago (2017-05-05 22:43:33 UTC) #18
estark
lgtm
3 years, 7 months ago (2017-05-05 22:49:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2862453002/60001
3 years, 7 months ago (2017-05-05 22:55:14 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/419893)
3 years, 7 months ago (2017-05-06 00:00:30 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2862453002/60001
3 years, 7 months ago (2017-05-06 00:03:23 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/19c49d0f04233c3a406d8171eddbe6209362ade5
3 years, 7 months ago (2017-05-06 19:22:00 UTC) #28
Avi (use Gerrit)
On 2017/05/06 19:22:00, commit-bot: I haz the power wrote: > Committed patchset #4 (id:60001) as ...
3 years, 7 months ago (2017-05-06 22:37:29 UTC) #29
Avi (use Gerrit)
On 2017/05/06 22:37:29, Avi (ping after 24h) wrote: > On 2017/05/06 19:22:00, commit-bot: I haz ...
3 years, 7 months ago (2017-05-06 23:16:12 UTC) #30
Avi (use Gerrit)
On 2017/05/06 23:16:12, Avi (ping after 24h) wrote: > On 2017/05/06 22:37:29, Avi (ping after ...
3 years, 7 months ago (2017-05-06 23:24:42 UTC) #31
Avi (use Gerrit)
3 years, 7 months ago (2017-05-07 17:00:47 UTC) #32
Message was sent while issue was closed.
On 2017/05/06 23:24:42, Avi (ping after 24h) wrote:
> On 2017/05/06 23:16:12, Avi (ping after 24h) wrote:
> > On 2017/05/06 22:37:29, Avi (ping after 24h) wrote:
> > > On 2017/05/06 19:22:00, commit-bot: I haz the power wrote:
> > > > Committed patchset #4 (id:60001) as
> > > >
> > >
> >
>
https://chromium.googlesource.com/chromium/src/+/19c49d0f04233c3a406d8171eddb...
> > > 
> > > This breaks on multiple bots; reverting in
> > > https://codereview.chromium.org/2861323002
> > 
> > Fails on
> >
>
https://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%2...
> >
>
https://build.chromium.org/p/chromium.win/builders/Win7%20%2832%29%20Tests/bu...
> >
>
https://build.chromium.org/p/chromium.memory/builders/Linux%20MSan%20Tests/bu...
> 
> FYI it seems flaky; it's not a consistent failure, just all over the place.

Reverted.

Powered by Google App Engine
This is Rietveld 408576698