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

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

Issue 313203003: on CompareGMs failure, show link to most recent results on this builder (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 years, 6 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 | slave/skia_slave_scripts/compare_gms.py » ('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 (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 25 matching lines...) Expand all
36 CONFIG_DEBUG = 'Debug' 36 CONFIG_DEBUG = 'Debug'
37 CONFIG_RELEASE = 'Release' 37 CONFIG_RELEASE = 'Release'
38 CONFIGURATIONS = [CONFIG_DEBUG, CONFIG_RELEASE] 38 CONFIGURATIONS = [CONFIG_DEBUG, CONFIG_RELEASE]
39 39
40 40
41 _RUNGYP_STEP_DESCRIPTION = 'RunGYP' 41 _RUNGYP_STEP_DESCRIPTION = 'RunGYP'
42 _COMPILE_STEP_PREFIX = 'Build' 42 _COMPILE_STEP_PREFIX = 'Build'
43 _COMPILE_RETRY_PREFIX = 'Retry_' + _COMPILE_STEP_PREFIX 43 _COMPILE_RETRY_PREFIX = 'Retry_' + _COMPILE_STEP_PREFIX
44 _COMPILE_NO_WERR_PREFIX = 'Retry_NoWarningsAsErrors_' + _COMPILE_STEP_PREFIX 44 _COMPILE_NO_WERR_PREFIX = 'Retry_NoWarningsAsErrors_' + _COMPILE_STEP_PREFIX
45 45
46 # EPOGER: how can I share this definition with compare_gms.py?
borenet 2014/06/05 14:36:10 global_variables.json.
47 LATEST_GM_FAILURES_PREAMBLE = 'View latest GM failures for this builder at: '
48
46 49
47 class SkiaFactory(BuildFactory): 50 class SkiaFactory(BuildFactory):
48 """Encapsulates data and methods common to the Skia master.cfg files.""" 51 """Encapsulates data and methods common to the Skia master.cfg files."""
49 52
50 def __init__(self, other_repos=None, do_upload_render_results=False, 53 def __init__(self, other_repos=None, do_upload_render_results=False,
51 do_upload_bench_results=False, do_patch_step=False, 54 do_upload_bench_results=False, do_patch_step=False,
52 build_subdir='skia', target_platform=None, 55 build_subdir='skia', target_platform=None,
53 configuration=CONFIG_DEBUG, default_timeout=8*60*60, 56 configuration=CONFIG_DEBUG, default_timeout=8*60*60,
54 deps_target_os=None, environment_variables=None, 57 deps_target_os=None, environment_variables=None,
55 perf_output_basedir=None, builder_name=None, flavor=None, 58 perf_output_basedir=None, builder_name=None, flavor=None,
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 def PostBench(self): 527 def PostBench(self):
525 """ Step to run after the benchmarking steps. """ 528 """ Step to run after the benchmarking steps. """
526 self.AddFlavoredSlaveScript(script='postbench.py', 529 self.AddFlavoredSlaveScript(script='postbench.py',
527 description='PostBench', 530 description='PostBench',
528 exception_on_failure=True) 531 exception_on_failure=True)
529 532
530 def CompareGMs(self): 533 def CompareGMs(self):
531 """Compare the actually-generated GM images to the checked-in baselines.""" 534 """Compare the actually-generated GM images to the checked-in baselines."""
532 self.AddSlaveScript(script='compare_gms.py', 535 self.AddSlaveScript(script='compare_gms.py',
533 description='CompareGMs', 536 description='CompareGMs',
537 get_props_from_stdout={
epoger 2014/06/04 21:55:11 Unfortunately, this doesn't work. https://github.
borenet 2014/06/05 14:36:10 We can probably change the logic in master/skia_ma
epoger 2014/06/05 15:08:43 Ultimately, my vision is of something like http://
538 'latest_gm_failures_url':
539 '%s(\w+)' % LATEST_GM_FAILURES_PREAMBLE},
534 is_rebaseline_step=True) 540 is_rebaseline_step=True)
535 541
536 def CompareRenderedSKPs(self): 542 def CompareRenderedSKPs(self):
537 """Compare the actual image results of SKP rendering to expectations.""" 543 """Compare the actual image results of SKP rendering to expectations."""
538 self.AddSlaveScript(script='compare_rendered_skps.py', 544 self.AddSlaveScript(script='compare_rendered_skps.py',
539 description='CompareRenderedSKPs', 545 description='CompareRenderedSKPs',
540 is_rebaseline_step=True) 546 is_rebaseline_step=True)
541 547
542 def RunBench(self): 548 def RunBench(self):
543 """ Run "bench", piping the output somewhere so we can graph 549 """ Run "bench", piping the output somewhere so we can graph
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 # Perf-only builder. 813 # Perf-only builder.
808 if not self._perf_output_basedir: 814 if not self._perf_output_basedir:
809 raise ValueError( 815 raise ValueError(
810 'BuildPerfOnly requires perf_output_basedir to be defined.') 816 'BuildPerfOnly requires perf_output_basedir to be defined.')
811 if self._configuration != CONFIG_RELEASE: 817 if self._configuration != CONFIG_RELEASE:
812 raise ValueError('BuildPerfOnly should run in %s configuration.' % 818 raise ValueError('BuildPerfOnly should run in %s configuration.' %
813 CONFIG_RELEASE) 819 CONFIG_RELEASE)
814 self.PerfSteps() 820 self.PerfSteps()
815 self.Validate() 821 self.Validate()
816 return self 822 return self
OLDNEW
« no previous file with comments | « no previous file | slave/skia_slave_scripts/compare_gms.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698