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

Issue 2797043002: Add a presubmit checker for duplicated enum values in UseCounter::Feature (Closed)

Created:
3 years, 8 months ago by lunalu1
Modified:
3 years, 8 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-frames_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a presubmit checker for duplicated enum values in UseCounter::Feature BUG=577772 Review-Url: https://codereview.chromium.org/2797043002 Cr-Commit-Position: refs/heads/master@{#462591} Committed: https://chromium.googlesource.com/chromium/src/+/b84a182dfd565ca8080e0c51dd181f88a0a9452e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Codereview: nit #

Total comments: 1

Patch Set 3 : Codereview: nit #

Total comments: 4

Patch Set 4 : Nit: fix a typo in the comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -18 lines) Patch
M third_party/WebKit/Source/core/frame/PRESUBMIT.py View 1 2 3 1 chunk +15 lines, -14 lines 0 comments Download
M tools/metrics/histograms/update_histogram_enum.py View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 42 (27 generated)
lunalu1
Hi Rick, could you please take a look at the change I made in the ...
3 years, 8 months ago (2017-04-04 22:17:15 UTC) #2
lunalu1
I have verified that the checker works locally
3 years, 8 months ago (2017-04-04 22:17:33 UTC) #3
haraken
LGTM (Use R= instead of TBR= for CLs that need review.)
3 years, 8 months ago (2017-04-04 23:50:52 UTC) #9
Rick Byers
LGTM with nits, thanks! https://codereview.chromium.org/2797043002/diff/1/tools/metrics/histograms/update_histogram_enum.py File tools/metrics/histograms/update_histogram_enum.py (right): https://codereview.chromium.org/2797043002/diff/1/tools/metrics/histograms/update_histogram_enum.py#newcode41 tools/metrics/histograms/update_histogram_enum.py:41: """Returns a dictionary of enum ...
3 years, 8 months ago (2017-04-05 15:26:39 UTC) #12
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/2797043002/20001
3 years, 8 months ago (2017-04-05 19:42:49 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/403470)
3 years, 8 months ago (2017-04-05 19:55:33 UTC) #17
lunalu1
Hi dpranke, could you please owner lgtm tools/metrics/histograms/update_histogram_enum.py Thanks
3 years, 8 months ago (2017-04-06 14:02:14 UTC) #20
Dirk Pranke
lgtm https://codereview.chromium.org/2797043002/diff/20001/tools/metrics/histograms/update_histogram_enum.py File tools/metrics/histograms/update_histogram_enum.py (right): https://codereview.chromium.org/2797043002/diff/20001/tools/metrics/histograms/update_histogram_enum.py#newcode190 tools/metrics/histograms/update_histogram_enum.py:190: return False, duplicated_values Nit: if duplicated_values: return False, ...
3 years, 8 months ago (2017-04-06 15:19:38 UTC) #22
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/2797043002/40001
3 years, 8 months ago (2017-04-06 15:40:46 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/b84a182dfd565ca8080e0c51dd181f88a0a9452e
3 years, 8 months ago (2017-04-06 19:48:43 UTC) #28
Ilya Sherman
Hmm, it looks like nobody from the metrics team reviewed this CL... https://codereview.chromium.org/2797043002/diff/40001/third_party/WebKit/Source/core/frame/PRESUBMIT.py File third_party/WebKit/Source/core/frame/PRESUBMIT.py ...
3 years, 8 months ago (2017-04-13 01:12:52 UTC) #30
lunalu1
Thanks for doing this. I noticed this bug the other day but haven't got a ...
3 years, 8 months ago (2017-04-13 14:19:14 UTC) #31
lunalu1
Hi Ilya, Thank you for the comments. I made some changes to the checker. Could ...
3 years, 8 months ago (2017-04-19 22:05:28 UTC) #32
Ilya Sherman
On 2017/04/19 22:05:28, loonybear wrote: > Hi Ilya, > > Thank you for the comments. ...
3 years, 8 months ago (2017-04-19 22:29:49 UTC) #37
Ɓukasz Anforowicz
3 years, 8 months ago (2017-04-26 22:22:37 UTC) #42
Message was sent while issue was closed.
FYI - I believe that this CL broke presubmits from
tools/metrics/histograms/presubmit_bad_message_reasons.py and
tools/metrics/histograms/presubmit_scheme_histograms.py.  I am proposing a fix
at https://codereview.chromium.org/2841823007.

Powered by Google App Engine
This is Rietveld 408576698