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

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

Created:
6 years ago by mcasas
Modified:
6 years ago
Reviewers:
Paweł Hajdan Jr.
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

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 Committed: https://crrev.com/2ece5270462346b1ac3bccd3bfe5e68d024b98b5 Cr-Commit-Position: refs/heads/master@{#306388}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : comments #

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

Messages

Total messages: 11 (3 generated)
mcasas
phajdan.jr@ Low Prio Review, PTAL
6 years ago (2014-11-28 19:42:11 UTC) #2
Paweł Hajdan Jr.
https://codereview.chromium.org/766713004/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/766713004/diff/20001/PRESUBMIT.py#newcode378 PRESUBMIT.py:378: touched_histograms.append([found.group(1), f, line_num]); nit: Remove the semicolon https://codereview.chromium.org/766713004/diff/20001/PRESUBMIT.py#newcode392 PRESUBMIT.py:392: ...
6 years ago (2014-12-01 11:59:07 UTC) #4
mcasas
PTAL https://codereview.chromium.org/766713004/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/766713004/diff/20001/PRESUBMIT.py#newcode378 PRESUBMIT.py:378: touched_histograms.append([found.group(1), f, line_num]); On 2014/12/01 11:59:07, Paweł Hajdan ...
6 years ago (2014-12-01 19:41:37 UTC) #5
Paweł Hajdan Jr.
LGTM
6 years ago (2014-12-02 10:29:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766713004/40001
6 years ago (2014-12-02 15:03:15 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001)
6 years ago (2014-12-02 15:37:32 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2ece5270462346b1ac3bccd3bfe5e68d024b98b5 Cr-Commit-Position: refs/heads/master@{#306388}
6 years ago (2014-12-02 15:38:18 UTC) #10
Alexei Svitkine (slow)
5 years, 11 months ago (2015-01-09 15:39:20 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:40001) has been created in
https://codereview.chromium.org/841323002/ by asvitkine@chromium.org.

The reason for reverting is: Produces false positive warnings on histograms
using histogram_suffixes, see:

https://code.google.com/p/chromium/issues/detail?id=445265.

Powered by Google App Engine
This is Rietveld 408576698