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

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

Issue 196653010: Reads bench expectations from skia-autogen svn repo. (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 years, 9 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
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 self._builder_name, 203 self._builder_name,
204 None if args['perf_output_basedir'] == 'None' 204 None if args['perf_output_basedir'] == 'None'
205 else args['perf_output_basedir']) 205 else args['perf_output_basedir'])
206 self._storage_playback_dirs = StorageSkpPlaybackDirs( 206 self._storage_playback_dirs = StorageSkpPlaybackDirs(
207 self._builder_name, 207 self._builder_name,
208 None if args['perf_output_basedir'] == 'None' 208 None if args['perf_output_basedir'] == 'None'
209 else args['perf_output_basedir']) 209 else args['perf_output_basedir'])
210 210
211 self._skp_dir = self._local_playback_dirs.PlaybackSkpDir() 211 self._skp_dir = self._local_playback_dirs.PlaybackSkpDir()
212 212
213 # Figure out where we are going to store performance output. 213 # Figure out where we are going to store performance related data.
214 if args['perf_output_basedir'] != 'None': 214 if args['perf_output_basedir'] != 'None':
215 self._perf_data_dir = os.path.join(args['perf_output_basedir'], 215 self._perf_data_dir = os.path.join(args['perf_output_basedir'],
216 self._builder_name, 'data') 216 self._builder_name, 'data')
217 self._perf_graphs_dir = os.path.join(args['perf_output_basedir'], 217 self._perf_graphs_dir = os.path.join(args['perf_output_basedir'],
218 self._builder_name, 'graphs') 218 self._builder_name, 'graphs')
219 self._perf_range_input_dir = os.path.join(
220 args['perf_output_basedir'], self._builder_name, 'expectations')
221 self._perf_range_autogen_upload_dir = os.path.join(
222 args['perf_output_basedir'], self._builder_name, 'autogen_upload')
borenet 2014/03/13 20:45:37 These will soon be used by other steps than check_
benchen 2014/03/14 01:41:10 Yes, it's clearer that way. Deleted perf_range_aut
219 else: 223 else:
220 self._perf_data_dir = None 224 self._perf_data_dir = None
221 self._perf_graphs_dir = None 225 self._perf_graphs_dir = None
226 self._perf_range_input_dir = None
227 self._perf_range_autogen_upload_dir = None
222 228
223 self._skimage_in_dir = os.path.join(os.pardir, 'skimage_in') 229 self._skimage_in_dir = os.path.join(os.pardir, 'skimage_in')
224 230
225 self._skimage_expected_dir = os.path.join('expectations', 'skimage') 231 self._skimage_expected_dir = os.path.join('expectations', 'skimage')
226 232
227 self._skimage_out_dir = os.path.join('out', self._configuration, 233 self._skimage_out_dir = os.path.join('out', self._configuration,
228 'skimage_out') 234 'skimage_out')
229 235
230 self._device_dirs = self._flavor_utils.GetDeviceDirs() 236 self._device_dirs = self._flavor_utils.GetDeviceDirs()
231 237
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 else: 382 else:
377 raise BuildStepFailure('Build step failed.') 383 raise BuildStepFailure('Build step failed.')
378 except Exception: 384 except Exception:
379 print traceback.format_exc() 385 print traceback.format_exc()
380 if attempt + 1 >= step.attempts: 386 if attempt + 1 >= step.attempts:
381 raise 387 raise
382 # pylint: disable=W0212 388 # pylint: disable=W0212
383 step._WaitFunc(attempt) 389 step._WaitFunc(attempt)
384 attempt += 1 390 attempt += 1
385 print '**** %s, attempt %d ****' % (StepType.__name__, attempt + 1) 391 print '**** %s, attempt %d ****' % (StepType.__name__, attempt + 1)
OLDNEW
« no previous file with comments | « no previous file | slave/skia_slave_scripts/check_for_regressions.py » ('j') | slave/skia_slave_scripts/check_for_regressions.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698