<commit_before># -*- python -*-
# ex: set syntax=python:
# Copyright (c) 2012 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.

# READ THIS:
# See http://dev.chromium.org/developers/testing/chromium-build-infrastructure

import os
import socket

from buildbot.scheduler import Triggerable

# These modules come from scripts, which must be in the PYTHONPATH.
from master import master_config
from master import master_config_tryserver
from master import master_utils
from master import slaves_list
from master.builders_pools import BuildersPools
from master.factory import annotator_factory
from master.factory import chromium_factory
from master.try_job_http import TryJobHTTP
from master.try_job_rietveld import TryJobRietveld
from master.try_job_svn import TryJobSubversion

import config
import master_site_config

ActiveMaster = master_site_config.TryServerChromiumWin


MAIL_NOTIFIER = ActiveMaster.is_production_host
UPDATE_CODEREVIEW = ActiveMaster.is_production_host
LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host

CreateBuilder = master_config_tryserver.CreateBuilder
m_annotator = annotator_factory.AnnotatorFactory(ActiveMaster)
m_chromium_win = master_config_tryserver.m_chromium_win
m_chromium_win_ninja = master_config_tryserver.m_chromium_win_ninja

# This is the dictionary that the buildmaster pays attention to. We also use
# a shorter alias to save typing.
c = BuildmasterConfig = {}

config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host)

####### CHANGESOURCES

c['change_source'] = []

# Avoid merging requests.
c['mergeRequests'] = False


####### BUILDERS

# Try queues.
pools = BuildersPools('chrome')

chromium_builders = []

for targ in ('_rel', '_dbg'):
  chromium_builders.extend([{
    'name': 'win_chromium%s_ng' % targ,
    'factory': m_annotator.BaseFactory(
        'chromium_trybot', timeout=3600, max_time=master_utils.CQ_MAX_TIME),
    # Share build directory with compatible existing builders to save space.
    'slavebuilddir': 'win'
  }, {
    'name': 'win_chromium_compile%s_ng' % targ,
    'factory': m_annotator.BaseFactory(
        'chromium_trybot', timeout=3600, max_time=master_utils.CQ_MAX_TIME),
    # Share build directory with compatible existing builders to save space.
    'slavebuilddir': 'win'
  }])

chromium_builders.append({
  'name': 'win_chromium_xp_rel_ng',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})

# GCE Experimental builders
chromium_builders.append({
  'name': 'win_chromium_rel_ng_exp',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})
chromium_builders.append({
  'name': 'win_chromium_compile_dbg_ng_exp',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})
chromium_builders.append({
  'name': 'win_chromium_x64_rel_ng_exp',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})


chromium_builders.append({
  'name': 'win_chromium_vista_rel_ng',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})

