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

Issue 1148873007: Fix last_devices to be quieter, and improve device affinity. (Closed)

Created:
5 years, 7 months ago by luqui
Modified:
4 years, 6 months ago
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

Fix last_devices to be quieter, and improve device affinity. Now we keep track of the number of builds a device has been offline for, and when it hits 2 we send an email. This will prevent a lot of false positives. We now clear the list of known devices whenever we detect a new one so we don't go on reporting the same old missing device forever. We assume an engineer has tended to it whenever there is an unseen device. Also replaced the device affinity calculation with a new round-robin hashing scheme that will be more stable as the list of devices changes. BUG=470211, 481783, 517572

Patch Set 1 #

Total comments: 24

Patch Set 2 : Review comments #

Patch Set 3 : Improve docs #

Patch Set 4 : Improve diagram #

Total comments: 8

Patch Set 5 : Improve comments #

Total comments: 2

Patch Set 6 : Nearest-available hash conflict resolution #

Patch Set 7 : Sort devices again for reboot-stability #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -87 lines) Patch
M build/android/buildbot/bb_device_status_check.py View 1 2 3 4 2 chunks +72 lines, -52 lines 0 comments Download
M build/android/pylib/device/device_list.py View 1 1 chunk +12 lines, -7 lines 0 comments Download
M build/android/pylib/perf/setup.py View 1 2 3 4 5 6 5 chunks +60 lines, -17 lines 0 comments Download
M build/android/pylib/perf/test_runner.py View 1 2 3 4 5 3 chunks +12 lines, -11 lines 0 comments Download

Messages

Total messages: 27 (4 generated)
luqui
ptal
5 years, 7 months ago (2015-05-23 00:27:52 UTC) #2
jbudorick
https://codereview.chromium.org/1148873007/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/1148873007/diff/1/build/android/buildbot/bb_device_status_check.py#newcode116 build/android/buildbot/bb_device_status_check.py:116: def CheckForMissingDevices(options, adb_online_devices): rebase, I changed this function a ...
5 years, 7 months ago (2015-05-23 01:06:49 UTC) #3
luqui
+simonhatch, while I was in this code trying to improve device_status_check, I noticed that the ...
5 years, 6 months ago (2015-05-27 20:01:12 UTC) #5
navabi
https://codereview.chromium.org/1148873007/diff/60001/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/1148873007/diff/60001/build/android/buildbot/bb_device_status_check.py#newcode128 build/android/buildbot/bb_device_status_check.py:128: # detected It looks like it denotes a count ...
5 years, 6 months ago (2015-05-27 23:36:20 UTC) #7
luqui
https://codereview.chromium.org/1148873007/diff/60001/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/1148873007/diff/60001/build/android/buildbot/bb_device_status_check.py#newcode128 build/android/buildbot/bb_device_status_check.py:128: # detected On 2015/05/27 23:36:19, navabi wrote: > It ...
5 years, 6 months ago (2015-05-28 00:59:54 UTC) #8
navabi
> The extra algorithmic complexity of this hashing solution decreases the > complexity of the ...
5 years, 6 months ago (2015-05-28 01:19:39 UTC) #9
shatch
https://codereview.chromium.org/1148873007/diff/1/build/android/pylib/perf/test_runner.py File build/android/pylib/perf/test_runner.py (right): https://codereview.chromium.org/1148873007/diff/1/build/android/pylib/perf/test_runner.py#newcode68 build/android/pylib/perf/test_runner.py:68: NUM_DEVICE_AFFINITIES = 8 On 2015/05/27 20:01:12, luqui wrote: > ...
5 years, 6 months ago (2015-05-28 13:59:18 UTC) #10
jbudorick
https://codereview.chromium.org/1148873007/diff/1/build/android/pylib/perf/test_runner.py File build/android/pylib/perf/test_runner.py (right): https://codereview.chromium.org/1148873007/diff/1/build/android/pylib/perf/test_runner.py#newcode68 build/android/pylib/perf/test_runner.py:68: NUM_DEVICE_AFFINITIES = 8 On 2015/05/27 at 20:01:12, luqui wrote: ...
5 years, 6 months ago (2015-05-28 14:03:17 UTC) #11
luqui
On 2015/05/28 13:59:18, shatch wrote: > https://codereview.chromium.org/1148873007/diff/1/build/android/pylib/perf/test_runner.py > File build/android/pylib/perf/test_runner.py (right): > > https://codereview.chromium.org/1148873007/diff/1/build/android/pylib/perf/test_runner.py#newcode68 > ...
5 years, 6 months ago (2015-06-03 01:13:00 UTC) #12
navabi
> Well, I thought about that, and the way I perceive it, properly accounting for ...
5 years, 6 months ago (2015-06-03 01:36:30 UTC) #13
jbudorick
On 2015/06/03 at 01:36:30, navabi wrote: > > Well, I thought about that, and the ...
5 years, 6 months ago (2015-06-03 03:47:56 UTC) #14
jbudorick
On 2015/06/03 at 03:47:56, jbudorick wrote: > On 2015/06/03 at 01:36:30, navabi wrote: > > ...
5 years, 6 months ago (2015-06-03 03:49:08 UTC) #15
shatch
On 2015/06/03 03:47:56, jbudorick wrote: > On 2015/06/03 at 01:36:30, navabi wrote: > > > ...
5 years, 6 months ago (2015-06-03 14:53:34 UTC) #16
navabi
> > If you don't mind, Luke, I'd like to mull this over a bit ...
5 years, 6 months ago (2015-06-03 22:24:15 UTC) #17
navabi
One more thing to think about... https://codereview.chromium.org/1148873007/diff/80001/build/android/pylib/perf/setup.py File build/android/pylib/perf/setup.py (right): https://codereview.chromium.org/1148873007/diff/80001/build/android/pylib/perf/setup.py#newcode94 build/android/pylib/perf/setup.py:94: devices = sorted(devices) ...
5 years, 6 months ago (2015-06-04 22:30:12 UTC) #18
luqui
Here's the next-available collision strategy. Monte-carlo shows that this adds an extra 0.3 reassignments per ...
5 years, 6 months ago (2015-06-12 02:43:36 UTC) #19
navabi
> Will we have to pay every time the host is rebooted? (I.e. do they ...
5 years, 6 months ago (2015-06-12 18:13:02 UTC) #20
luqui
How are people feeling about this? I reinstated sorting because of reboots. Stability is pretty ...
5 years, 6 months ago (2015-06-16 19:12:44 UTC) #21
navabi
On 2015/06/16 19:12:44, luqui wrote: > How are people feeling about this? > > I ...
5 years, 6 months ago (2015-06-16 20:24:47 UTC) #22
shatch
On 2015/06/16 20:24:47, navabi wrote: > On 2015/06/16 19:12:44, luqui wrote: > > How are ...
5 years, 6 months ago (2015-06-22 13:32:56 UTC) #23
navabi
> Sorry for taking so long to get back. I'm good with this, seems simpler. ...
5 years, 6 months ago (2015-06-22 21:13:54 UTC) #24
jbudorick
On 2015/06/22 at 21:13:54, navabi wrote: > > Sorry for taking so long to get ...
5 years, 6 months ago (2015-06-22 21:25:15 UTC) #25
navabi
5 years, 6 months ago (2015-06-23 19:12:38 UTC) #26
> +1 to using lsusb

I spoke with luqui@ about using lsub and he likes this too. Please also change
the description to reflect this.

i.e. replace "Also replaced the device affinity calculation with a new
round-robin hashing scheme that will be more stable as the list of devices
changes."

Powered by Google App Engine
This is Rietveld 408576698