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

Side by Side Diff: master/skia_master_scripts/factory.py

Issue 12785002: Split GenerateBenchGraphs into three build steps (Closed) Base URL: http://skia.googlecode.com/svn/buildbot/
Patch Set: Created 7 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 | Annotate | Revision Log
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 5
6 """Utility class to build the Skia master BuildFactory's. 6 """Utility class to build the Skia master BuildFactory's.
7 7
8 Based on gclient_factory.py and adds Skia-specific steps.""" 8 Based on gclient_factory.py and adds Skia-specific steps."""
9 9
10 10
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 def RunBench(self): 328 def RunBench(self):
329 """ Run "bench", piping the output somewhere so we can graph 329 """ Run "bench", piping the output somewhere so we can graph
330 results over time. """ 330 results over time. """
331 self.AddFlavoredSlaveScript(script='run_bench.py', description='RunBench') 331 self.AddFlavoredSlaveScript(script='run_bench.py', description='RunBench')
332 332
333 def BenchPictures(self): 333 def BenchPictures(self):
334 """ Run "bench_pictures" """ 334 """ Run "bench_pictures" """
335 self.AddFlavoredSlaveScript(script='bench_pictures.py', 335 self.AddFlavoredSlaveScript(script='bench_pictures.py',
336 description='BenchPictures') 336 description='BenchPictures')
337 337
338 def CheckForRegressions(self):
epoger 2013/03/12 15:58:33 maybe CheckForBenchRegressions ? Just to differen
339 """ Check for benchmark regressions. """
340 self.AddSlaveScript(script='check_for_regressions.py',
341 description='CheckForRegressions')
342
338 def BenchGraphs(self): 343 def BenchGraphs(self):
339 """ Generate bench performance graphs. """ 344 """ Generate bench performance graphs. """
340 self.AddSlaveScript(script='generate_bench_graphs.py', 345 self.AddSlaveScript(script='generate_bench_graphs.py',
341 description='GenerateBenchGraphs') 346 description='GenerateBenchGraphs')
342 347
343 def GenerateWebpagePictureBenchGraphs(self): 348 def GenerateWebpagePictureBenchGraphs(self):
344 """ Generate webpage picture bench performance graphs. """ 349 """ Generate webpage picture bench performance graphs. """
345 self.AddSlaveScript(script='generate_webpage_picture_bench_graphs.py', 350 self.AddSlaveScript(script='generate_webpage_picture_bench_graphs.py',
346 description='GenerateWebpagePictureBenchGraphs') 351 description='GenerateWebpagePictureBenchGraphs')
347 352
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 """ Upload webpage picture bench performance graphs (but only if we have 397 """ Upload webpage picture bench performance graphs (but only if we have
393 been recording bench output for this build type). """ 398 been recording bench output for this build type). """
394 self.AddSlaveScript(script='upload_webpage_picture_bench_graphs.py', 399 self.AddSlaveScript(script='upload_webpage_picture_bench_graphs.py',
395 description='UploadWebpagePictureBenchGraphs') 400 description='UploadWebpagePictureBenchGraphs')
396 401
397 def UploadBenchResults(self): 402 def UploadBenchResults(self):
398 """ Upload bench results (performance data). """ 403 """ Upload bench results (performance data). """
399 self.AddSlaveScript(script='upload_bench_results.py', 404 self.AddSlaveScript(script='upload_bench_results.py',
400 description='UploadBenchResults') 405 description='UploadBenchResults')
401 406
407 def UploadBenchResultsToAppEngine(self):
408 """ Upload bench results (performance data) to AppEngine. """
409 self.AddSlaveScript(script='upload_bench_results_appengine.py',
410 description='UploadBenchResultsToAppengine')
411
402 def UploadWebpagePictureBenchResults(self): 412 def UploadWebpagePictureBenchResults(self):
403 """ Upload webpage picture bench results (performance data). """ 413 """ Upload webpage picture bench results (performance data). """
404 self.AddSlaveScript(script='upload_webpage_picture_bench_results.py', 414 self.AddSlaveScript(script='upload_webpage_picture_bench_results.py',
405 description='UploadWebpagePictureBenchResults') 415 description='UploadWebpagePictureBenchResults')
406 416
407 417
408 def UploadGMResults(self): 418 def UploadGMResults(self):
409 """ Upload the images generated by GM """ 419 """ Upload the images generated by GM """
410 args = ['--autogen_svn_username_file', self._autogen_svn_username_file, 420 args = ['--autogen_svn_username_file', self._autogen_svn_username_file,
411 '--autogen_svn_password_file', self._autogen_svn_password_file] 421 '--autogen_svn_password_file', self._autogen_svn_password_file]
(...skipping 22 matching lines...) Expand all
434 if self._use_skp_playback_framework: 444 if self._use_skp_playback_framework:
435 self.CompareAndUploadWebpageGMs() 445 self.CompareAndUploadWebpageGMs()
436 self.CompareGMs() 446 self.CompareGMs()
437 447
438 def PerfSteps(self): 448 def PerfSteps(self):
439 """ Add performance testing BuildSteps. """ 449 """ Add performance testing BuildSteps. """
440 self.PreBench() 450 self.PreBench()
441 self.RunBench() 451 self.RunBench()
442 self.BenchPictures() 452 self.BenchPictures()
443 self.PostBench() 453 self.PostBench()
454 self.CheckForRegressions()
444 self.BenchGraphs() 455 self.BenchGraphs()
445 if self._do_upload_bench_results: 456 if self._do_upload_bench_results:
446 self.UploadBenchResults() 457 self.UploadBenchResults()
458 self.UploadBenchResultsToAppEngine()
447 self.UploadBenchGraphs() 459 self.UploadBenchGraphs()
448 460
449 def Build(self, clobber=None): 461 def Build(self, clobber=None):
450 """Build and return the complete BuildFactory. 462 """Build and return the complete BuildFactory.
451 463
452 clobber: boolean indicating whether we should clean before building 464 clobber: boolean indicating whether we should clean before building
453 """ 465 """
454 self.CommonSteps(clobber) 466 self.CommonSteps(clobber)
455 self.NonPerfSteps() 467 self.NonPerfSteps()
456 self.PerfSteps() 468 self.PerfSteps()
(...skipping 17 matching lines...) Expand all
474 """ 486 """
475 if not self._perf_output_basedir: 487 if not self._perf_output_basedir:
476 raise ValueError( 488 raise ValueError(
477 'BuildPerfOnly requires perf_output_basedir to be defined.') 489 'BuildPerfOnly requires perf_output_basedir to be defined.')
478 if self._configuration != CONFIG_RELEASE: 490 if self._configuration != CONFIG_RELEASE:
479 raise ValueError('BuildPerfOnly should run in %s configuration.' % 491 raise ValueError('BuildPerfOnly should run in %s configuration.' %
480 CONFIG_RELEASE) 492 CONFIG_RELEASE)
481 self.CommonSteps(clobber) 493 self.CommonSteps(clobber)
482 self.PerfSteps() 494 self.PerfSteps()
483 return self 495 return self
OLDNEW
« no previous file with comments | « no previous file | site_config/global_variables.json » ('j') | slave/skia_slave_scripts/check_for_regressions.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698