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

Issue 2045043002: Allow multiple devices on bisects hosts (Closed)

Created:
4 years, 6 months ago by Ziqi Xiong
Modified:
4 years, 4 months ago
Reviewers:
RobertoCN, dtu
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/build.git@master
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Allow multiple devices on bisects hosts Right now, when an android device connected to a bisect linux host goes offline, we still send bisects to that host, and the bisects fail. So the device needs to be fixed with extremely urgent priority. This CL aims to allow multiple devices to be connected to a linux host and if a device failed, the job would be retried with a device that is still working. Committed: https://chromium.googlesource.com/chromium/tools/build/+/ad6bb0da9b1a53daae0f47c8d806ffe988c46415

Patch Set 1 #

Total comments: 5

Patch Set 2 : Keep track of devices already tested to avoid retrying failed devices #

Total comments: 2

Patch Set 3 : Move device_to_test and devices_tested variables to auto_bisect api #

Total comments: 6

Patch Set 4 : Move device_to_test and devices_tested to bisect_tester #

Patch Set 5 : rebase against master #

Patch Set 6 : solve coverage problem #

Total comments: 2

Patch Set 7 : Fix command error #

Patch Set 8 : rebase against master #

Patch Set 9 : rebase again #

Patch Set 10 : Retrain simulation test #

Total comments: 1

Patch Set 11 : Remove unnecessary changes #

