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

Issue 2265673002: Add LogDog / annotation protobuf support. (Closed)

Created:
4 years, 4 months ago by dnj
Modified:
4 years, 2 months ago
Reviewers:
estaab, iannucci, martiniss
CC:
chromium-reviews, infra-reviews+recipes-py_chromium.org
Base URL:
https://github.com/luci/recipes-py@step-formal-struct
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add LogDog / annotation protobuf support. Add a StreamEngine capable of representing recipe engine state by sending Milo annotation protobufs and text content through a LogDog streams. The StreamEngine is enabled when LogDog is configured in the operational arguments. When enabled, the recipe engine state will be sent as a series of incremental annotation protobuf dumps through a LogDog datagram stream. Additionally, text and log content generated by the recipe engine will be sent through LogDog as text streams. BUG=None TEST=None Committed: https://github.com/luci/recipes-py/commit/e129c96c485b33149256838d912c5f324bf59dd7

Patch Set 1 #

Total comments: 49

Patch Set 2 : Updated with comments, added test, proto 3.0.2. #

Total comments: 11

Patch Set 3 : pylint, fix comments #

Total comments: 13

Patch Set 4 : Code review comments. #

Total comments: 24

Patch Set 5 : Updated from comments, StreamEngine layout. #

Patch Set 6 : Stronger flush meta logic, moar test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2196 lines, -37 lines) Patch
M recipe_engine/arguments.proto View 1 1 chunk +19 lines, -0 lines 0 comments Download
M recipe_engine/arguments_pb2.py View 1 11 chunks +74 lines, -13 lines 0 comments Download
M recipe_engine/recipe_api.py View 1 2 3 5 chunks +9 lines, -4 lines 0 comments Download
M recipe_engine/simulation_test.py View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M recipe_engine/stream.py View 1 2 3 4 7 chunks +97 lines, -6 lines 0 comments Download
A recipe_engine/stream_logdog.py View 1 2 3 4 5 1 chunk +804 lines, -0 lines 0 comments Download
D recipe_engine/third_party/requests/requests-2.10.0.dist-info/INSTALLER View 1 1 chunk +0 lines, -1 line 0 comments Download
D recipe_engine/third_party/six/six-1.10.0.dist-info/INSTALLER View 1 1 chunk +0 lines, -1 line 0 comments Download
A recipe_engine/unittests/stream_logdog_test.py View 1 2 3 4 5 1 chunk +980 lines, -0 lines 0 comments Download
M recipe_engine/unittests/stream_test.py View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
A recipe_engine/unittests/util_test.py View 1 2 3 4 1 chunk +91 lines, -0 lines 0 comments Download
M recipe_engine/util.py View 1 2 3 4 2 chunks +90 lines, -1 line 0 comments Download
M recipe_modules/step/api.py View 1 chunk +1 line, -0 lines 0 comments Download
M recipe_modules/step/config.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M recipes.py View 1 2 3 4 2 chunks +28 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
dnj
PTAL!
4 years, 4 months ago (2016-08-19 22:29:05 UTC) #2
dnj
+iannucci@, estaab@ FYI :)
4 years, 4 months ago (2016-08-19 22:30:00 UTC) #4
martiniss
looking pretty good https://codereview.chromium.org/2265673002/diff/1/recipe_engine/stream.py File recipe_engine/stream.py (right): https://codereview.chromium.org/2265673002/diff/1/recipe_engine/stream.py#newcode29 recipe_engine/stream.py:29: import annotations_pb2 as miloproto Unneeded. https://codereview.chromium.org/2265673002/diff/1/recipe_engine/stream.py#newcode154 ...
4 years, 3 months ago (2016-09-01 21:59:48 UTC) #5
dnj
https://codereview.chromium.org/2265673002/diff/1/recipe_engine/stream.py File recipe_engine/stream.py (right): https://codereview.chromium.org/2265673002/diff/1/recipe_engine/stream.py#newcode29 recipe_engine/stream.py:29: import annotations_pb2 as miloproto On 2016/09/01 21:59:47, martiniss wrote: ...
4 years, 3 months ago (2016-09-07 17:54:58 UTC) #6
dnj
(ping)
4 years, 3 months ago (2016-09-13 22:53:55 UTC) #7
dnj
(ping again, especially before we ramp up recipe engine work :x)
4 years, 2 months ago (2016-09-26 23:17:54 UTC) #8
iannucci
On 2016/09/26 23:17:54, dnj wrote: > (ping again, especially before we ramp up recipe engine ...
4 years, 2 months ago (2016-09-27 01:24:19 UTC) #9
martiniss
https://codereview.chromium.org/2265673002/diff/20001/recipe_engine/stream_logdog.py File recipe_engine/stream_logdog.py (right): https://codereview.chromium.org/2265673002/diff/20001/recipe_engine/stream_logdog.py#newcode150 recipe_engine/stream_logdog.py:150: def _check_annotation_changed(fn): Doesn't pylint complain about this? https://codereview.chromium.org/2265673002/diff/20001/recipe_engine/stream_logdog.py#newcode302 recipe_engine/stream_logdog.py:302: ...
4 years, 2 months ago (2016-09-27 19:24:48 UTC) #10
dnj
https://codereview.chromium.org/2265673002/diff/20001/recipe_engine/stream_logdog.py File recipe_engine/stream_logdog.py (right): https://codereview.chromium.org/2265673002/diff/20001/recipe_engine/stream_logdog.py#newcode150 recipe_engine/stream_logdog.py:150: def _check_annotation_changed(fn): On 2016/09/27 19:24:48, martiniss wrote: > Doesn't ...
4 years, 2 months ago (2016-09-27 23:13:58 UTC) #11
dnj
(Pang, this is now over 1 month old)
4 years, 2 months ago (2016-09-30 16:02:02 UTC) #12
martiniss
lgtm https://codereview.chromium.org/2265673002/diff/20001/recipe_engine/stream_logdog.py File recipe_engine/stream_logdog.py (right): https://codereview.chromium.org/2265673002/diff/20001/recipe_engine/stream_logdog.py#newcode150 recipe_engine/stream_logdog.py:150: def _check_annotation_changed(fn): On 2016/09/27 at 23:13:58, dnj wrote: ...
4 years, 2 months ago (2016-09-30 20:41:44 UTC) #13
dnj
https://codereview.chromium.org/2265673002/diff/40001/recipe_engine/stream_logdog.py File recipe_engine/stream_logdog.py (right): https://codereview.chromium.org/2265673002/diff/40001/recipe_engine/stream_logdog.py#newcode135 recipe_engine/stream_logdog.py:135: def __init__(self, engine, step): On 2016/09/30 20:41:44, martiniss wrote: ...
4 years, 2 months ago (2016-09-30 22:04:39 UTC) #14
martiniss
https://codereview.chromium.org/2265673002/diff/40001/recipe_engine/stream_logdog.py File recipe_engine/stream_logdog.py (right): https://codereview.chromium.org/2265673002/diff/40001/recipe_engine/stream_logdog.py#newcode237 recipe_engine/stream_logdog.py:237: self._step.msg.other_links.add(label=name, url=url) On 2016/09/30 at 22:04:38, dnj wrote: > ...
4 years, 2 months ago (2016-10-01 02:00:36 UTC) #15
dnj
It's almost been two months since I've proposed this CL. I'll land at EOD unless ...
4 years, 2 months ago (2016-10-10 16:34:13 UTC) #16
iannucci
lgtm https://chromiumcodereview.appspot.com/2265673002/diff/60001/recipe_engine/stream.py File recipe_engine/stream.py (right): https://chromiumcodereview.appspot.com/2265673002/diff/60001/recipe_engine/stream.py#newcode113 recipe_engine/stream.py:113: self._engines = [base] + list(engines) why not `(base,) ...
4 years, 2 months ago (2016-10-10 19:05:28 UTC) #17
dnj
Updated! PTAL at the StreamEngine code. I decided to keep "ProductStreamEngine" as-is and note that ...
4 years, 2 months ago (2016-10-10 22:56:23 UTC) #18
iannucci
lgtm
4 years, 2 months ago (2016-10-10 23:49:13 UTC) #19
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/2265673002/100001
4 years, 2 months ago (2016-10-11 17:48:52 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 17:51:32 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://github.com/luci/recipes-py/commit/e129c96c485b33149256838d912c5f324bf...

Powered by Google App Engine
This is Rietveld 408576698