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

Issue 2427413005: Improve slave-preference function (Closed)

Created:
4 years, 2 months ago by Michael Achenbach
Modified:
4 years, 1 month ago
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Improve slave-preference function The current slave-preference function has the following flaw: When the system is under medium load, preferred slaves are often occupied, so that each new build starts taking slaves preferring other builders. This in turn leads to more slaves not being available for their preferred builders. The new implementation has the following strategy: Let slaves(builder) be the number of available slaves preferring that builder. For builder A and available slaves S, choose s in S such that (order is preference): 1. s prefers A, or 2. s prefers nothing (an optional fall-over pool), or 3. s prefers some B != A and there's no other builder C != B such that slaves(C) > slaves(B) BUG=658189 Committed: https://chromium.googlesource.com/chromium/tools/build/+/f71cca8a090ef8d7608af034b5e2bdcdc7df2bc5

Patch Set 1 #

Patch Set 2 : Improve slave preference function #

Total comments: 4

Patch Set 3 : Keep new function side-by-side with old #

Patch Set 4 : Better and simpler implementation #

Patch Set 5 : Test readability #

Total comments: 18

Patch Set 6 : Review tandrii #

Patch Set 7 : Presubmit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -2 lines) Patch
M scripts/master/master_utils.py View 1 2 3 4 5 2 chunks +40 lines, -0 lines 0 comments Download
M scripts/master/unittests/master_utils_test.py View 1 2 3 4 5 6 3 chunks +66 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
tandrii(chromium)
On 2016/10/21 09:28:21, machenbach (slow) wrote: > Description was changed from > > ========== > ...
4 years, 2 months ago (2016-10-21 09:46:11 UTC) #2
tandrii(chromium)
I'm on board with this change. The suggested implementation will run super fast when master ...
4 years, 2 months ago (2016-10-21 10:39:17 UTC) #5
Michael Achenbach
PTAL. New function now suffixed with "NG" :) If it looks good to your, I'll ...
4 years, 2 months ago (2016-10-21 13:17:43 UTC) #6
tandrii(chromium)
LGTM % suggetsions https://codereview.chromium.org/2427413005/diff/80001/scripts/master/master_utils.py File scripts/master/master_utils.py (right): https://codereview.chromium.org/2427413005/diff/80001/scripts/master/master_utils.py#newcode678 scripts/master/master_utils.py:678: prefer any builder if such a ...
4 years, 2 months ago (2016-10-21 13:39:46 UTC) #8
Michael Achenbach
Done, thanks for review! https://codereview.chromium.org/2427413005/diff/80001/scripts/master/master_utils.py File scripts/master/master_utils.py (right): https://codereview.chromium.org/2427413005/diff/80001/scripts/master/master_utils.py#newcode678 scripts/master/master_utils.py:678: prefer any builder if such ...
4 years, 2 months ago (2016-10-21 13:56:24 UTC) #9
Michael Achenbach
+ other infra reviewers working on the original method. WDYT?
4 years, 2 months ago (2016-10-21 13:58:17 UTC) #11
tandrii(chromium)
lgtm
4 years, 2 months ago (2016-10-21 14:02:45 UTC) #14
Sergey Berezin
Code LGTM (though I didn't look as thoroughly as tandrii@). For the actual logic - ...
4 years, 2 months ago (2016-10-21 18:19:53 UTC) #15
Michael Achenbach
On 2016/10/21 18:19:53, Sergey Berezin wrote: > Code LGTM (though I didn't look as thoroughly ...
4 years, 2 months ago (2016-10-21 20:34:06 UTC) #16
Sergey Berezin (google)
On 2016/10/21 at 20:34:06, machenbach wrote: > On 2016/10/21 18:19:53, Sergey Berezin wrote: > > ...
4 years, 2 months ago (2016-10-21 20:53:50 UTC) #17
shinyak
lgtm Basically this effort is to reduce the amount of tasks for incremental builds, and ...
4 years, 2 months ago (2016-10-24 02:33:17 UTC) #18
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/2427413005/100001
4 years, 2 months ago (2016-10-24 07:29:21 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: Build Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/320e69ba29533810)
4 years, 1 month ago (2016-10-24 08:12:06 UTC) #22
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/2427413005/120001
4 years, 1 month ago (2016-10-24 09:33:35 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 09:44:53 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/tools/build/+/f71cca8a090ef8d7608a...

Powered by Google App Engine
This is Rietveld 408576698