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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 'NexusPlayer': ('fugu', 'NRD90R'), | 133 'NexusPlayer': ('fugu', 'NRD90R'), |
134 'Pixel': ('sailfish', 'NMF25'), | 134 'Pixel': ('sailfish', 'NMF25'), |
135 'PixelC': ('dragon', 'NMF26C'), | 135 'PixelC': ('dragon', 'NMF26C'), |
136 'PixelXL': ('marlin', 'NMF25'), | 136 'PixelXL': ('marlin', 'NMF25'), |
137 }[builder_cfg['model']] | 137 }[builder_cfg['model']] |
138 dimensions['device_type'] = device_type | 138 dimensions['device_type'] = device_type |
139 dimensions['device_os'] = device_os | 139 dimensions['device_os'] = device_os |
140 elif 'iOS' in builder_cfg['os']: | 140 elif 'iOS' in builder_cfg['os']: |
141 # For iOS, the device type is a better dimension than CPU or GPU. | 141 # For iOS, the device type is a better dimension than CPU or GPU. |
142 dimensions['device'] = { | 142 dimensions['device'] = { |
143 'iPad4': 'iPad4,1', | 143 # TODO(stephana): Remove this temporary discrepancy between the bot name |
| 144 # and device. When we expand iOS testing names and devices need to match |
| 145 # again. |
| 146 'iPad4': 'iPad5,1', |
144 }[builder_cfg['model']] | 147 }[builder_cfg['model']] |
145 # TODO(borenet): Replace this hack with something better. | 148 # TODO(borenet): Replace this hack with something better. |
146 dimensions['os'] = 'iOS-9.2' | 149 dimensions['os'] = 'iOS-9.3.1' |
147 elif builder_cfg['cpu_or_gpu'] == 'CPU': | 150 elif builder_cfg['cpu_or_gpu'] == 'CPU': |
148 dimensions['gpu'] = 'none' | 151 dimensions['gpu'] = 'none' |
149 dimensions['cpu'] = { | 152 dimensions['cpu'] = { |
150 'AVX': 'x86-64', | 153 'AVX': 'x86-64', |
151 'AVX2': 'x86-64-avx2', | 154 'AVX2': 'x86-64-avx2', |
152 'SSE4': 'x86-64', | 155 'SSE4': 'x86-64', |
153 }[builder_cfg['cpu_or_gpu_value']] | 156 }[builder_cfg['cpu_or_gpu_value']] |
154 if ('Win' in builder_cfg['os'] and | 157 if ('Win' in builder_cfg['os'] and |
155 builder_cfg['cpu_or_gpu_value'] == 'AVX2'): | 158 builder_cfg['cpu_or_gpu_value'] == 'AVX2'): |
156 # AVX2 is not correctly detected on Windows. Fall back on other | 159 # AVX2 is not correctly detected on Windows. Fall back on other |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 path_config='kitchen', | 769 path_config='kitchen', |
767 revision='abc123', | 770 revision='abc123', |
768 **gerrit_kwargs) + | 771 **gerrit_kwargs) + |
769 api.step_data( | 772 api.step_data( |
770 'upload new .isolated file for test_skia', | 773 'upload new .isolated file for test_skia', |
771 stdout=api.raw_io.output('def456 XYZ.isolated')) + | 774 stdout=api.raw_io.output('def456 XYZ.isolated')) + |
772 api.step_data( | 775 api.step_data( |
773 'upload new .isolated file for upload_dm_results_skia', | 776 'upload new .isolated file for upload_dm_results_skia', |
774 stdout=api.raw_io.output('def456 XYZ.isolated')) | 777 stdout=api.raw_io.output('def456 XYZ.isolated')) |
775 ) | 778 ) |
OLD | NEW |