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

Issue 2163833003: Logdog for logcats (Closed)

Created:
4 years, 5 months ago by nicholaslin
Modified:
4 years, 4 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add logdog_butler cipd package to every swarming gtest_test on android tryservers (linux_android_rel_ng, android_n5x_swarming_rel). Add wrapper around android test runner for swarming tasks. This wrapper calls logdog to stream logcats after the completion of the python executable calling test_runner. Adding device serials to every line of logcat logs. Sample of unified logcats: https://luci-logdog.appspot.com/v/?s=chromium%2Fswarming%2F301f0f97eea1a511%2Flogcats%2F%2B%2Ffile:_b_swarm_slave_w_ioVXQmGw_logcats BUG=448050 Committed: https://crrev.com/3dbe50ffaca641ea962d385e2ac9ac0bec75fbbb Cr-Commit-Position: refs/heads/master@{#411530}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Move logs to luci-logdog-dev #

Patch Set 3 : Reduce logs namespace #

Patch Set 4 : Comment out service-account-json until production #

Patch Set 5 : Change logdog parameters #

Patch Set 6 : Try new test runner format #

Total comments: 4

Patch Set 7 : Add wrapper to test runner, delete old comments #

Patch Set 8 : Fix gn file #

Patch Set 9 : Update packages, update git revision for cipd package #

Patch Set 10 : Update logdog revision + test_runner_wrapper for stream name support #

Total comments: 29

Patch Set 11 : Address comments #

Patch Set 12 : Fix mb.py #

Patch Set 13 : Address comments cont. #

Total comments: 27

Patch Set 14 : Address comments part 3 #

Total comments: 26

Patch Set 15 : Address comments part 4 #

Patch Set 16 : Fix viewable link in logdog wrapper #

Patch Set 17 : Merge master into branch #

Patch Set 18 : Fix logdog wrapper call command #

Patch Set 19 : Fix logdog live stream #

Patch Set 20 : Move from dev to production #

Total comments: 2

Patch Set 21 : Update chromium.android.json #

Total comments: 5

Patch Set 22 : Address comments 5 #

Total comments: 1

Patch Set 23 : Move logging arguments #

Patch Set 24 : Add exception of failed phones #

Patch Set 25 : Update json files to include links #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2026 lines, -45 lines) Patch
M build/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M build/android/pylib/local/device/local_device_environment.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 1 chunk +9 lines, -0 lines 0 comments Download
A build/android/test_wrapper/logdog_wrapper.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +66 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.android.json 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 73 chunks +1293 lines, -28 lines 0 comments Download
M testing/buildbot/chromium.linux.json 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 51 chunks +643 lines, -14 lines 0 comments Download
M tools/mb/mb.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +14 lines, -3 lines 0 comments Download

Messages

