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

Issue 62953024: [Telemetry] Refactor common Android cleanup functions. (Closed)

Created:
7 years, 1 month ago by Primiano Tucci (use gerrit)
Modified:
7 years ago
Reviewers:
bulach, tonyg
CC:
chromium-reviews, craigdh+watch_chromium.org, chrome-speed-team+watch_google.com, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, telemetry+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

[Telemetry] Refactor common Android test harness functions. Refactoring common cleanup code required by both android_browser_finder.py and perf/setup.py and moving it into pyblib/utils/test_environment.py. Also, this change avoids killing twice the adb server when running in a bot environment, where the adb restart is already invoked by the bot steps. BUG=268450 R=bulach@chromium.org,tonyg@chromium.org NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237667

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Always adb root + docstring #

Patch Set 3 : Rebase + deflake RestartAdbdOnDevice #

Total comments: 14

Patch Set 4 : Rename + move wait-for-device + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -30 lines) Patch
M build/android/pylib/android_commands.py View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M build/android/pylib/perf/setup.py View 1 2 3 2 chunks +3 lines, -28 lines 0 comments Download
A build/android/pylib/utils/test_environment.py View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Primiano Tucci (use gerrit)
7 years, 1 month ago (2013-11-14 19:30:38 UTC) #1
tonyg
lgtm, but please wait for marcus https://codereview.chromium.org/62953024/diff/50001/build/android/pylib/utils/test_environment.py File build/android/pylib/utils/test_environment.py (right): https://codereview.chromium.org/62953024/diff/50001/build/android/pylib/utils/test_environment.py#newcode24 build/android/pylib/utils/test_environment.py:24: def CleanupPendingProcesses(restart_adb_as_root): Please ...
7 years, 1 month ago (2013-11-15 05:45:10 UTC) #2
bulach
lgtm, thanks! I'm looking forward to all our "workarounds" to be happening at this single ...
7 years, 1 month ago (2013-11-15 09:36:07 UTC) #3
Primiano Tucci (use gerrit)
Thanks for the comments, see the reply inline. Unfortunately I'm OOO in MTV right now ...
7 years, 1 month ago (2013-11-19 18:13:02 UTC) #4
Primiano Tucci (use gerrit)
Question: I got a bit lost after last recent changes. Do we still want this ...
7 years ago (2013-11-25 12:52:50 UTC) #5
tonyg
Thanks for getting back to this. I really want this change! Just a few more ...
7 years ago (2013-11-25 15:46:33 UTC) #6
Primiano Tucci (use gerrit)
bulach: Can you please take a look to Tony's question about sharding? https://codereview.chromium.org/62953024/diff/220002/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py ...
7 years ago (2013-11-25 17:26:51 UTC) #7
bulach
lgtm, thanks for bringing up the StartAdbServer issue! one suggestion below and a few other ...
7 years ago (2013-11-27 12:10:53 UTC) #8
Primiano Tucci (use gerrit)
https://codereview.chromium.org/62953024/diff/220002/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/62953024/diff/220002/build/android/pylib/android_commands.py#newcode468 build/android/pylib/android_commands.py:468: self._adb.SendCommand('wait-for-device') > at that point, pgrep would have said ...
7 years ago (2013-11-27 15:14:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/62953024/420001
7 years ago (2013-11-27 15:14:58 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=229519
7 years ago (2013-11-27 16:20:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/62953024/420001
7 years ago (2013-11-27 16:21:55 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=229574
7 years ago (2013-11-27 22:10:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/62953024/420001
7 years ago (2013-11-28 01:17:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/62953024/420001
7 years ago (2013-11-28 01:59:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/62953024/420001
7 years ago (2013-11-28 02:20:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/62953024/420001
7 years ago (2013-11-28 02:27:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/62953024/420001
7 years ago (2013-11-28 02:58:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/62953024/420001
7 years ago (2013-11-28 03:28:30 UTC) #19
commit-bot: I haz the power
7 years ago (2013-11-28 03:50:28 UTC) #20
Message was sent while issue was closed.
Change committed as 237667

Powered by Google App Engine
This is Rietveld 408576698