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

Issue 2739203003: Measure how often DNS hostnames aren't in preferred name form. (Closed)

Created:
3 years, 9 months ago by palmer
Modified:
3 years, 9 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, Julia Tuttle, mgersh, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Measure how often DNS hostnames aren't in preferred name form. As https://tools.ietf.org/html/rfc7719#section-2 explains, "host name" has a storied history with many interpretations. Measure how often the hostnames passed to the resolver aren't in the preferred name form [A-Za-z0-9-]+ (with support for _ as well), to see where the DNS resolver code can deprecate and remove support for names not in that form. BUG=695474 Review-Url: https://codereview.chromium.org/2739203003 Cr-Commit-Position: refs/heads/master@{#459212} Committed: https://chromium.googlesource.com/chromium/src/+/6170ab968eae5c5f683cdb88fa09e96b95f2b588

Patch Set 1 #

Total comments: 1

Patch Set 2 : We need to allow leading _. #

Total comments: 1

Patch Set 3 : Change the behavior to reporting via UMA; add documentation. #

Total comments: 8

Patch Set 4 : Rebase and respond to comments. #

Total comments: 1

Patch Set 5 : Record the UMA immediately after label validation in the for (;;) and before other checks. #

Total comments: 2

Patch Set 6 : Comment on when the histogram will be recorded. #

Patch Set 7 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -1 line) Patch
M net/dns/dns_util.h View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M net/dns/dns_util.cc View 1 2 3 4 5 6 4 chunks +29 lines, -1 line 0 comments Download
M net/dns/dns_util_unittest.cc View 1 2 3 2 chunks +48 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (26 generated)
palmer
PTAL. This CL causes the bug to stop happening, allows IDN to still work (it's ...
3 years, 9 months ago (2017-03-10 03:26:28 UTC) #4
Randy Smith (Not in Mondays)
+juliatuttle, mgersh FTI. Glancing at the RFCs, it looks to me as if _ isn't ...
3 years, 9 months ago (2017-03-10 16:50:24 UTC) #7
Ryan Sleevi
I'm sorry to do this, but Not LGTM until we've file an Intent to Deprecate, ...
3 years, 9 months ago (2017-03-10 17:46:23 UTC) #9
Ryan Sleevi
https://codereview.chromium.org/2739203003/diff/1/net/dns/dns_util.cc File net/dns/dns_util.cc (right): https://codereview.chromium.org/2739203003/diff/1/net/dns/dns_util.cc#newcode43 net/dns/dns_util.cc:43: } Newline between 42 & 43, plus a " ...
3 years, 9 months ago (2017-03-10 17:48:09 UTC) #10
palmer
> net/dns/dns_util.cc:43: } > Newline between 42 & 43, plus a " //namespace" following. Done. ...
3 years, 9 months ago (2017-03-10 21:10:37 UTC) #11
Randy Smith (Not in Mondays)
On 2017/03/10 21:10:37, palmer wrote: > > net/dns/dns_util.cc:43: } > > Newline between 42 & ...
3 years, 9 months ago (2017-03-10 21:47:59 UTC) #16
palmer
Oh yeah, I'll add some comments to that effect.
3 years, 9 months ago (2017-03-10 22:04:19 UTC) #17
eroman
https://codereview.chromium.org/2739203003/diff/20001/net/dns/dns_util.cc File net/dns/dns_util.cc (right): https://codereview.chromium.org/2739203003/diff/20001/net/dns/dns_util.cc#newcode35 net/dns/dns_util.cc:35: if (!isalnum(c) && c != '_') { Drive-by comment: ...
3 years, 9 months ago (2017-03-14 16:07:49 UTC) #19
palmer
OK, PTAL: I've changed the code to report validation failure via UMA instead of to ...
3 years, 9 months ago (2017-03-22 00:03:52 UTC) #20
Ryan Sleevi
LGTM % updated commit description explaining what and why :) https://codereview.chromium.org/2739203003/diff/40001/net/dns/dns_util.cc File net/dns/dns_util.cc (right): https://codereview.chromium.org/2739203003/diff/40001/net/dns/dns_util.cc#newcode73 ...
3 years, 9 months ago (2017-03-22 00:16:08 UTC) #21
palmer
https://codereview.chromium.org/2739203003/diff/40001/net/dns/dns_util.cc File net/dns/dns_util.cc (right): https://codereview.chromium.org/2739203003/diff/40001/net/dns/dns_util.cc#newcode73 net/dns/dns_util.cc:73: UMA_HISTOGRAM_BOOLEAN("Net.ValidDNSName", valid_name); > Do you want to record this ...
3 years, 9 months ago (2017-03-22 01:03:34 UTC) #24
palmer
+mpearson for histograms.xml.
3 years, 9 months ago (2017-03-22 01:03:49 UTC) #25
Ryan Sleevi
https://codereview.chromium.org/2739203003/diff/60001/net/dns/dns_util.cc File net/dns/dns_util.cc (right): https://codereview.chromium.org/2739203003/diff/60001/net/dns/dns_util.cc#newcode83 net/dns/dns_util.cc:83: UMA_HISTOGRAM_BOOLEAN("Net.ValidDNSName", valid_name); Did you mean to move this down ...
3 years, 9 months ago (2017-03-22 01:10:46 UTC) #28
Ryan Sleevi
I made a stab at updating the description, but if you're unhappy with it, feel ...
3 years, 9 months ago (2017-03-22 01:15:17 UTC) #30
palmer
> Did you mean to move this down further? That is, to after line 90 ...
3 years, 9 months ago (2017-03-22 01:25:11 UTC) #32
palmer
On 2017/03/22 at 01:15:17, rsleevi wrote: > I made a stab at updating the description, ...
3 years, 9 months ago (2017-03-22 01:26:13 UTC) #33
Ryan Sleevi
Still LGTM
3 years, 9 months ago (2017-03-22 01:44:25 UTC) #34
Mark P
histograms.xml lgtm modulo comment --mark https://codereview.chromium.org/2739203003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2739203003/diff/80001/tools/metrics/histograms/histograms.xml#newcode38023 tools/metrics/histograms/histograms.xml:38023: + and remove support ...
3 years, 9 months ago (2017-03-22 22:08:04 UTC) #35
palmer
https://codereview.chromium.org/2739203003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2739203003/diff/80001/tools/metrics/histograms/histograms.xml#newcode38023 tools/metrics/histograms/histograms.xml:38023: + and remove support for arbitrary bytes in DNS ...
3 years, 9 months ago (2017-03-22 22:37:57 UTC) #36
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/2739203003/100001
3 years, 9 months ago (2017-03-22 22:41:05 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/334032)
3 years, 9 months ago (2017-03-23 01:19:42 UTC) #41
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/2739203003/100001
3 years, 9 months ago (2017-03-23 01:22:58 UTC) #43
commit-bot: I haz the power
Failed to apply patch for net/dns/dns_util.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-23 02:27:40 UTC) #45
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/2739203003/120001
3 years, 9 months ago (2017-03-23 19:45:28 UTC) #48
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 20:58:53 UTC) #51
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/6170ab968eae5c5f683cdb88fa09...

Powered by Google App Engine
This is Rietveld 408576698