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

Issue 1340603002: DeviceUtils: Make Install and PushChangedFiles respect instance retries / timeout (Closed)

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

Description

DeviceUtils: Make Install and PushChangedFiles respect instance retries / timeout If you create a DeviceUtils with default_retries=1, then all methods should have retries=1 as the default value for the parameter. Before this change, Install*, PushChangedFiles, and Reboot would retry twice regardless of the constructor's default_retries value. BUG= Committed: https://crrev.com/fbe71fac40444fcf4b25493ec1e0ab3e06975d3e Cr-Commit-Position: refs/heads/master@{#348832}

Patch Set 1 #

Total comments: 2

Patch Set 2 : apply to reboot #

Total comments: 2

Patch Set 3 : min->max #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -17 lines) Patch
M build/android/devil/android/decorators.py View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M build/android/devil/android/decorators_test.py View 2 chunks +11 lines, -0 lines 0 comments Download
M build/android/devil/android/device_utils.py View 1 2 4 chunks +8 lines, -15 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (8 generated)
agrieve
I was hitting this in incremental_install.py, where when Install was failing, it was retrying when ...
5 years, 3 months ago (2015-09-11 13:56:26 UTC) #2
jbudorick
https://codereview.chromium.org/1340603002/diff/1/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1340603002/diff/1/build/android/devil/android/device_utils.py#newcode490 build/android/devil/android/device_utils.py:490: @decorators.WithTimeoutAndRetriesDefaults( Reboot has the same problem. We should probably ...
5 years, 3 months ago (2015-09-11 14:00:56 UTC) #4
jbudorick
lgtm
5 years, 3 months ago (2015-09-11 15:29:52 UTC) #5
agrieve
https://codereview.chromium.org/1340603002/diff/1/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1340603002/diff/1/build/android/devil/android/device_utils.py#newcode490 build/android/devil/android/device_utils.py:490: @decorators.WithTimeoutAndRetriesDefaults( On 2015/09/11 14:00:56, jbudorick wrote: > Reboot has ...
5 years, 3 months ago (2015-09-11 15:44:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1340603002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1340603002/20001
5 years, 3 months ago (2015-09-11 15:45:05 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/67712)
5 years, 3 months ago (2015-09-11 18:47:11 UTC) #10
perezju
Could you write a more detailed description in the commit message? I still don't understand ...
5 years, 3 months ago (2015-09-14 08:27:38 UTC) #11
agrieve
On 2015/09/14 08:27:38, perezju wrote: > Could you write a more detailed description in the ...
5 years, 3 months ago (2015-09-14 14:34:53 UTC) #12
perezju
On 2015/09/14 14:34:53, agrieve wrote: > On 2015/09/14 08:27:38, perezju wrote: > > Could you ...
5 years, 3 months ago (2015-09-14 15:56:36 UTC) #13
agrieve
On 2015/09/14 15:56:36, perezju wrote: > On 2015/09/14 14:34:53, agrieve wrote: > > On 2015/09/14 ...
5 years, 3 months ago (2015-09-14 15:57:48 UTC) #14
jbudorick
On 2015/09/14 at 15:56:36, perezju wrote: > On 2015/09/14 14:34:53, agrieve wrote: > > On ...
5 years, 3 months ago (2015-09-14 15:57:55 UTC) #15
perezju
On 2015/09/14 15:57:48, agrieve wrote: > On 2015/09/14 15:56:36, perezju wrote: > > On 2015/09/14 ...
5 years, 3 months ago (2015-09-14 16:01:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1340603002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1340603002/20001
5 years, 3 months ago (2015-09-14 19:02:44 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/68565)
5 years, 3 months ago (2015-09-14 22:59:30 UTC) #20
jbudorick
https://codereview.chromium.org/1340603002/diff/20001/build/android/devil/android/decorators.py File build/android/devil/android/decorators.py (right): https://codereview.chromium.org/1340603002/diff/20001/build/android/devil/android/decorators.py#newcode142 build/android/devil/android/decorators.py:142: ret = min(min_default_timeout, ret) er, this should be max(min_default_timeout, ...
5 years, 3 months ago (2015-09-14 23:22:52 UTC) #21
agrieve
https://codereview.chromium.org/1340603002/diff/20001/build/android/devil/android/decorators.py File build/android/devil/android/decorators.py (right): https://codereview.chromium.org/1340603002/diff/20001/build/android/devil/android/decorators.py#newcode142 build/android/devil/android/decorators.py:142: ret = min(min_default_timeout, ret) On 2015/09/14 23:22:52, jbudorick wrote: ...
5 years, 3 months ago (2015-09-15 00:53:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1340603002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1340603002/40001
5 years, 3 months ago (2015-09-15 00:54:33 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-15 03:36:31 UTC) #26
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/fbe71fac40444fcf4b25493ec1e0ab3e06975d3e Cr-Commit-Position: refs/heads/master@{#348832}
5 years, 3 months ago (2015-09-15 03:37:04 UTC) #27
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:42:24 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fbe71fac40444fcf4b25493ec1e0ab3e06975d3e
Cr-Commit-Position: refs/heads/master@{#348832}

Powered by Google App Engine
This is Rietveld 408576698