Patch Set 12 : Update unexpected files #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -23 lines) Patch
M scripts/slave/recipe_modules/auto_bisect/api.py View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M scripts/slave/recipe_modules/auto_bisect/local_bisect.py View 1 2 3 1 chunk +36 lines, -19 lines 2 comments Download
M scripts/slave/recipe_modules/bisect_tester/api.py View 1 2 3 1 chunk +2 lines, -0 lines 2 comments Download
M scripts/slave/recipe_modules/bisect_tester/perf_test.py View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (24 generated)
RobertoCN
I think the approach is headed in the right direction. Please edit this issue's description ...
4 years, 6 months ago (2016-06-07 22:00:39 UTC) #2
RobertoCN
https://codereview.chromium.org/2045043002/diff/20001/scripts/slave/recipe_modules/chromium_android/api.py File scripts/slave/recipe_modules/chromium_android/api.py (right): https://codereview.chromium.org/2045043002/diff/20001/scripts/slave/recipe_modules/chromium_android/api.py#newcode25 scripts/slave/recipe_modules/chromium_android/api.py:25: self.device_to_test = None Maybe these belong on the auto_bisect ...
4 years, 6 months ago (2016-06-10 15:50:17 UTC) #7
RobertoCN
This looks better, how about expectation changes? https://codereview.chromium.org/2045043002/diff/40001/scripts/slave/recipe_modules/auto_bisect/api.py File scripts/slave/recipe_modules/auto_bisect/api.py (right): https://codereview.chromium.org/2045043002/diff/40001/scripts/slave/recipe_modules/auto_bisect/api.py#newcode49 scripts/slave/recipe_modules/auto_bisect/api.py:49: self.device_tested = ...
4 years, 6 months ago (2016-06-21 22:47:02 UTC) #8
Ziqi Xiong
I moved devices_tested and device_to_test to bisect_tester module to avoid circular dependency. I ran the ...
4 years, 6 months ago (2016-06-22 17:38:22 UTC) #9
RobertoCN
On 2016/06/22 17:38:22, Ziqi Xiong wrote: > I moved devices_tested and device_to_test to bisect_tester module ...
4 years, 6 months ago (2016-06-22 18:46:04 UTC) #10
Ziqi Xiong
On 2016/06/22 18:46:04, RobertoCN wrote: > On 2016/06/22 17:38:22, Ziqi Xiong wrote: > > I ...
4 years, 6 months ago (2016-06-22 20:19:25 UTC) #11
RobertoCN
https://codereview.chromium.org/2045043002/diff/100001/scripts/slave/recipe_modules/bisect_tester/perf_test.py File scripts/slave/recipe_modules/bisect_tester/perf_test.py (right): https://codereview.chromium.org/2045043002/diff/100001/scripts/slave/recipe_modules/bisect_tester/perf_test.py#newcode98 scripts/slave/recipe_modules/bisect_tester/perf_test.py:98: command += '--device ' + device_serial_number # pragma: no ...
4 years, 6 months ago (2016-06-22 21:34:41 UTC) #12
Ziqi Xiong
https://codereview.chromium.org/2045043002/diff/100001/scripts/slave/recipe_modules/bisect_tester/perf_test.py File scripts/slave/recipe_modules/bisect_tester/perf_test.py (right): https://codereview.chromium.org/2045043002/diff/100001/scripts/slave/recipe_modules/bisect_tester/perf_test.py#newcode98 scripts/slave/recipe_modules/bisect_tester/perf_test.py:98: command += '--device ' + device_serial_number # pragma: no ...
4 years, 6 months ago (2016-06-22 21:52:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2045043002/160001
4 years, 5 months ago (2016-06-27 22:20:10 UTC) #15
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 5 months ago (2016-06-27 22:20:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2045043002/160001
4 years, 5 months ago (2016-06-27 22:21:20 UTC) #21
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 5 months ago (2016-06-27 22:21:22 UTC) #23
RobertoCN
lgtm
4 years, 5 months ago (2016-06-28 19:02:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2045043002/180001
4 years, 5 months ago (2016-06-28 19:02:55 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: Build Presubmit on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Build%20Presubmit/builds/5811)
4 years, 5 months ago (2016-06-28 19:09:45 UTC) #28
RobertoCN
https://codereview.chromium.org/2045043002/diff/180001/scripts/slave/recipe_modules/chromium_android/api.py File scripts/slave/recipe_modules/chromium_android/api.py (right): https://codereview.chromium.org/2045043002/diff/180001/scripts/slave/recipe_modules/chromium_android/api.py#newcode1070 scripts/slave/recipe_modules/chromium_android/api.py:1070: "name": "testA", Undo this change and retrain. Otherwise we'll ...
4 years, 5 months ago (2016-06-28 19:36:37 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2045043002/200001
4 years, 5 months ago (2016-06-28 19:55:53 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: Build Presubmit on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Build%20Presubmit/builds/5820)
4 years, 5 months ago (2016-06-28 20:05:49 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2045043002/220001
4 years, 5 months ago (2016-06-28 20:30:31 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2045043002/220001
4 years, 5 months ago (2016-06-28 20:31:27 UTC) #40
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://chromium.googlesource.com/chromium/tools/build/+/ad6bb0da9b1a53daae0f47c8d806ffe988c46415
4 years, 5 months ago (2016-06-28 20:34:14 UTC) #42
Ziqi Xiong
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/2112553005/ by zxiong@google.com. ...
4 years, 5 months ago (2016-06-30 17:29:35 UTC) #43
dtu
https://codereview.chromium.org/2045043002/diff/220001/scripts/slave/recipe_modules/auto_bisect/local_bisect.py File scripts/slave/recipe_modules/auto_bisect/local_bisect.py (right): https://codereview.chromium.org/2045043002/diff/220001/scripts/slave/recipe_modules/auto_bisect/local_bisect.py#newcode31 scripts/slave/recipe_modules/auto_bisect/local_bisect.py:31: except api.m.step.StepFailure: Can you detect in advance which devices ...
4 years, 5 months ago (2016-07-06 21:14:09 UTC) #45
Ziqi Xiong
4 years, 5 months ago (2016-07-07 01:44:25 UTC) #46
Message was sent while issue was closed.
https://codereview.chromium.org/2045043002/diff/220001/scripts/slave/recipe_m...
File scripts/slave/recipe_modules/auto_bisect/local_bisect.py (right):

https://codereview.chromium.org/2045043002/diff/220001/scripts/slave/recipe_m...
scripts/slave/recipe_modules/auto_bisect/local_bisect.py:31: except
api.m.step.StepFailure:
On 2016/07/06 21:14:09, dtu wrote:
> Can you detect in advance which devices are online and start out by using
those
> specifically? Better to be proactive than wait for a failure!
> 
> Also step failures could happen for a lot of reasons, so we could be spending
> significant resources to retry something that's not working because of a test
> failure. It may be better to not include retry logic here after all.

See new issue: https://codereview.chromium.org/2119483003/#ps20001

https://codereview.chromium.org/2045043002/diff/220001/scripts/slave/recipe_m...
File scripts/slave/recipe_modules/bisect_tester/api.py (right):

https://codereview.chromium.org/2045043002/diff/220001/scripts/slave/recipe_m...
scripts/slave/recipe_modules/bisect_tester/api.py:20: self.device_to_test = None
On 2016/07/06 21:14:09, dtu wrote:
> Call me an OOP purist, but I dislike having public fields here. These should
be
> accessed with member functions instead.

See new issue: https://codereview.chromium.org/2119483003/#ps20001

Powered by Google App Engine
This is Rietveld 408576698