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

Issue 2894833005: Make histogram_suffixes separators and enum labels required. (Closed)

Created:
3 years, 7 months ago by Ilya Sherman
Modified:
3 years, 7 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make histogram_suffixes separators and enum labels required. It's somewhat common for metric authors to specify the wrong separator when using a histogram_suffixes element, as the default is underscore, whereas dot is common. This CL makes it harder to use the wrong separator by making the attribute required. Relatedly, this CL makes enum labels required (fixing one enum that lacked labels), and makes name attributes always required. BUG=724311 TEST=git cl format R=asvitkine@chromium.org Review-Url: https://codereview.chromium.org/2894833005 Cr-Commit-Position: refs/heads/master@{#473425} Committed: https://chromium.googlesource.com/chromium/src/+/1db4a0bab64a90b7b6f2999f571b725fa813ea35

Patch Set 1 #

Patch Set 2 : Rebase, and improve the error reporting logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -116 lines) Patch
M tools/metrics/actions/print_style.py View 2 chunks +8 lines, -0 lines 0 comments Download
M tools/metrics/common/pretty_print_xml.py View 1 2 chunks +24 lines, -4 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 chunks +9 lines, -12 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 96 chunks +105 lines, -100 lines 0 comments Download
M tools/metrics/histograms/print_style.py View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
Ilya Sherman
I've split off the part of [ https://codereview.chromium.org/2890013004/ ] that shouldn't require any server-side changes, ...
3 years, 7 months ago (2017-05-19 22:32:16 UTC) #7
Alexei Svitkine (slow)
lgtm
3 years, 7 months ago (2017-05-19 22:38:28 UTC) #8
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/2894833005/20001
3 years, 7 months ago (2017-05-19 22:47:28 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/298856)
3 years, 7 months ago (2017-05-20 03:08:22 UTC) #13
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/2894833005/20001
3 years, 7 months ago (2017-05-20 07:14:26 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-20 08:02:18 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1db4a0bab64a90b7b6f2999f571b...

Powered by Google App Engine
This is Rietveld 408576698