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

Side by Side Diff: scripts/slave/recipe_modules/gpu/api.py

Issue 121883002: Re-land: Switch GPU pixel tests to use cloud storage instead of the local disk. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | scripts/slave/recipes/gpu/build_and_test.expected/linux_debug.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 from slave import recipe_api 5 from slave import recipe_api
6 6
7 SIMPLE_TESTS_TO_RUN = [ 7 SIMPLE_TESTS_TO_RUN = [
8 'content_gl_tests', 8 'content_gl_tests',
9 'gles2_conform_test', 9 'gles2_conform_test',
10 'gl_tests', 10 'gl_tests',
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 env['CHROME_DEVEL_SANDBOX'] = '/opt/chromium/chrome_sandbox' 130 env['CHROME_DEVEL_SANDBOX'] = '/opt/chromium/chrome_sandbox'
131 131
132 # Google Maps Pixel tests. 132 # Google Maps Pixel tests.
133 yield self.run_telemetry_gpu_test('maps', name='maps_pixel_test', 133 yield self.run_telemetry_gpu_test('maps', name='maps_pixel_test',
134 args=[ 134 args=[
135 '--generated-dir=%s' % self._generated_dir, 135 '--generated-dir=%s' % self._generated_dir,
136 '--build-revision=%s' % self._build_revision, 136 '--build-revision=%s' % self._build_revision,
137 ]) 137 ])
138 138
139 # Pixel tests. 139 # Pixel tests.
140 # Try servers pull their results from cloud storage; the other
141 # tester bots send their results to cloud storage.
142 #
143 # NOTE that ALL of the bots need to share a bucket. They can't be split
144 # by mastername/waterfall, because the try servers are on a different
145 # waterfall (tryserver.chromium) than the other test bots (chromium.gpu
146 # and chromium.webkit, as of this writing). This means there will be
147 # races between bots with identical OS/GPU combinations, on different
148 # waterfalls, attempting to upload results for new versions of each
149 # pixel test. If this is a significant problem in practice then we will
150 # have to rethink the cloud storage code in the pixel tests.
151 ref_img_arg = '--upload-refimg-to-cloud-storage'
152 if 'rietveld' in self.m.properties:
153 ref_img_arg = '--download-refimg-from-cloud-storage'
154 cloud_storage_bucket = 'chromium-gpu-archive/reference-images'
140 yield self.run_telemetry_gpu_test('pixel_test', 155 yield self.run_telemetry_gpu_test('pixel_test',
141 args=[ 156 args=[
142 '--generated-dir=%s' % self._generated_dir, 157 '--build-revision',
143 '--reference-dir=%s' % self._reference_dir, 158 str(self._build_revision),
144 '--build-revision=%s' % self._build_revision, 159 ref_img_arg,
160 '--refimg-cloud-storage-bucket',
161 cloud_storage_bucket,
162 '--os-type',
163 self.m.chromium.c.TARGET_PLATFORM,
164 '--test-machine-name',
165 self.m.properties['buildername']
145 ]) 166 ])
146 167
147 # Archive telemetry pixel test results 168 # Archive telemetry pixel test results
148 yield self.archive_pixel_test_results('archive_pixel_test_results', 169 yield self.archive_pixel_test_results('archive_pixel_test_results',
149 '%s_%s_telemetry' % (self._build_revision, 170 '%s_%s_telemetry' % (self._build_revision,
150 self.m.properties['buildername']), 171 self.m.properties['buildername']),
151 generated_dir=self._generated_dir, 172 generated_dir=self._generated_dir,
152 reference_dir=self._generated_dir) # This mismatch is intentional. 173 reference_dir=self._generated_dir) # This mismatch is intentional.
153 # Reference images are copied into the generated directory upon failure 174 # Reference images are copied into the generated directory upon failure
154 # to ensure that they get archived with the correct name. 175 # to ensure that they get archived with the correct name.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 platform_ext={'win': '.bat'}) 244 platform_ext={'win': '.bat'})
224 245
225 args = ['--run-id', run_id, 246 args = ['--run-id', run_id,
226 '--generated-dir', generated_dir, 247 '--generated-dir', generated_dir,
227 '--gpu-reference-dir', reference_dir, 248 '--gpu-reference-dir', reference_dir,
228 '--gsutil', gsutil] 249 '--gsutil', gsutil]
229 return self.m.python(name, 250 return self.m.python(name,
230 self.m.path.build('scripts', 'slave', 'chromium', 251 self.m.path.build('scripts', 'slave', 'chromium',
231 'archive_gpu_pixel_test_results.py'), 252 'archive_gpu_pixel_test_results.py'),
232 args, always_run=True) 253 args, always_run=True)
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/gpu/build_and_test.expected/linux_debug.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698