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

Issue 1531573003: Handle multiple modifications to distribution metrics correctly. (Closed)

Created:
5 years ago by dsansome
Modified:
5 years 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

Handle multiple modifications to distribution metrics correctly. Give up trying to combine modifications into one - it's difficult with distribution metrics where you can't just sum the deltas. Instead keep a list of modifications and apply them all at once, in order. This also does away with the confusing wrapper wrapper wrapper functions. BUG= Committed: https://chromium.googlesource.com/infra/infra/+/f208d8061b8aec3db4ef0084bab03f780133042a

Patch Set 1 #

Total comments: 6

Patch Set 2 : CL comments #

Patch Set 3 : Move checks to the modify_fn #

Patch Set 4 : Oops #

Patch Set 5 : Add a missing test for coverage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -167 lines) Patch
M appengine_module/gae_ts_mon/deferred_metric_store.py View 1 2 6 chunks +9 lines, -13 lines 0 comments Download
M appengine_module/gae_ts_mon/memcache_metric_store.py View 1 2 3 4 chunks +54 lines, -74 lines 0 comments Download
M appengine_module/gae_ts_mon/test/deferred_metric_store_test.py View 2 chunks +6 lines, -3 lines 0 comments Download
M appengine_module/gae_ts_mon/test/memcache_metric_store_test.py View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M infra_libs/ts_mon/common/errors.py View 1 1 chunk +1 line, -1 line 0 comments Download
M infra_libs/ts_mon/common/metric_store.py View 1 2 4 chunks +11 lines, -21 lines 0 comments Download
M infra_libs/ts_mon/common/metrics.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M infra_libs/ts_mon/common/test/metric_store_test.py View 1 2 3 4 2 chunks +13 lines, -50 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
dsansome
I might get this right eventually...
5 years ago (2015-12-16 03:41:57 UTC) #2
Sergey Berezin
Overall good, but I have a couple of comments. https://codereview.chromium.org/1531573003/diff/1/appengine_module/gae_ts_mon/memcache_metric_store.py File appengine_module/gae_ts_mon/memcache_metric_store.py (right): https://codereview.chromium.org/1531573003/diff/1/appengine_module/gae_ts_mon/memcache_metric_store.py#newcode189 appengine_module/gae_ts_mon/memcache_metric_store.py:189: ...
5 years ago (2015-12-17 22:28:51 UTC) #3
dsansome
https://codereview.chromium.org/1531573003/diff/1/appengine_module/gae_ts_mon/memcache_metric_store.py File appengine_module/gae_ts_mon/memcache_metric_store.py (right): https://codereview.chromium.org/1531573003/diff/1/appengine_module/gae_ts_mon/memcache_metric_store.py#newcode189 appengine_module/gae_ts_mon/memcache_metric_store.py:189: assert len(modifications) > 0 On 2015/12/17 22:28:50, Sergey Berezin ...
5 years ago (2015-12-18 00:54:33 UTC) #4
Sergey Berezin
LGTM, thanks!
5 years ago (2015-12-18 01:35:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531573003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531573003/60001
5 years ago (2015-12-18 01:54:45 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Infra Linux Trusty 64 Tester on tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Infra%20Linux%20Trusty%2064%20Tester/builds/906)
5 years ago (2015-12-18 01:57:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531573003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531573003/80001
5 years ago (2015-12-18 02:03:19 UTC) #12
commit-bot: I haz the power
5 years ago (2015-12-18 02:05:55 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/infra/infra/+/f208d8061b8aec3db4ef0084bab03...

Powered by Google App Engine
This is Rietveld 408576698