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

Issue 12207172: Change Android retry logic - always retry 3 times. (Closed)

Created:
7 years, 10 months ago by Isaac (away)
Modified:
7 years, 10 months ago
Reviewers:
cjhopman, Yaron, frankf
CC:
chromium-reviews, klundberg+watch_chromium.org, frankf+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org
Visibility:
Public.

Description

Change Android retry logic - always retry 3 times. Android retry logic currently changes based on number of devices. This means that test runs are more flaky when only one device is attached. Change this to always retry 3 times. BUG=175653 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182420

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M build/android/pylib/base/base_test_sharder.py View 1 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Isaac (away)
7 years, 10 months ago (2013-02-14 02:58:02 UTC) #1
cjhopman
https://chromiumcodereview.appspot.com/12207172/diff/1/build/android/pylib/base/base_test_sharder.py File build/android/pylib/base/base_test_sharder.py (right): https://chromiumcodereview.appspot.com/12207172/diff/1/build/android/pylib/base/base_test_sharder.py#newcode109 build/android/pylib/base/base_test_sharder.py:109: except android_commands.errors.DeviceUnresponsiveError as e: What happens if 4 devices ...
7 years, 10 months ago (2013-02-14 03:06:34 UTC) #2
Isaac (away)
https://chromiumcodereview.appspot.com/12207172/diff/1/build/android/pylib/base/base_test_sharder.py File build/android/pylib/base/base_test_sharder.py (right): https://chromiumcodereview.appspot.com/12207172/diff/1/build/android/pylib/base/base_test_sharder.py#newcode109 build/android/pylib/base/base_test_sharder.py:109: except android_commands.errors.DeviceUnresponsiveError as e: On 2013/02/14 03:06:34, cjhopman wrote: ...
7 years, 10 months ago (2013-02-14 03:17:46 UTC) #3
frankf
https://codereview.chromium.org/12207172/diff/1/build/android/pylib/base/base_test_sharder.py File build/android/pylib/base/base_test_sharder.py (right): https://codereview.chromium.org/12207172/diff/1/build/android/pylib/base/base_test_sharder.py#newcode57 build/android/pylib/base/base_test_sharder.py:57: self.retries = 3 Do you have some data why ...
7 years, 10 months ago (2013-02-14 03:42:15 UTC) #4
Isaac (away)
https://codereview.chromium.org/12207172/diff/1/build/android/pylib/base/base_test_sharder.py File build/android/pylib/base/base_test_sharder.py (right): https://codereview.chromium.org/12207172/diff/1/build/android/pylib/base/base_test_sharder.py#newcode57 build/android/pylib/base/base_test_sharder.py:57: self.retries = 3 On 2013/02/14 03:42:15, frankf wrote: > ...
7 years, 10 months ago (2013-02-14 06:38:50 UTC) #5
frankf
lgtm, but this should be refactored soon. https://codereview.chromium.org/12207172/diff/1/build/android/pylib/base/base_test_sharder.py File build/android/pylib/base/base_test_sharder.py (right): https://codereview.chromium.org/12207172/diff/1/build/android/pylib/base/base_test_sharder.py#newcode57 build/android/pylib/base/base_test_sharder.py:57: self.retries = ...
7 years, 10 months ago (2013-02-14 06:43:48 UTC) #6
Isaac (away)
Thx for fast review. I suspect this logic is hiding a lot of test flakiness, ...
7 years, 10 months ago (2013-02-14 06:53:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ilevy@chromium.org/12207172/5002
7 years, 10 months ago (2013-02-14 08:23:36 UTC) #8
commit-bot: I haz the power
Change committed as 182420
7 years, 10 months ago (2013-02-14 08:25:13 UTC) #9
cjhopman
https://chromiumcodereview.appspot.com/12207172/diff/1/build/android/pylib/base/base_test_sharder.py File build/android/pylib/base/base_test_sharder.py (right): https://chromiumcodereview.appspot.com/12207172/diff/1/build/android/pylib/base/base_test_sharder.py#newcode109 build/android/pylib/base/base_test_sharder.py:109: except android_commands.errors.DeviceUnresponsiveError as e: On 2013/02/14 03:17:46, Isaac wrote: ...
7 years, 10 months ago (2013-02-14 15:37:07 UTC) #10
Yaron
7 years, 10 months ago (2013-02-14 16:59:27 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/12207172/diff/1/build/android/pylib/base/base...
File build/android/pylib/base/base_test_sharder.py (right):

https://codereview.chromium.org/12207172/diff/1/build/android/pylib/base/base...
build/android/pylib/base/base_test_sharder.py:57: self.retries = 3
On 2013/02/14 06:53:10, Isaac wrote:
> On 2013/02/14 06:43:48, frankf wrote:
> > Let's define it as a constant at the top of the module.
> 
> Done.

It wasn't the bot that was flaky (it only had one device). The other bots just
masked it. Min landed https://gerrit-int.chromium.org/#/c/32469/ which should
fix one issue and 147905 can continue to track the flakiness.

Powered by Google App Engine
This is Rietveld 408576698