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

Issue 2255643002: Floating builder logic waits at startup. (Closed)

Created:
4 years, 4 months ago by dnj
Modified:
4 years, 4 months ago
Reviewers:
bpastene
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

Floating builder logic waits at startup. Currently, the floating builder logic considered slaves that haven't ever signed in as last seen a long time ago (epoch). This means that if a master starts up, has a task, and a floating builder connects before a primary, the floating builder will be immediately given the task, since the primary is outside of the grace period. Update this logic: now all slaves are considered last seen when the floating function was created. This will cause the floating builder to wait a full grace period before giving builds to floating slaves, even if it just started up. BUG=chromium:637166 TEST=None Committed: https://chromium.googlesource.com/chromium/tools/build/+/d521c25d75f302880ffaa2e5f10aa5cfe1c932cb

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -26 lines) Patch
M scripts/master/floating_builder.py View 1 4 chunks +15 lines, -21 lines 0 comments Download
M scripts/master/unittests/floating_builder_test.py View 5 chunks +24 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
dnj
PTAL
4 years, 4 months ago (2016-08-17 01:03:56 UTC) #2
bpastene
lgtm + a question https://codereview.chromium.org/2255643002/diff/1/scripts/master/floating_builder.py File scripts/master/floating_builder.py (right): https://codereview.chromium.org/2255643002/diff/1/scripts/master/floating_builder.py#newcode192 scripts/master/floating_builder.py:192: # nit: remove line https://codereview.chromium.org/2255643002/diff/1/scripts/master/floating_builder.py#newcode270 ...
4 years, 4 months ago (2016-08-17 01:22:13 UTC) #3
dnj
https://codereview.chromium.org/2255643002/diff/1/scripts/master/floating_builder.py File scripts/master/floating_builder.py (right): https://codereview.chromium.org/2255643002/diff/1/scripts/master/floating_builder.py#newcode192 scripts/master/floating_builder.py:192: # On 2016/08/17 01:22:13, bpastene wrote: > nit: remove ...
4 years, 4 months ago (2016-08-17 01:24:17 UTC) #4
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/2255643002/20001
4 years, 4 months ago (2016-08-17 01:25:05 UTC) #7
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 01:31:44 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/tools/build/+/d521c25d75f302880ffa...

Powered by Google App Engine
This is Rietveld 408576698