OLD | NEW |
| (Empty) |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 | |
6 """Factory for a builder which monitors the buildbots.""" | |
7 | |
8 | |
9 from skia_master_scripts import factory as skia_factory | |
10 import builder_name_schema | |
11 | |
12 | |
13 class HouseKeepingMonitoringFactory(skia_factory.SkiaFactory): | |
14 | |
15 def Build(self, role=builder_name_schema.BUILDER_ROLE_HOUSEKEEPER, | |
16 clobber=None): | |
17 """Build and return the complete BuildFactory. | |
18 | |
19 role: string; type of builder. | |
20 clobber: boolean indicating whether we should clean before building | |
21 """ | |
22 if role != builder_name_schema.BUILDER_ROLE_HOUSEKEEPER: | |
23 raise Exception('Housekeeping builders must have role "%s"' % | |
24 builder_name_schema.BUILDER_ROLE_HOUSEKEEPER) | |
25 self.UpdateSteps() | |
26 | |
27 self.AddSlaveScript(script='update_all_slave_hosts.py', | |
28 description='UpdateSlaveHosts') | |
29 self.AddSlaveScript(script='update_all_buildslave_checkouts.py', | |
30 description='UpdateAllBuildslaves') | |
31 self.AddSlaveScript(script='check_buildslave_host_disk_usage.py', | |
32 description='CheckBuildslaveHostDiskUsage') | |
33 self.Validate() | |
34 return self | |
OLD | NEW |