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

Side by Side Diff: master/skia_master_scripts/housekeeping_monitoring_factory.py

Issue 648353002: Remove Skia's forked buildbot code (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Fix launch_slaves, remove more stuff Created 6 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698