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

Issue 1260293009: make version of ts_mon compatible with appengine (Closed)

Created:
5 years, 4 months ago by jshu
Modified:
5 years, 4 months ago
Reviewers:
Sergey Berezin, agable
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

create a version of ts_mon compatible with appengine apps update older third_party repositories (apiclient, oauth2client, six, etc) send monitoring metrics from som fix bug in alerts-history BUG= Committed: https://chromium.googlesource.com/infra/infra/+/65322c283b681fc75ea3c0be07ef0f37a6f4fea0

Patch Set 1 #

Patch Set 2 : make ts_mon nondependent on monacq and add new module to som #

Patch Set 3 : clean up code #

Patch Set 4 : fix more import errors #

Patch Set 5 : customize config.py for appengine #

Patch Set 6 : fix url formatting #

Patch Set 7 : symlink the proto files #

Patch Set 8 : update credentials, update ts_mon tests, take out deprecated monitors #

Patch Set 9 : successfully posts metrics to test endpoint on chrome-infra-loadtest.appspot.com #

Patch Set 10 : fix alerts-history bug and push metrics to pcon #

Patch Set 11 : set base_url automatically #

Patch Set 12 : clean up code #

Total comments: 47

Patch Set 13 : move helper functions to utils.py #

Patch Set 14 : fix circular imports #

Patch Set 15 : clean up interface.py #

Patch Set 16 : set correct metric and target fields #

Total comments: 12

Patch Set 17 : it works!!!! #

Patch Set 18 : it works!!! #

Patch Set 19 : take out sending metrics from gae_ts_mon #

Patch Set 20 : take out changes from the other cl #

Patch Set 21 : merge #

Patch Set 22 : move chromium_build_logs third party updates to different cl #

Patch Set 23 : take out deleted utils methods #

Total comments: 20

Patch Set 24 : fix nits #

Patch Set 25 : fix broken symlink #

Patch Set 26 : fix init imports in gae_ts_mon #

Patch Set 27 : hash instance_id so values aren #

Patch Set 28 : fix failing tests due to import/namespace problems #

Patch Set 29 : fix remaining test problems #

Total comments: 1

Patch Set 30 : make sure registered metrics are actually registered #

Patch Set 31 : start adding tests to gae_ts_mon #

Patch Set 32 : fix test coverage on importerrors #

Patch Set 33 : make all remaining files use monacq.proto #

Patch Set 34 : add noncululativedistribution metric to ts_mon imports #

