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

Issue 1079113002: [Android] Add a "quiet" flag so KillAll doesn't complain if no processes killed (Closed)

Created:
5 years, 8 months ago by perezju
Modified:
5 years, 8 months ago
Reviewers:
jbudorick, Sami
CC:
chromium-reviews, telemetry-reviews_chromium.org, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Add a "quiet" flag so KillAll doesn't complain if no processes killed This makes it easier to write what turns out to be the most common usage of this method: ensure that some processes are not running, and don't care if none is found. Also helps to distinguish an adb/device error (which should trigger a retry), from cases where no processes to kill are found (where the caller doesn't need/want to retry). Clients that benefit from this flag are also updated. BUG=475845 Committed: https://crrev.com/84436c8ee6194ac0a782535b07e8643c7a768847 Cr-Commit-Position: refs/heads/master@{#325217}

Patch Set 1 #

Patch Set 2 : implement as a quiet=True flag #

Total comments: 2

Patch Set 3 : git rebase master #

Patch Set 4 : update pylib/screenshot.py #

Total comments: 1

Patch Set 5 : added device_signal.py #

Patch Set 6 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -67 lines) Patch
M build/android/provision_devices.py View 1 1 chunk +1 line, -8 lines 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 3 4 3 chunks +18 lines, -11 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 3 4 3 chunks +14 lines, -22 lines 0 comments Download
A build/android/pylib/device_signal.py View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/local_device_gtest_run.py View 1 1 chunk +1 line, -6 lines 0 comments Download
M build/android/pylib/gtest/test_package_exe.py View 1 1 chunk +1 line, -9 lines 0 comments Download
M build/android/pylib/screenshot.py View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/android_platform_backend.py View 1 1 chunk +4 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
perezju
skyostil@chromium.org: Please review changes in telemetry jbudorick@chromium.org: Please review changes in pylib
5 years, 8 months ago (2015-04-10 15:57:09 UTC) #2
jbudorick
I wasn't sure when this would happen, so I had raywilliams submit this: https://codereview.chromium.org/1074003002/ it ...
5 years, 8 months ago (2015-04-10 16:02:34 UTC) #3
perezju
On 2015/04/10 16:02:34, jbudorick wrote: > I wasn't sure when this would happen, so I ...
5 years, 8 months ago (2015-04-10 16:10:22 UTC) #4
jbudorick
build/android/ lgtm https://codereview.chromium.org/1079113002/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1079113002/diff/20001/build/android/pylib/device/device_utils.py#newcode614 build/android/pylib/device/device_utils.py:614: # TODO(perezu): use timeout_retry.WaitFor s/perezu/perezju :)
5 years, 8 months ago (2015-04-10 16:14:26 UTC) #5
Sami
lgtm.
5 years, 8 months ago (2015-04-10 18:06:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1079113002/60001
5 years, 8 months ago (2015-04-13 12:52:54 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/46168)
5 years, 8 months ago (2015-04-13 18:36:15 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1079113002/60001
5 years, 8 months ago (2015-04-14 10:19:39 UTC) #13
jbudorick
On 2015/04/13 18:36:15, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 8 months ago (2015-04-14 12:59:49 UTC) #14
jbudorick
https://codereview.chromium.org/1079113002/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1079113002/diff/60001/build/android/pylib/device/device_utils.py#newcode577 build/android/pylib/device/device_utils.py:577: def KillAll(self, process_name, signum=signal.SIGKILL, as_root=False, (here)
5 years, 8 months ago (2015-04-14 13:00:15 UTC) #15
perezju
On 2015/04/14 13:00:15, jbudorick wrote: > https://codereview.chromium.org/1079113002/diff/60001/build/android/pylib/device/device_utils.py > File build/android/pylib/device/device_utils.py (right): > > https://codereview.chromium.org/1079113002/diff/60001/build/android/pylib/device/device_utils.py#newcode577 > ...
5 years, 8 months ago (2015-04-14 13:08:10 UTC) #16
jbudorick
On 2015/04/14 13:08:10, perezju wrote: > On 2015/04/14 13:00:15, jbudorick wrote: > > > https://codereview.chromium.org/1079113002/diff/60001/build/android/pylib/device/device_utils.py ...
5 years, 8 months ago (2015-04-14 13:08:53 UTC) #17
perezju
ptal
5 years, 8 months ago (2015-04-14 14:06:25 UTC) #19
jbudorick
lgtm
5 years, 8 months ago (2015-04-14 16:58:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1079113002/100001
5 years, 8 months ago (2015-04-15 07:39:59 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 8 months ago (2015-04-15 10:19:31 UTC) #24
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 10:20:23 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/84436c8ee6194ac0a782535b07e8643c7a768847
Cr-Commit-Position: refs/heads/master@{#325217}

Powered by Google App Engine
This is Rietveld 408576698