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

Side by Side Diff: tools/builder_name_schema.py

Issue 2154433002: Add "Infra" to the builder_name_schema (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add "Infra" to the builder_name_schema Created 4 years, 5 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
« no previous file with comments | « tools/builder_name_schema.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 5
6 """ Utilities for dealing with builder names. This module obtains its attributes 6 """ Utilities for dealing with builder names. This module obtains its attributes
7 dynamically from builder_name_schema.json. """ 7 dynamically from builder_name_schema.json. """
8 8
9 9
10 import json 10 import json
11 import os 11 import os
12 12
13 13
14 # All of these global variables are filled in by _LoadSchema(). 14 # All of these global variables are filled in by _LoadSchema().
15 15
16 # The full schema. 16 # The full schema.
17 BUILDER_NAME_SCHEMA = None 17 BUILDER_NAME_SCHEMA = None
18 18
19 # Character which separates parts of a builder name. 19 # Character which separates parts of a builder name.
20 BUILDER_NAME_SEP = None 20 BUILDER_NAME_SEP = None
21 21
22 # Builder roles. 22 # Builder roles.
23 BUILDER_ROLE_CANARY = 'Canary' 23 BUILDER_ROLE_CANARY = 'Canary'
24 BUILDER_ROLE_BUILD = 'Build' 24 BUILDER_ROLE_BUILD = 'Build'
25 BUILDER_ROLE_HOUSEKEEPER = 'Housekeeper' 25 BUILDER_ROLE_HOUSEKEEPER = 'Housekeeper'
26 BUILDER_ROLE_INFRA = 'Infra'
26 BUILDER_ROLE_PERF = 'Perf' 27 BUILDER_ROLE_PERF = 'Perf'
27 BUILDER_ROLE_TEST = 'Test' 28 BUILDER_ROLE_TEST = 'Test'
28 BUILDER_ROLES = (BUILDER_ROLE_CANARY, 29 BUILDER_ROLES = (BUILDER_ROLE_CANARY,
29 BUILDER_ROLE_BUILD, 30 BUILDER_ROLE_BUILD,
30 BUILDER_ROLE_HOUSEKEEPER, 31 BUILDER_ROLE_HOUSEKEEPER,
32 BUILDER_ROLE_INFRA,
31 BUILDER_ROLE_PERF, 33 BUILDER_ROLE_PERF,
32 BUILDER_ROLE_TEST) 34 BUILDER_ROLE_TEST)
33 35
34 # Suffix which distinguishes trybots from normal bots. 36 # Suffix which distinguishes trybots from normal bots.
35 TRYBOT_NAME_SUFFIX = None 37 TRYBOT_NAME_SUFFIX = None
36 38
37 39
38 def _LoadSchema(): 40 def _LoadSchema():
39 """ Load the builder naming schema from the JSON file. """ 41 """ Load the builder naming schema from the JSON file. """
40 42
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 result[key] = pop_front() 187 result[key] = pop_front()
186 if split_name: 188 if split_name:
187 result['extra_config'] = pop_front() 189 result['extra_config'] = pop_front()
188 if split_name: 190 if split_name:
189 raise ValueError('Invalid builder name: %s' % builder_name) 191 raise ValueError('Invalid builder name: %s' % builder_name)
190 else: 192 else:
191 raise ValueError('Invalid builder name: %s' % builder_name) 193 raise ValueError('Invalid builder name: %s' % builder_name)
192 return result 194 return result
193 195
194 196
OLDNEW
« no previous file with comments | « tools/builder_name_schema.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698