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

Unified Diff: scripts/master/master_utils.py

Issue 2455703008: V8: Add temporary output to slave-distribution method. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/master/master_utils.py
diff --git a/scripts/master/master_utils.py b/scripts/master/master_utils.py
index f0f5e1bb14e5d36185f345130b0519312e402447..d9907482fe1e64b636d9f4725ff7c2e686a3aba3 100644
--- a/scripts/master/master_utils.py
+++ b/scripts/master/master_utils.py
@@ -704,10 +704,18 @@ class PreferredBuilderNextSlaveFuncNG(object):
# one group will be chosen arbitrarily, the actual slave will be chosen
# randomly.
key = prefs.most_common()[0][0]
- return self._choice(
+ result = self._choice(
[s for s in slave_builders
if s.slave.properties.getProperty('preferred_builder') == key])
+ log.msg('Assigning slave to %s. Preferred: %s. Chose %s.' % (
+ builder.name,
+ [s.slave.properties.getProperty('preferred_builder')
+ for s in slave_builders],
+ result))
+
+ return result
+
def SetMasterProcessName():
"""Sets the name of this process to the name of the master. Linux only."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698