Unified diffs Side-by-side diffs Delta from patch set Stats (+633 lines, -1858 lines) Patch
M appengine/sheriff_o_matic/.expect_tests.cfg View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +1 line, -0 lines 0 comments Download
A appengine/sheriff_o_matic/cron.yaml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
A appengine/sheriff_o_matic/dispatch.yaml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +13 lines, -0 lines 0 comments Download
M appengine/sheriff_o_matic/makefile View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -2 lines 0 comments Download
M appengine/sheriff_o_matic/ts_alerts.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +0 lines, -2 lines 0 comments Download
A appengine_module/gae_ts_mon/README View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +58 lines, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +33 lines, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/common View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/config.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 28 29 30 31 32 1 chunk +58 lines, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/interface.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +129 lines, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/monacq View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/monitoring.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +52 lines, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/monitoring.yaml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +28 lines, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/monitors.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +98 lines, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/protobuf View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -0 lines 0 comments Download
A + appengine_module/gae_ts_mon/test/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 0 chunks +-1 lines, --1 lines 0 comments Download
A + appengine_module/gae_ts_mon/test/config_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 0 chunks +-1 lines, --1 lines 0 comments Download
A + appengine_module/gae_ts_mon/test/interface_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 31 0 chunks +-1 lines, --1 lines 0 comments Download
A + appengine_module/gae_ts_mon/test/monitors_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 31 0 chunks +-1 lines, --1 lines 0 comments Download
A appengine_module/gae_ts_mon/third_party/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +11 lines, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/third_party/apiclient View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/third_party/googleapiclient View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/third_party/httplib2 View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/third_party/oauth2client View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/third_party/six.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -0 lines 0 comments Download
A appengine_module/gae_ts_mon/third_party/uritemplate View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M infra_libs/http_metrics.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +0 lines, -15 lines 0 comments Download
M infra_libs/httplib2_utils.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -1 line 0 comments Download
M infra_libs/instrumented_requests.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -1 line 0 comments Download
M infra_libs/logs/logs.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -2 lines 0 comments Download
M infra_libs/test/httplib2_utils_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -1 line 0 comments Download
M infra_libs/test/instrumented_requests_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -1 line 0 comments Download
M infra_libs/ts_mon/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 2 chunks +29 lines, -29 lines 0 comments Download
A infra_libs/ts_mon/common/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra_libs/ts_mon/common/distribution.py View 1 2 3 4 5 6 7 8 9 10 11 12 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra_libs/ts_mon/common/errors.py View 1 2 3 4 5 6 7 8 9 10 11 12 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra_libs/ts_mon/common/helpers.py View 1 2 3 4 5 6 7 8 9 10 11 12 0 chunks +-1 lines, --1 lines 0 comments Download
A infra_libs/ts_mon/common/http_metrics.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +22 lines, -0 lines 0 comments Download
A + infra_libs/ts_mon/common/metrics.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +18 lines, -5 lines 0 comments Download
A + infra_libs/ts_mon/common/standard_metrics.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +7 lines, -3 lines 0 comments Download
A + infra_libs/ts_mon/common/targets.py View 1 2 3 4 5 6 7 8 9 10 11 12 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra_libs/ts_mon/common/test/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra_libs/ts_mon/common/test/distribution_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +4 lines, -1 line 0 comments Download
A + infra_libs/ts_mon/common/test/errors_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +4 lines, -1 line 0 comments Download
A + infra_libs/ts_mon/common/test/helpers_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +6 lines, -2 lines 0 comments Download
A + infra_libs/ts_mon/common/test/metrics_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +14 lines, -7 lines 0 comments Download
A + infra_libs/ts_mon/common/test/standard_metrics_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +4 lines, -2 lines 0 comments Download
A + infra_libs/ts_mon/common/test/targets_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +6 lines, -3 lines 0 comments Download
M infra_libs/ts_mon/config.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +3 lines, -2 lines 0 comments Download
D infra_libs/ts_mon/distribution.py View 1 2 3 1 chunk +0 lines, -124 lines 0 comments Download
D infra_libs/ts_mon/errors.py View 1 2 3 1 chunk +0 lines, -106 lines 0 comments Download
D infra_libs/ts_mon/helpers.py View 1 2 3 1 chunk +0 lines, -53 lines 0 comments Download
M infra_libs/ts_mon/interface.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 2 chunks +7 lines, -6 lines 0 comments Download
M infra_libs/ts_mon/metrics.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -434 lines 0 comments Download
M infra_libs/ts_mon/monitors.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +1 line, -2 lines 0 comments Download
D infra_libs/ts_mon/standard_metrics.py View 1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -15 lines 0 comments Download
D infra_libs/ts_mon/targets.py View 1 2 3 1 chunk +0 lines, -88 lines 0 comments Download
M infra_libs/ts_mon/test/config_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 6 chunks +6 lines, -6 lines 0 comments Download
M infra_libs/ts_mon/test/distribution_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -164 lines 0 comments Download
M infra_libs/ts_mon/test/errors_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -55 lines 0 comments Download
M infra_libs/ts_mon/test/helpers_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -66 lines 0 comments Download
M infra_libs/ts_mon/test/interface_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M infra_libs/ts_mon/test/metrics_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -615 lines 0 comments Download
D infra_libs/ts_mon/test/standard_metrics_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -17 lines 0 comments Download
M infra_libs/ts_mon/test/stubs.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M infra_libs/ts_mon/test/targets_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -35 lines 0 comments Download

Messages

