blob: 12d60e658669f0e4cde485ccde74d76bb2e903c7 [file] [log] [blame]
# -*- python -*-
# ex: set syntax=python:
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
def distribute_slaves(slave_numbers, builders, os_ver, pool=None, gce=False,
prefix='vm'):
hostname_format = prefix + '%d-m4' if not gce else 'slave%d-c4'
return [
{
'master': 'TryServerChromiumWin',
'builder': builders,
'preferred_builder': (builders[i % len(builders)]
if slave_numbers >= builders
else None),
'hostname': hostname_format % number,
'os': 'win',
'version': os_ver,
'bits': '64',
'pool': pool,
} for i, number in enumerate(slave_numbers)
]
def windows():
clang_cq_slaves = range(403, 407)
clang_cq_builders = [
'win7_chromium_rel_loc_exp',
]
clang_cq_pool = distribute_slaves(clang_cq_slaves, clang_cq_builders, 'win7',
'win_cq')
optional_slaves = [181, 185, 186, 187, 192]
optional_builders = [
'win_archive',
'win_chromium_gn_upload',
'win_chromium_compile_rel_ng',
'win_mojo',
'win_chrome_official',
'win_nacl_sdk',
'win_nacl_sdk_build',
'win_x64_archive',
]
optional_pool = distribute_slaves(
optional_slaves,
optional_builders,
'win7',
'win_optional')
findit_slaves = [1, 5, 10, 553]
findit_builders = [
'win_chromium_variable',
'win_chromium_variable_clang',
'win_chromium_variable_archive',
'win_chromium_variable_chrome',
'win_chromium_variable_webkit_builder',
'win_chromium_variable_webkit_win7_builder',
'win_chromium_variable_webkit_win7_builder_x64',
'win_x64_chromium_variable_builder',
]
findit_pool = distribute_slaves(
findit_slaves,
findit_builders,
'win7',
'win_findit',
prefix='build')
flake_analysis_slaves = [49]
flake_analysis_builders = [
'win_chromium_variable_deflake',
]
flake_analysis_pool = distribute_slaves(
flake_analysis_slaves,
flake_analysis_builders,
'win7',
'win_flake_analysis',
prefix='build')
win_upload_clang_pool = [
{
'master': 'TryServerChromiumWin',
'builder': 'win_upload_clang',
'hostname': 'build%d-m4' % number,
'os': 'win',
'version': 'win7',
'bits': '64',
'pool': 'win_upload_clang',
} for number in (4, 6)
]
win10_gce_pool = [
{
'master': 'TryServerChromiumWin',
'builder': ['win7_chromium_rel_ng'],
'hostname': 'win%d-c4' % number,
'os': 'win',
'version': 'win10',
'bits': '64',
'pool': 'win10_gce',
} for number in (
range(30, 60) + range(65, 101) + range(1340, 1386) + range(1410, 1438))
]
return (
clang_cq_pool +
optional_pool +
findit_pool +
flake_analysis_pool +
win_upload_clang_pool +
win10_gce_pool)
slaves = windows()