| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from buildbot.schedulers.basic import SingleBranchScheduler | 5 from buildbot.schedulers.basic import SingleBranchScheduler |
| 6 | 6 |
| 7 # These modules come from scripts/master, which must be in the PYTHONPATH. | 7 # These modules come from scripts/master, which must be in the PYTHONPATH. |
| 8 from master import master_utils | 8 from master import master_utils |
| 9 from master import slaves_list | 9 from master import slaves_list |
| 10 from master.factory import annotator_factory | 10 from master.factory import remote_run_factory |
| 11 | 11 |
| 12 import config | 12 import config |
| 13 import master_site_config | 13 import master_site_config |
| 14 ActiveMaster = master_site_config.WebRTCPerf | 14 ActiveMaster = master_site_config.WebRTCPerf |
| 15 | 15 |
| 16 c = BuildmasterConfig = {} | 16 c = BuildmasterConfig = {} |
| 17 c['change_source'] = [] | 17 c['change_source'] = [] |
| 18 c['schedulers'] = [] | 18 c['schedulers'] = [] |
| 19 c['builders'] = [] | 19 c['builders'] = [] |
| 20 c['status'] = [] | 20 c['status'] = [] |
| (...skipping 21 matching lines...) Expand all Loading... |
| 42 specs = [ | 42 specs = [ |
| 43 {'name': 'Android32 Builder', 'slavebuilddir': 'android_32'}, | 43 {'name': 'Android32 Builder', 'slavebuilddir': 'android_32'}, |
| 44 {'name': 'Android64 Builder', 'slavebuilddir': 'android_64'}, | 44 {'name': 'Android64 Builder', 'slavebuilddir': 'android_64'}, |
| 45 {'name': 'Android32 Tests (M Nexus5X)'}, | 45 {'name': 'Android32 Tests (M Nexus5X)'}, |
| 46 {'name': 'Android64 Tests (M Nexus9)'}, | 46 {'name': 'Android64 Tests (M Nexus9)'}, |
| 47 {'name': 'Linux Trusty'}, | 47 {'name': 'Linux Trusty'}, |
| 48 {'name': 'Mac 10.11'}, | 48 {'name': 'Mac 10.11'}, |
| 49 {'name': 'Win7'}, | 49 {'name': 'Win7'}, |
| 50 ] | 50 ] |
| 51 | 51 |
| 52 m_annotator = annotator_factory.AnnotatorFactory() | 52 |
| 53 def m_remote_run(recipe, **kwargs): |
| 54 return remote_run_factory.RemoteRunFactory( |
| 55 active_master=ActiveMaster, |
| 56 repository='https://chromium.googlesource.com/chromium/tools/build.git', |
| 57 recipe=recipe, |
| 58 factory_properties={'path_config': 'kitchen'}, |
| 59 **kwargs) |
| 60 |
| 61 |
| 53 for spec in specs: | 62 for spec in specs: |
| 54 builder = { | 63 builder = { |
| 55 'name': spec['name'], | 64 'name': spec['name'], |
| 56 'factory': m_annotator.BaseFactory('webrtc/standalone'), | 65 'factory': m_remote_run('webrtc/standalone'), |
| 57 'notify_on_missing': True, | 66 'notify_on_missing': True, |
| 58 } | 67 } |
| 59 if spec.get('slavebuilddir'): | 68 if spec.get('slavebuilddir'): |
| 60 builder['slavebuilddir'] = spec.get('slavebuilddir') | 69 builder['slavebuilddir'] = spec.get('slavebuilddir') |
| 61 c['builders'].append(builder) | 70 c['builders'].append(builder) |
| 62 | 71 |
| 63 | 72 |
| 64 # Must come before AutoSetupMaster(). | 73 # Must come before AutoSetupMaster(). |
| 65 c['buildbotURL'] = ActiveMaster.buildbot_url | 74 c['buildbotURL'] = ActiveMaster.buildbot_url |
| 66 | 75 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 lookup=lookup, | 111 lookup=lookup, |
| 103 mode='problem', | 112 mode='problem', |
| 104 relayhost=config.Master.smtp)) | 113 relayhost=config.Master.smtp)) |
| 105 | 114 |
| 106 # Do it at the end to override values set by AutoSetupMaster, the default is | 115 # Do it at the end to override values set by AutoSetupMaster, the default is |
| 107 # too low. Must keep at least a few days worth of builds. | 116 # too low. Must keep at least a few days worth of builds. |
| 108 c['buildHorizon'] = 3000 | 117 c['buildHorizon'] = 3000 |
| 109 c['logHorizon'] = 3000 | 118 c['logHorizon'] = 3000 |
| 110 # Must be at least 2x the number of slaves. | 119 # Must be at least 2x the number of slaves. |
| 111 c['eventHorizon'] = 200 | 120 c['eventHorizon'] = 200 |
| OLD | NEW |