chromium_builders.append({
  'name': 'win_chromium_x64_dbg',
  'factory': m_annotator.BaseFactory('chromium_trybot_legacy', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})

chromium_builders.append({
  'name': 'win_chromium_x64_rel_ng',
  'factory': m_annotator.BaseFactory(
      'chromium_trybot', timeout=3600, max_time=master_utils.CQ_MAX_TIME),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})

chromium_builders.extend([{
    'name': 'win8_chromium_dbg',
    'factory': m_annotator.BaseFactory('chromium_trybot_legacy'),
    'slavebuilddir': 'win',
  },{
    'name': 'win8_chromium_rel',
    'factory': m_annotator.BaseFactory(
        'chromium_trybot_legacy', max_time=master_utils.CQ_MAX_TIME),
    'slavebuilddir': 'win',
  },{
    'name': 'win8_chromium_ng',
    'factory': m_annotator.BaseFactory(
        'chromium_trybot', max_time=master_utils.CQ_MAX_TIME),
    'slavebuilddir': 'win',
  },
])

chromium_builders.extend([{
    'name': 'win_chromium_gn_x64_dbg',
    'factory': m_annotator.BaseFactory('chromium_trybot'),
    'slavebuilddir': 'win_gn',
  },{
    'name': 'win_chromium_gn_x64_rel',
    'factory': m_annotator.BaseFactory('chromium_trybot'),
    'slavebuilddir': 'win_gn',
  },{
    'name': 'win8_chromium_gn_dbg',
    'factory': m_annotator.BaseFactory('chromium_trybot'),
    'slavebuilddir': 'win_gn',
  },{
    'name': 'win8_chromium_gn_upload',
    'factory': m_annotator.BaseFactory('chromium_gn_upload'),<commit_msg>Move the slavebuilddir for win8_chromium_ng.<commit_after># -*- python -*-
# ex: set syntax=python:
# Copyright (c) 2012 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.

# READ THIS:
# See http://dev.chromium.org/developers/testing/chromium-build-infrastructure

import os
import socket

from buildbot.scheduler import Triggerable

# These modules come from scripts, which must be in the PYTHONPATH.
from master import master_config
from master import master_config_tryserver
from master import master_utils
from master import slaves_list
from master.builders_pools import BuildersPools
from master.factory import annotator_factory
from master.factory import chromium_factory
from master.try_job_http import TryJobHTTP
from master.try_job_rietveld import TryJobRietveld
from master.try_job_svn import TryJobSubversion

import config
import master_site_config

ActiveMaster = master_site_config.TryServerChromiumWin


MAIL_NOTIFIER = ActiveMaster.is_production_host
UPDATE_CODEREVIEW = ActiveMaster.is_production_host
LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host

CreateBuilder = master_config_tryserver.CreateBuilder
m_annotator = annotator_factory.AnnotatorFactory(ActiveMaster)
m_chromium_win = master_config_tryserver.m_chromium_win
m_chromium_win_ninja = master_config_tryserver.m_chromium_win_ninja

# This is the dictionary that the buildmaster pays attention to. We also use
# a shorter alias to save typing.
c = BuildmasterConfig = {}

config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host)

####### CHANGESOURCES

c['change_source'] = []

# Avoid merging requests.
c['mergeRequests'] = False


####### BUILDERS

# Try queues.
pools = BuildersPools('chrome')

chromium_builders = []

for targ in ('_rel', '_dbg'):
  chromium_builders.extend([{
    'name': 'win_chromium%s_ng' % targ,
    'factory': m_annotator.BaseFactory(
        'chromium_trybot', timeout=3600, max_time=master_utils.CQ_MAX_TIME),
    # Share build directory with compatible existing builders to save space.
    'slavebuilddir': 'win'
  }, {
    'name': 'win_chromium_compile%s_ng' % targ,
    'factory': m_annotator.BaseFactory(
        'chromium_trybot', timeout=3600, max_time=master_utils.CQ_MAX_TIME),
    # Share build directory with compatible existing builders to save space.
    'slavebuilddir': 'win'
  }])

chromium_builders.append({
  'name': 'win_chromium_xp_rel_ng',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})

# GCE Experimental builders
chromium_builders.append({
  'name': 'win_chromium_rel_ng_exp',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})
chromium_builders.append({
  'name': 'win_chromium_compile_dbg_ng_exp',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})
chromium_builders.append({
  'name': 'win_chromium_x64_rel_ng_exp',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})


chromium_builders.append({
  'name': 'win_chromium_vista_rel_ng',
  'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})

chromium_builders.append({
  'name': 'win_chromium_x64_dbg',
  'factory': m_annotator.BaseFactory('chromium_trybot_legacy', timeout=3600),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})

chromium_builders.append({
  'name': 'win_chromium_x64_rel_ng',
  'factory': m_annotator.BaseFactory(
      'chromium_trybot', timeout=3600, max_time=master_utils.CQ_MAX_TIME),
  # Share build directory with compatible existing builders to save space.
  'slavebuilddir': 'win'
})

chromium_builders.extend([{
    'name': 'win8_chromium_dbg',
    'factory': m_annotator.BaseFactory('chromium_trybot_legacy'),
    'slavebuilddir': 'win',
  },{
    'name': 'win8_chromium_rel',
    'factory': m_annotator.BaseFactory(
        'chromium_trybot_legacy', max_time=master_utils.CQ_MAX_TIME),
    'slavebuilddir': 'win',
  },
])

chromium_builders.extend([{
    'name': 'win8_chromium_ng',
    'factory': m_annotator.BaseFactory('chromium_trybot'),
    'slavebuilddir': 'win_gn',
  },{
    'name': 'win_chromium_gn_x64_dbg',
    'factory': m_annotator.BaseFactory('chromium_trybot'),
    'slavebuilddir': 'win_gn',
  },{
    'name': 'win_chromium_gn_x64_rel',
    'factory': m_annotator.BaseFactory('chromium_trybot'),
    'slavebuilddir': 'win_gn',
  },{
    'name': 'win8_chromium_gn_dbg',
    'factory': m_annotator.BaseFactory('chromium_trybot'),
    'slavebuilddir': 'win_gn',
  },{
    'name': 'win8_chromium_gn_upload',
    'factory': m_annotator.BaseFactory('chromium_gn_upload'),
{'fraction_non_alphanumeric': 0.11012877186238708, 'fraction_numerical': 0.010666922929079376, 'mean_word_length': 5.797517962116264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5178', 'n_tokens_mistral': 3608, 'n_tokens_neox': 3432, 'n_words': 755}