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

Issue 885783007: Add PRESUBMIT check if modified UMA histogram name can be found (2) (Closed)

Created:
5 years, 10 months ago by mcasas
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add PRESUBMIT check if modified UMA histogram name can be found (2) This CL is an iteration of http://crrev.com/766713004, that got reverted after http://crbug.com/445265 because it could not cope correctly with structures of the type: <histogram_suffixes name="SafeBrowsingStores.SBWhiteLists" separator="."> <suffix name="CSD" label="CSD"/> <suffix name="DownloadWhitelist" label="DownloadWhitelist"/> <affected-histogram name="SB2.DatabaseKilobytes"/> </histogram_suffixes> (in particular: affected-histogram-suffixes). Limitation that should be solved now. Original description --------------------------------------------------- Add PRESUBMIT check if modified UMA histogram name can be found This Presubmit checks if some diffs affect any UMA_HISTOGRAM_* macro and, if so, checks if the histogram name is to be found in either tools/metrics/histograms/histograms.xml or in the CL diffs. Addresses the problem of someone modifying code and inadvertently forgetting a corresponding histograms.xml adaptation, that has happened in the past. BUG=434420, 445265 Committed: https://crrev.com/b7440c2829b8fae8467c110235a7aa8363644ae0 Cr-Commit-Position: refs/heads/master@{#314557}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : asvitkine@ comments #

Total comments: 8

Patch Set 3 : asvitkine@ second round of comments #

Total comments: 4

Patch Set 4 : Third round of asvitkine@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -0 lines) Patch
M PRESUBMIT.py View 1 2 3 2 chunks +64 lines, -0 lines 0 comments Download
M PRESUBMIT_test.py View 1 1 chunk +67 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
mcasas
phajdan.jr@ Low Prio Review, PTAL asvitkine@ FYI/PTAL.
5 years, 10 months ago (2015-01-30 02:36:10 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/885783007/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/885783007/diff/20001/PRESUBMIT.py#newcode361 PRESUBMIT.py:361: # Helper function to smartly try to find a ...
5 years, 10 months ago (2015-01-30 15:15:37 UTC) #4
mcasas
folks PTAL. https://codereview.chromium.org/885783007/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/885783007/diff/20001/PRESUBMIT.py#newcode361 PRESUBMIT.py:361: # Helper function to smartly try to ...
5 years, 10 months ago (2015-01-30 23:45:49 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/885783007/diff/40001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/885783007/diff/40001/PRESUBMIT.py#newcode364 PRESUBMIT.py:364: line.""" Nit: No fit into one line - e.g. ...
5 years, 10 months ago (2015-02-02 15:12:08 UTC) #6
mcasas
guys PTAL. https://codereview.chromium.org/885783007/diff/40001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/885783007/diff/40001/PRESUBMIT.py#newcode364 PRESUBMIT.py:364: line.""" On 2015/02/02 15:12:08, asvitkine (slow this ...
5 years, 10 months ago (2015-02-02 19:24:14 UTC) #7
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/885783007/diff/60001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/885783007/diff/60001/PRESUBMIT.py#newcode395 PRESUBMIT.py:395: problems = [] Nit: Move this down to ...
5 years, 10 months ago (2015-02-02 20:25:15 UTC) #8
mcasas
jochen@ OWNERS RS/PTAL. (Pawel is OOO). https://codereview.chromium.org/885783007/diff/60001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/885783007/diff/60001/PRESUBMIT.py#newcode395 PRESUBMIT.py:395: problems = [] ...
5 years, 10 months ago (2015-02-02 20:30:57 UTC) #10
jochen (gone - plz use gerrit)
lgtm
5 years, 10 months ago (2015-02-04 12:35:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885783007/80001
5 years, 10 months ago (2015-02-04 14:17:07 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 10 months ago (2015-02-04 14:52:50 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 14:53:43 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b7440c2829b8fae8467c110235a7aa8363644ae0
Cr-Commit-Position: refs/heads/master@{#314557}

Powered by Google App Engine
This is Rietveld 408576698