Chromium Code Reviews

Side by Side Diff: slave/skia_slave_scripts/build_step.py

Issue 295753002: upload SKP renderings that did not match expectations (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 """Base class for all slave-side build steps. """ 5 """Base class for all slave-side build steps. """
6 6
7 import config 7 import config
8 # pylint: disable=W0611 8 # pylint: disable=W0611
9 import flavor_utils 9 import flavor_utils
10 import imp 10 import imp
(...skipping 184 matching lines...)
195 self._local_playback_dirs = LocalSkpPlaybackDirs( 195 self._local_playback_dirs = LocalSkpPlaybackDirs(
196 self._builder_name, 196 self._builder_name,
197 None if args['perf_output_basedir'] == 'None' 197 None if args['perf_output_basedir'] == 'None'
198 else args['perf_output_basedir']) 198 else args['perf_output_basedir'])
199 self._storage_playback_dirs = StorageSkpPlaybackDirs( 199 self._storage_playback_dirs = StorageSkpPlaybackDirs(
200 self._builder_name, 200 self._builder_name,
201 None if args['perf_output_basedir'] == 'None' 201 None if args['perf_output_basedir'] == 'None'
202 else args['perf_output_basedir']) 202 else args['perf_output_basedir'])
203 203
204 self.skp_dir = self._local_playback_dirs.PlaybackSkpDir() 204 self.skp_dir = self._local_playback_dirs.PlaybackSkpDir()
205 self.skp_out_dir = self._local_playback_dirs.PlaybackImageResultsDir() 205 self.playback_actual_images_dir = (
206 self._local_playback_dirs.PlaybackActualImagesDir())
borenet 2014/05/19 21:04:38 So I never understood this - what's the deal with
epoger 2014/05/19 22:07:24 It was bugging me too as I wrote the CL, although
epoger 2014/05/20 19:02:48 Added a TODO above.
207 self.playback_actual_summaries_dir = (
208 self._local_playback_dirs.PlaybackActualSummariesDir())
209 self.playback_expected_summaries_dir = (
210 self._local_playback_dirs.PlaybackExpectedSummariesDir())
206 211
207 # Figure out where we are going to store performance related data. 212 # Figure out where we are going to store performance related data.
208 if args['perf_output_basedir'] != 'None': 213 if args['perf_output_basedir'] != 'None':
209 self._perf_data_dir = os.path.join(args['perf_output_basedir'], 214 self._perf_data_dir = os.path.join(args['perf_output_basedir'],
210 self._builder_name, 'data') 215 self._builder_name, 'data')
211 self._perf_graphs_dir = os.path.join(args['perf_output_basedir'], 216 self._perf_graphs_dir = os.path.join(args['perf_output_basedir'],
212 self._builder_name, 'graphs') 217 self._builder_name, 'graphs')
213 self._perf_range_input_dir = os.path.join( 218 self._perf_range_input_dir = os.path.join(
214 args['perf_output_basedir'], self._builder_name, 'expectations') 219 args['perf_output_basedir'], self._builder_name, 'expectations')
215 self._perf_autogen_upload_dir = os.path.join( 220 self._perf_autogen_upload_dir = os.path.join(
(...skipping 164 matching lines...)
380 else: 385 else:
381 raise BuildStepFailure('Build step failed.') 386 raise BuildStepFailure('Build step failed.')
382 except Exception: 387 except Exception:
383 print traceback.format_exc() 388 print traceback.format_exc()
384 if attempt + 1 >= step.attempts: 389 if attempt + 1 >= step.attempts:
385 raise 390 raise
386 # pylint: disable=W0212 391 # pylint: disable=W0212
387 step._WaitFunc(attempt) 392 step._WaitFunc(attempt)
388 attempt += 1 393 attempt += 1
389 print '**** %s, attempt %d ****' % (StepType.__name__, attempt + 1) 394 print '**** %s, attempt %d ****' % (StepType.__name__, attempt + 1)
OLDNEW

Powered by Google App Engine