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 | 5 |
6 # Recipe module for Skia Swarming trigger. | 6 # Recipe module for Skia Swarming trigger. |
7 | 7 |
8 | 8 |
9 import os | 9 import os |
10 import json | 10 import json |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 } | 112 } |
113 dimensions['os'] = builder_cfg.get('os', 'Ubuntu') | 113 dimensions['os'] = builder_cfg.get('os', 'Ubuntu') |
114 if builder_cfg.get('extra_config', '').startswith('CT_'): | 114 if builder_cfg.get('extra_config', '').startswith('CT_'): |
115 dimensions['pool'] = 'SkiaCT' | 115 dimensions['pool'] = 'SkiaCT' |
116 return dimensions # Do not need any more dimensions for CT builders. | 116 return dimensions # Do not need any more dimensions for CT builders. |
117 if 'Win' in builder_cfg.get('os', ''): | 117 if 'Win' in builder_cfg.get('os', ''): |
118 dimensions['os'] = 'Windows' | 118 dimensions['os'] = 'Windows' |
119 if builder_cfg['role'] in ('Test', 'Perf'): | 119 if builder_cfg['role'] in ('Test', 'Perf'): |
120 if 'Android' in builder_cfg['os']: | 120 if 'Android' in builder_cfg['os']: |
121 # For Android, the device type is a better dimension than CPU or GPU. | 121 # For Android, the device type is a better dimension than CPU or GPU. |
122 dimensions['device_type'] = { | 122 device_type, device_os = { |
123 'AndroidOne': 'sprout', | 123 'AndroidOne': ('sprout', 'MOB30Q'), |
124 'GalaxyS3': 'm0', #'smdk4x12', Detected incorrectly by swarming? | 124 #'smdk4x12', Detected incorrectly by swarming? |
125 'GalaxyS4': None, # TODO(borenet,kjlubick) | 125 'GalaxyS3': ('m0', 'M'), |
kjlubick
2016/10/10 16:52:50
Can't we remove the s3 and s4 entries?
borenet
2016/10/10 16:56:57
Sure, done.
| |
126 'GalaxyS7': 'heroqlteatt', | 126 # TODO(borenet,kjlubick) |
127 'NVIDIA_Shield': 'foster', | 127 'GalaxyS4': (None, 'M'), |
128 'Nexus10': 'manta', | 128 'GalaxyS7': ('heroqlteatt','MMB29M'), |
129 'Nexus5': 'hammerhead', | 129 'NVIDIA_Shield': ('foster', 'MRA58K'), |
130 'Nexus6': 'shamu', | 130 'Nexus10': ('manta', 'LMY49J'), |
131 'Nexus6p': 'angler', | 131 'Nexus5': ('hammerhead', 'MOB31E'), |
132 'Nexus7': 'grouper', | 132 'Nexus6': ('shamu', 'M'), |
133 'Nexus7v2': 'flo', | 133 'Nexus6p': ('angler', 'NRD91E'), |
134 'Nexus9': 'flounder', | 134 'Nexus7': ('grouper', 'KTU84U'), |
kjlubick
2016/10/10 16:52:50
This will be LMY47V
borenet
2016/10/10 16:56:57
Done.
| |
135 'NexusPlayer': 'fugu', | 135 'Nexus7v2': ('flo', 'M'), |
136 'Nexus9': ('flounder', 'NRD91D'), | |
137 'NexusPlayer': ('fugu', 'NRD90R'), | |
136 }[builder_cfg['model']] | 138 }[builder_cfg['model']] |
139 dimensions['device_type'] = device_type | |
140 dimensions['device_os'] = device_os | |
137 elif 'iOS' in builder_cfg['os']: | 141 elif 'iOS' in builder_cfg['os']: |
138 # For iOS, the device type is a better dimension than CPU or GPU. | 142 # For iOS, the device type is a better dimension than CPU or GPU. |
139 dimensions['device'] = { | 143 dimensions['device'] = { |
140 'iPad4': 'iPad4,1', | 144 'iPad4': 'iPad4,1', |
141 }[builder_cfg['model']] | 145 }[builder_cfg['model']] |
142 # TODO(borenet): Replace this hack with something better. | 146 # TODO(borenet): Replace this hack with something better. |
143 dimensions['os'] = 'iOS-9.2' | 147 dimensions['os'] = 'iOS-9.2' |
144 elif builder_cfg['cpu_or_gpu'] == 'CPU': | 148 elif builder_cfg['cpu_or_gpu'] == 'CPU': |
145 dimensions['gpu'] = 'none' | 149 dimensions['gpu'] = 'none' |
146 dimensions['cpu'] = { | 150 dimensions['cpu'] = { |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
763 path_config='kitchen', | 767 path_config='kitchen', |
764 revision='abc123', | 768 revision='abc123', |
765 **gerrit_kwargs) + | 769 **gerrit_kwargs) + |
766 api.step_data( | 770 api.step_data( |
767 'upload new .isolated file for test_skia', | 771 'upload new .isolated file for test_skia', |
768 stdout=api.raw_io.output('def456 XYZ.isolated')) + | 772 stdout=api.raw_io.output('def456 XYZ.isolated')) + |
769 api.step_data( | 773 api.step_data( |
770 'upload new .isolated file for upload_dm_results_skia', | 774 'upload new .isolated file for upload_dm_results_skia', |
771 stdout=api.raw_io.output('def456 XYZ.isolated')) | 775 stdout=api.raw_io.output('def456 XYZ.isolated')) |
772 ) | 776 ) |
OLD | NEW |