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

Issue 1368583005: Create metric_tool to deal with metric definitions (Closed)

Created:
5 years, 3 months ago by pgervais
Modified:
5 years, 2 months ago
Reviewers:
Sergey Berezin
CC:
chromium-reviews, infra-reviews+infra_chromium.org
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Create metric_tool to deal with metric definitions Grep Python files in search of metric definitions and print documentation when it exists. This is essentially a way to work around the current limitations of the ts_mon pipeline. BUG= Committed: https://chromium.googlesource.com/infra/infra/+/682af2dec12fa72c6eec1d9ab13d5526ad70d69a

Patch Set 1 #

Patch Set 2 : Added tests, print undocumented metrics #

Total comments: 11

Patch Set 3 : More fixes #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, --2 lines) Patch
A + infra/tools/metric_tool/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A infra/tools/metric_tool/__main__.py View 1 chunk +37 lines, -0 lines 0 comments Download
A infra/tools/metric_tool/metric_tool.py View 1 2 1 chunk +120 lines, -0 lines 0 comments Download
A + infra/tools/metric_tool/test/__init__.py View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A infra/tools/metric_tool/test/data/PLACEHOLDER View 1 1 chunk +1 line, -0 lines 0 comments Download
A infra/tools/metric_tool/test/data/metric_name_not_a_string.py View 1 1 chunk +12 lines, -0 lines 0 comments Download
A infra/tools/metric_tool/test/data/missing_descriptions.py View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A infra/tools/metric_tool/test/data/normal_case.py View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A infra/tools/metric_tool/test/data/normal_case_2.py View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A infra/tools/metric_tool/test/data/other_tests.py View 1 1 chunk +18 lines, -0 lines 0 comments Download
A infra/tools/metric_tool/test/metric_tool_test.py View 1 2 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
pgervais
ptal
5 years, 3 months ago (2015-09-25 00:16:28 UTC) #2
Sergey Berezin
Overall seems good. If you want to keep this in infra.git, let's add some tests.
5 years, 3 months ago (2015-09-25 00:31:28 UTC) #3
pgervais
Added tests and made the tool print undocumented metrics as well.
5 years, 2 months ago (2015-09-28 21:50:29 UTC) #4
Sergey Berezin
LGTM + a few minor comments. https://chromiumcodereview.appspot.com/1368583005/diff/20001/infra/tools/metric_tool/__main__.py File infra/tools/metric_tool/__main__.py (right): https://chromiumcodereview.appspot.com/1368583005/diff/20001/infra/tools/metric_tool/__main__.py#newcode9 infra/tools/metric_tool/__main__.py:9: # This file ...
5 years, 2 months ago (2015-09-29 00:01:19 UTC) #5
pgervais
https://codereview.chromium.org/1368583005/diff/20001/infra/tools/metric_tool/metric_tool.py File infra/tools/metric_tool/metric_tool.py (right): https://codereview.chromium.org/1368583005/diff/20001/infra/tools/metric_tool/metric_tool.py#newcode16 infra/tools/metric_tool/metric_tool.py:16: 'FloatMetric', 'DistributionMetric', On 2015/09/29 00:01:18, Sergey Berezin wrote: > ...
5 years, 2 months ago (2015-09-30 00:09:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368583005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368583005/40001
5 years, 2 months ago (2015-09-30 00:10:09 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: Infra Win Tester on tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Infra%20Win%20Tester/builds/324)
5 years, 2 months ago (2015-09-30 00:15:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368583005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368583005/60001
5 years, 2 months ago (2015-09-30 00:17:30 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: Infra Win Tester on tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Infra%20Win%20Tester/builds/326)
5 years, 2 months ago (2015-09-30 00:27:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368583005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368583005/60001
5 years, 2 months ago (2015-09-30 16:53:37 UTC) #18
commit-bot: I haz the power
5 years, 2 months ago (2015-09-30 16:55:30 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/infra/infra/+/682af2dec12fa72c6eec1d9ab13d5...

Powered by Google App Engine
This is Rietveld 408576698