Total messages: 47 (18 generated)
jshu
wish there was a way for codereview to know when a file is copied over, ...
5 years, 4 months ago (2015-08-06 23:32:02 UTC) #2
jshu
This is sends metrics to monarch that are visible on pcon. Ready for review. However ...
5 years, 4 months ago (2015-08-10 20:08:27 UTC) #3
agable
A few top-level organizational comments which I think will make the rest of the CL ...
5 years, 4 months ago (2015-08-10 22:23:58 UTC) #4
agable
Here's some more in-depth comments, interspersed with some more layout stuff and some random nits. ...
5 years, 4 months ago (2015-08-10 23:04:39 UTC) #5
jshu
https://codereview.chromium.org/1260293009/diff/220001/appengine/chromium_build_logs/third_party/apiclient/__init__.py File appengine/chromium_build_logs/third_party/apiclient/__init__.py (right): https://codereview.chromium.org/1260293009/diff/220001/appengine/chromium_build_logs/third_party/apiclient/__init__.py#newcode1 appengine/chromium_build_logs/third_party/apiclient/__init__.py:1: """Retain apiclient as an alias for googleapiclient.""" On 2015/08/10 ...
5 years, 4 months ago (2015-08-11 21:57:18 UTC) #6
agable
https://codereview.chromium.org/1260293009/diff/220001/appengine/chromium_build_logs/third_party/apiclient/__init__.py File appengine/chromium_build_logs/third_party/apiclient/__init__.py (right): https://codereview.chromium.org/1260293009/diff/220001/appengine/chromium_build_logs/third_party/apiclient/__init__.py#newcode1 appengine/chromium_build_logs/third_party/apiclient/__init__.py:1: """Retain apiclient as an alias for googleapiclient.""" On 2015/08/11 ...
5 years, 4 months ago (2015-08-12 22:18:09 UTC) #7
jshu
okay so this actually works. YAY. the gae_ts_mon module should be free standing now and ...
5 years, 4 months ago (2015-08-14 20:47:57 UTC) #8
agable
+sergey for one final sanity check. Sergey: PTAL at the files in appengine_module/gae_ts_mon (especially monitoring.py) ...
5 years, 4 months ago (2015-08-14 21:21:00 UTC) #10
jshu
On 2015/08/14 at 21:21:00, agable wrote: > +sergey for one final sanity check. > > ...
5 years, 4 months ago (2015-08-14 21:33:48 UTC) #11
Sergey Berezin
On 2015/08/14 21:33:48, jshu wrote: > On 2015/08/14 at 21:21:00, agable wrote: > > +sergey ...
5 years, 4 months ago (2015-08-17 21:31:10 UTC) #12
agable
On 2015/08/17 at 21:31:10, sergeyberezin wrote: > On 2015/08/14 21:33:48, jshu wrote: > > On ...
5 years, 4 months ago (2015-08-17 21:33:09 UTC) #13
jshu
cleaned up this CL :) so this should all work except gae_ts_mon can't be imported ...
5 years, 4 months ago (2015-08-17 23:02:25 UTC) #14
Sergey Berezin
LGTM + a bunch of nits. Also - empty test files? :-) https://codereview.chromium.org/1260293009/diff/440001/appengine_module/gae_ts_mon/README File appengine_module/gae_ts_mon/README ...
5 years, 4 months ago (2015-08-18 00:40:38 UTC) #15
jshu
https://codereview.chromium.org/1260293009/diff/440001/appengine_module/gae_ts_mon/config.py File appengine_module/gae_ts_mon/config.py (right): https://codereview.chromium.org/1260293009/diff/440001/appengine_module/gae_ts_mon/config.py#newcode43 appengine_module/gae_ts_mon/config.py:43: if endpoint.startswith('pubsub://'): On 2015/08/18 at 00:40:37, Sergey Berezin wrote: ...
5 years, 4 months ago (2015-08-18 01:15:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260293009/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260293009/460001
5 years, 4 months ago (2015-08-18 01:22:06 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: infra_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_presubmit/builds/714)
5 years, 4 months ago (2015-08-18 01:25:36 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260293009/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260293009/480001
5 years, 4 months ago (2015-08-18 17:13:28 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: infra_tester on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_tester/builds/2752)
5 years, 4 months ago (2015-08-18 17:17:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260293009/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260293009/500001
5 years, 4 months ago (2015-08-18 17:23:00 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: infra_tester on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_tester/builds/2754)
5 years, 4 months ago (2015-08-18 17:27:01 UTC) #31
Sergey Berezin
A few more comments https://codereview.chromium.org/1260293009/diff/440001/appengine_module/gae_ts_mon/config.py File appengine_module/gae_ts_mon/config.py (right): https://codereview.chromium.org/1260293009/diff/440001/appengine_module/gae_ts_mon/config.py#newcode43 appengine_module/gae_ts_mon/config.py:43: if endpoint.startswith('pubsub://'): On 2015/08/18 01:15:55, ...
5 years, 4 months ago (2015-08-18 17:31:38 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260293009/520001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260293009/520001
5 years, 4 months ago (2015-08-18 18:51:02 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: infra_tester on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_tester/builds/2757)
5 years, 4 months ago (2015-08-18 18:55:25 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260293009/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260293009/560001
5 years, 4 months ago (2015-08-19 01:09:44 UTC) #39
agable
https://codereview.chromium.org/1260293009/diff/560001/infra_libs/ts_mon/interface.py File infra_libs/ts_mon/interface.py (right): https://codereview.chromium.org/1260293009/diff/560001/infra_libs/ts_mon/interface.py#newcode121 infra_libs/ts_mon/interface.py:121: return I don't think this does what we want: ...
5 years, 4 months ago (2015-08-19 01:14:42 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: infra_tester on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_tester/builds/2759)
5 years, 4 months ago (2015-08-19 01:15:44 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260293009/620001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260293009/620001
5 years, 4 months ago (2015-08-19 22:44:23 UTC) #45
commit-bot: I haz the power
Committed patchset #32 (id:620001) as https://chromium.googlesource.com/infra/infra/+/65322c283b681fc75ea3c0be07ef0f37a6f4fea0
5 years, 4 months ago (2015-08-19 22:49:21 UTC) #46
jshu
5 years, 4 months ago (2015-08-20 00:23:34 UTC) #47
please lgtm!

https://codereview.chromium.org/1260293009/diff/440001/appengine_module/gae_t...
File appengine_module/gae_ts_mon/config.py (right):

https://codereview.chromium.org/1260293009/diff/440001/appengine_module/gae_t...
appengine_module/gae_ts_mon/config.py:43: if endpoint.startswith('pubsub://'):
On 2015/08/18 at 17:31:38, Sergey Berezin wrote:
> On 2015/08/18 01:15:55, jshu wrote:
> > On 2015/08/18 at 00:40:37, Sergey Berezin wrote:
> > > nit: I feel this logic should belong in ts_mon itself. It'll work now, but
if
> > we switch to yet another future service later, we'll have to modify it in
> > several places.
> > > 
> > > If you plan to land it as is, please file a bug against Infra-Monitoring
to
> > fix it later.
> > 
> > thanks for drawing attention this, going to take out that if statement since
I
> > set the endpoint in gae_ts_mon myself in another file so there is no point
in
> > checking it. the logic is in ts_mon itself, it was just duplicated here
because
> > they don't inherit form each other. but if i understand correctly someone
should
> > update it since we are now only using pubsub? not sure if I would be the
right
> > person to file the bug since I don't know much about that project and it has
> > little to do with gae_ts_mon.
> 
> Filed http://crbug.com/522135
> 
> The danger of duplicating code is that it becomes inconsistent with time. We
are using pubsub exclusively right now, but I don't know what will happen, say,
a year from now.

Those two files are completely different.

https://codereview.chromium.org/1260293009/diff/440001/appengine_module/gae_t...
File appengine_module/gae_ts_mon/interface.py (right):

https://codereview.chromium.org/1260293009/diff/440001/appengine_module/gae_t...
appengine_module/gae_ts_mon/interface.py:14:
gae_ts_mon.initialize(job_name='job', instance='12d2e1',
On 2015/08/18 at 17:31:38, Sergey Berezin wrote:
> On 2015/08/18 01:15:55, jshu wrote:
> > On 2015/08/18 at 00:40:38, Sergey Berezin wrote:
> > > nit: is the instance value supposed to be a constant? Or should it be a
real
> > instance ID?
> > 
> > should be a real instance id, which is an int. fixed.
> 
> Two comments then:
> 
> 1. In README, let's use <instance id>, or the actual GAE code:
modules.get_current_instance_id(). Otherwise the example is confusing.
> 
> 2. According to https://cloud.google.com/appengine/docs/python/modules/ GAE
instance IDs are unique base64-encoded strings, which likely never repeat. This
will create arbitrarily many streams in Monarch, which it's not designed to
handle. We may need to map the unique instance IDs to a small set of numbers,
e.g. to [0..#instances-1].
> 
> It's OK to land this CL like this, but please file a bug against
Infra-Monitoring to take care of this.

fixed

Powered by Google App Engine
This is Rietveld 408576698