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 'iPad4': 'iPad5,1', |
dogben
2016/11/04 14:12:01
Please add a comment.
stephana
2016/11/04 14:32:59
Done.
| |
144 }[builder_cfg['model']] | 144 }[builder_cfg['model']] |
145 # TODO(borenet): Replace this hack with something better. | 145 # TODO(borenet): Replace this hack with something better. |
146 dimensions['os'] = 'iOS-9.2' | 146 dimensions['os'] = 'iOS-9.3.1' |
147 elif builder_cfg['cpu_or_gpu'] == 'CPU': | 147 elif builder_cfg['cpu_or_gpu'] == 'CPU': |
148 dimensions['gpu'] = 'none' | 148 dimensions['gpu'] = 'none' |
149 dimensions['cpu'] = { | 149 dimensions['cpu'] = { |
150 'AVX': 'x86-64', | 150 'AVX': 'x86-64', |
151 'AVX2': 'x86-64-avx2', | 151 'AVX2': 'x86-64-avx2', |
152 'SSE4': 'x86-64', | 152 'SSE4': 'x86-64', |
153 }[builder_cfg['cpu_or_gpu_value']] | 153 }[builder_cfg['cpu_or_gpu_value']] |
154 if ('Win' in builder_cfg['os'] and | 154 if ('Win' in builder_cfg['os'] and |
155 builder_cfg['cpu_or_gpu_value'] == 'AVX2'): | 155 builder_cfg['cpu_or_gpu_value'] == 'AVX2'): |
156 # AVX2 is not correctly detected on Windows. Fall back on other | 156 # 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', | 766 path_config='kitchen', |
767 revision='abc123', | 767 revision='abc123', |
768 **gerrit_kwargs) + | 768 **gerrit_kwargs) + |
769 api.step_data( | 769 api.step_data( |
770 'upload new .isolated file for test_skia', | 770 'upload new .isolated file for test_skia', |
771 stdout=api.raw_io.output('def456 XYZ.isolated')) + | 771 stdout=api.raw_io.output('def456 XYZ.isolated')) + |
772 api.step_data( | 772 api.step_data( |
773 'upload new .isolated file for upload_dm_results_skia', | 773 'upload new .isolated file for upload_dm_results_skia', |
774 stdout=api.raw_io.output('def456 XYZ.isolated')) | 774 stdout=api.raw_io.output('def456 XYZ.isolated')) |
775 ) | 775 ) |
OLD | NEW |