Total messages: 66 (33 generated)
nicholaslin
Here is an updated CL at adding unified logcats for android swarming tasks using logdog. ...
4 years, 5 months ago (2016-07-20 03:04:14 UTC) #2
ghost stip (do not use)
https://codereview.chromium.org/2163833003/diff/100001/build/android/pylib/local/device/local_device_environment.py File build/android/pylib/local/device/local_device_environment.py (right): https://codereview.chromium.org/2163833003/diff/100001/build/android/pylib/local/device/local_device_environment.py#newcode155 build/android/pylib/local/device/local_device_environment.py:155: url = 'https://luci-logdog-dev.appspot.com/v/?s=chromium%2F{0}%2F%2B%2F{1}'.format(url_prefix, url_suffix) 80 chars, and are we ...
4 years, 5 months ago (2016-07-20 22:24:23 UTC) #3
nicholaslin
Updated this CL to include a wrapper which contains all logdog logic. The only change ...
4 years, 5 months ago (2016-07-23 01:23:21 UTC) #4
nicholaslin
PTAL.
4 years, 4 months ago (2016-07-26 21:28:15 UTC) #11
ghost stip (do not use)
https://codereview.chromium.org/2163833003/diff/180001/build/android/pylib/local/device/local_device_environment.py File build/android/pylib/local/device/local_device_environment.py (right): https://codereview.chromium.org/2163833003/diff/180001/build/android/pylib/local/device/local_device_environment.py#newcode192 build/android/pylib/local/device/local_device_environment.py:192: add_device_args = ['sed', '-i', '-e', rename to add_device_cmd https://codereview.chromium.org/2163833003/diff/180001/build/android/test_wrapper/test_runner_wrapper.py ...
4 years, 4 months ago (2016-07-27 01:14:17 UTC) #12
ghost stip (do not use)
https://codereview.chromium.org/2163833003/diff/180001/build/android/pylib/local/device/local_device_environment.py File build/android/pylib/local/device/local_device_environment.py (right): https://codereview.chromium.org/2163833003/diff/180001/build/android/pylib/local/device/local_device_environment.py#newcode192 build/android/pylib/local/device/local_device_environment.py:192: add_device_args = ['sed', '-i', '-e', rename to add_device_cmd https://codereview.chromium.org/2163833003/diff/180001/build/android/test_wrapper/test_runner_wrapper.py ...
4 years, 4 months ago (2016-07-27 01:14:18 UTC) #13
nicholaslin
ptal. https://codereview.chromium.org/2163833003/diff/180001/build/android/pylib/local/device/local_device_environment.py File build/android/pylib/local/device/local_device_environment.py (right): https://codereview.chromium.org/2163833003/diff/180001/build/android/pylib/local/device/local_device_environment.py#newcode192 build/android/pylib/local/device/local_device_environment.py:192: add_device_args = ['sed', '-i', '-e', On 2016/07/27 01:14:17, ...
4 years, 4 months ago (2016-07-27 19:08:07 UTC) #14
jbudorick
https://codereview.chromium.org/2163833003/diff/240001/build/android/BUILD.gn File build/android/BUILD.gn (right): https://codereview.chromium.org/2163833003/diff/240001/build/android/BUILD.gn#newcode116 build/android/BUILD.gn:116: "//build/android/test_wrapper/test_runner_wrapper.py", nit: since this is in //build/android, this should ...
4 years, 4 months ago (2016-07-29 00:52:40 UTC) #15
ghost stip (do not use)
almost there. john's comments plus these: https://codereview.chromium.org/2163833003/diff/180001/build/android/test_wrapper/test_runner_wrapper.py File build/android/test_wrapper/test_runner_wrapper.py (right): https://codereview.chromium.org/2163833003/diff/180001/build/android/test_wrapper/test_runner_wrapper.py#newcode15 build/android/test_wrapper/test_runner_wrapper.py:15: parser.add_argument('--test-runner-command', On 2016/07/27 ...
4 years, 4 months ago (2016-07-29 01:09:08 UTC) #16
nicholaslin
ptal https://codereview.chromium.org/2163833003/diff/240001/build/android/BUILD.gn File build/android/BUILD.gn (right): https://codereview.chromium.org/2163833003/diff/240001/build/android/BUILD.gn#newcode116 build/android/BUILD.gn:116: "//build/android/test_wrapper/test_runner_wrapper.py", On 2016/07/29 00:52:39, jbudorick wrote: > nit: ...
4 years, 4 months ago (2016-07-29 20:50:20 UTC) #18
ghost stip (do not use)
ever so close... https://codereview.chromium.org/2163833003/diff/280001/build/android/pylib/local/device/local_device_environment.py File build/android/pylib/local/device/local_device_environment.py (right): https://codereview.chromium.org/2163833003/diff/280001/build/android/pylib/local/device/local_device_environment.py#newcode12 build/android/pylib/local/device/local_device_environment.py:12: import fileinput nit: sort all system ...
4 years, 4 months ago (2016-07-29 21:56:40 UTC) #19
dnj
https://codereview.chromium.org/2163833003/diff/280001/build/android/test_wrapper/logdog_wrapper.py File build/android/test_wrapper/logdog_wrapper.py (right): https://codereview.chromium.org/2163833003/diff/280001/build/android/test_wrapper/logdog_wrapper.py#newcode23 build/android/test_wrapper/logdog_wrapper.py:23: default='luci-logdog.appspot.com', Please use "services-dot-luci-logdog.appspot.com" as the default. The "services" ...
4 years, 4 months ago (2016-07-29 22:35:35 UTC) #20
nicholaslin
ptal. https://codereview.chromium.org/2163833003/diff/280001/build/android/pylib/local/device/local_device_environment.py File build/android/pylib/local/device/local_device_environment.py (right): https://codereview.chromium.org/2163833003/diff/280001/build/android/pylib/local/device/local_device_environment.py#newcode12 build/android/pylib/local/device/local_device_environment.py:12: import fileinput On 2016/07/29 21:56:40, stip wrote: > ...
4 years, 4 months ago (2016-07-29 23:54:06 UTC) #21
dnj
https://codereview.chromium.org/2163833003/diff/280001/build/android/test_wrapper/logdog_wrapper.py File build/android/test_wrapper/logdog_wrapper.py (right): https://codereview.chromium.org/2163833003/diff/280001/build/android/test_wrapper/logdog_wrapper.py#newcode23 build/android/test_wrapper/logdog_wrapper.py:23: default='luci-logdog.appspot.com', On 2016/07/29 23:54:06, nicholaslin wrote: > On 2016/07/29 ...
4 years, 4 months ago (2016-07-30 15:47:48 UTC) #22
nicholaslin
https://codereview.chromium.org/2163833003/diff/280001/build/android/test_wrapper/logdog_wrapper.py File build/android/test_wrapper/logdog_wrapper.py (right): https://codereview.chromium.org/2163833003/diff/280001/build/android/test_wrapper/logdog_wrapper.py#newcode23 build/android/test_wrapper/logdog_wrapper.py:23: default='luci-logdog.appspot.com', On 2016/07/30 15:47:48, dnj wrote: > On 2016/07/29 ...
4 years, 4 months ago (2016-08-02 22:05:13 UTC) #23
ghost stip (do not use)
lgtm from my side. I don't have a strong preference about moving the cred specification. ...
4 years, 4 months ago (2016-08-04 23:46:48 UTC) #25
Vadim Sh.
I'm not happy about the duplication in *.json files, but stip@ assured me there'll be ...
4 years, 4 months ago (2016-08-05 21:41:48 UTC) #26
ghost stip (do not use)
M-A, Dirk had some concerns that this breaks idempotency. While sending data to another web ...
4 years, 4 months ago (2016-08-08 21:08:39 UTC) #28
M-A Ruel
On 2016/08/08 21:08:39, stip wrote: > M-A, Dirk had some concerns that this breaks idempotency. ...
4 years, 4 months ago (2016-08-08 21:12:36 UTC) #29
Dirk Pranke
On 2016/08/08 21:12:36, M-A Ruel wrote: > On 2016/08/08 21:08:39, stip wrote: > > M-A, ...
4 years, 4 months ago (2016-08-08 22:01:57 UTC) #30
M-A Ruel
On 2016/08/08 22:01:57, Dirk Pranke wrote: > M-A, do you have thoughts on the latter ...
4 years, 4 months ago (2016-08-09 00:27:42 UTC) #31
Dirk Pranke
On 2016/08/09 00:27:42, M-A Ruel wrote: > On 2016/08/08 22:01:57, Dirk Pranke wrote: > > ...
4 years, 4 months ago (2016-08-09 01:01:48 UTC) #32
M-A Ruel
On 2016/08/09 01:01:48, Dirk Pranke wrote: > On 2016/08/09 00:27:42, M-A Ruel wrote: > > ...
4 years, 4 months ago (2016-08-09 01:38:20 UTC) #33
nicholaslin
dpranke@, jbudorick@ ptal https://codereview.chromium.org/2163833003/diff/400001/build/android/test_wrapper/logdog_wrapper.py File build/android/test_wrapper/logdog_wrapper.py (right): https://codereview.chromium.org/2163833003/diff/400001/build/android/test_wrapper/logdog_wrapper.py#newcode51 build/android/test_wrapper/logdog_wrapper.py:51: url = CreateUrl('luci-logdog.appspot.com', args.project, args.prefix, On ...
4 years, 4 months ago (2016-08-09 17:32:20 UTC) #34
Dirk Pranke
I really don't like having to specify these things via the swarming spec, because it's ...
4 years, 4 months ago (2016-08-10 00:25:24 UTC) #35
jbudorick
https://codereview.chromium.org/2163833003/diff/420001/build/android/pylib/local/device/local_device_environment.py File build/android/pylib/local/device/local_device_environment.py (right): https://codereview.chromium.org/2163833003/diff/420001/build/android/pylib/local/device/local_device_environment.py#newcode194 build/android/pylib/local/device/local_device_environment.py:194: sys.stdout.write('Device(%s) %s' % (m.adb.GetDeviceSerial(), line)) Why is this writing ...
4 years, 4 months ago (2016-08-10 00:54:39 UTC) #36
nicholaslin
ptal https://codereview.chromium.org/2163833003/diff/420001/build/android/pylib/local/device/local_device_environment.py File build/android/pylib/local/device/local_device_environment.py (right): https://codereview.chromium.org/2163833003/diff/420001/build/android/pylib/local/device/local_device_environment.py#newcode194 build/android/pylib/local/device/local_device_environment.py:194: sys.stdout.write('Device(%s) %s' % (m.adb.GetDeviceSerial(), line)) On 2016/08/10 00:54:39, ...
4 years, 4 months ago (2016-08-10 16:40:35 UTC) #37
jbudorick
build/android/ lgtm w/ nit https://codereview.chromium.org/2163833003/diff/440001/build/android/test_wrapper/logdog_wrapper.py File build/android/test_wrapper/logdog_wrapper.py (right): https://codereview.chromium.org/2163833003/diff/440001/build/android/test_wrapper/logdog_wrapper.py#newcode53 build/android/test_wrapper/logdog_wrapper.py:53: logging.basicConfig(level=logging.INFO) nit: Do this immediately ...
4 years, 4 months ago (2016-08-10 16:47:05 UTC) #38
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/2163833003/500001
4 years, 4 months ago (2016-08-12 02:13:58 UTC) #60
commit-bot: I haz the power
Committed patchset #25 (id:500001)
4 years, 4 months ago (2016-08-12 02:56:59 UTC) #62
commit-bot: I haz the power
Patchset 25 (id:??) landed as https://crrev.com/3dbe50ffaca641ea962d385e2ac9ac0bec75fbbb Cr-Commit-Position: refs/heads/master@{#411530}
4 years, 4 months ago (2016-08-12 02:59:45 UTC) #64
kolos1
A revert of this CL (patchset #25 id:500001) has been created in https://codereview.chromium.org/2240853002/ by kolos@chromium.org. ...
4 years, 4 months ago (2016-08-12 15:48:46 UTC) #65
xidachen
4 years, 4 months ago (2016-08-12 16:35:01 UTC) #66
Message was sent while issue was closed.
A revert of this CL (patchset #25 id:500001) has been created in
https://codereview.chromium.org/2243903002/ by xidachen@chromium.org.

The reason for reverting is: As mentioned here:
https://bugs.chromium.org/p/chromium/issues/detail?id=637213

This CL seems to cause failure to this bot:
https://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/3....

Powered by Google App Engine
This is Rietveld 408576698