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

Side by Side Diff: tools/rebaseline.py

Issue 22866023: temporarily hard-code builder list in rebaseline.py, for quick startup (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 ''' 3 '''
4 Copyright 2012 Google Inc. 4 Copyright 2012 Google Inc.
5 5
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 ''' 8 '''
9 9
10 ''' 10 '''
(...skipping 17 matching lines...) Expand all
28 # Make sure that the 'gm' dir is in the PYTHONPATH, but add it at the *end* 28 # Make sure that the 'gm' dir is in the PYTHONPATH, but add it at the *end*
29 # so any dirs that are already in the PYTHONPATH will be preferred. 29 # so any dirs that are already in the PYTHONPATH will be preferred.
30 # 30 #
31 # This assumes that the 'gm' directory has been checked out as a sibling of 31 # This assumes that the 'gm' directory has been checked out as a sibling of
32 # the 'tools' directory containing this script, which will be the case if 32 # the 'tools' directory containing this script, which will be the case if
33 # 'trunk' was checked out as a single unit. 33 # 'trunk' was checked out as a single unit.
34 GM_DIRECTORY = os.path.realpath( 34 GM_DIRECTORY = os.path.realpath(
35 os.path.join(os.path.dirname(os.path.dirname(__file__)), 'gm')) 35 os.path.join(os.path.dirname(os.path.dirname(__file__)), 'gm'))
36 if GM_DIRECTORY not in sys.path: 36 if GM_DIRECTORY not in sys.path:
37 sys.path.append(GM_DIRECTORY) 37 sys.path.append(GM_DIRECTORY)
38 import buildbot_globals
39 import gm_json 38 import gm_json
40 39
41 MASTER_HOST_URL = 'http://%s:%s' % ( 40 # TODO(epoger): In the long run, we want to build this list automatically,
42 buildbot_globals.Get('public_master_host'), 41 # but for now we hard-code it until we can properly address
43 buildbot_globals.Get('public_external_port')) 42 # https://code.google.com/p/skia/issues/detail?id=1544
44 ALL_BUILDERS = list(json.load(urllib2.urlopen( 43 # ('live query of builder list makes rebaseline.py slow to start up')
45 MASTER_HOST_URL + '/json/builders'))) 44 TEST_BUILDERS = [
46 TEST_BUILDERS = filter(lambda x: 'Trybot' not in x and 'Test' in x, 45 'Test-Android-GalaxyNexus-SGX540-Arm7-Debug',
47 ALL_BUILDERS) 46 'Test-Android-GalaxyNexus-SGX540-Arm7-Release',
47 'Test-Android-IntelRhb-SGX544-x86-Debug',
48 'Test-Android-IntelRhb-SGX544-x86-Release',
49 'Test-Android-Nexus10-MaliT604-Arm7-Debug',
50 'Test-Android-Nexus10-MaliT604-Arm7-Release',
51 'Test-Android-Nexus4-Adreno320-Arm7-Debug',
52 'Test-Android-Nexus4-Adreno320-Arm7-Release',
53 'Test-Android-Nexus7-Tegra3-Arm7-Debug',
54 'Test-Android-Nexus7-Tegra3-Arm7-Release',
55 'Test-Android-NexusS-SGX540-Arm7-Debug',
56 'Test-Android-NexusS-SGX540-Arm7-Release',
57 'Test-Android-Xoom-Tegra2-Arm7-Debug',
58 'Test-Android-Xoom-Tegra2-Arm7-Release',
59 'Test-ChromeOS-Alex-GMA3150-x86-Debug',
60 'Test-ChromeOS-Alex-GMA3150-x86-Release',
61 'Test-ChromeOS-Daisy-MaliT604-Arm7-Debug',
62 'Test-ChromeOS-Daisy-MaliT604-Arm7-Release',
63 'Test-ChromeOS-Link-HD4000-x86_64-Debug',
64 'Test-ChromeOS-Link-HD4000-x86_64-Release',
65 'Test-Mac10.6-MacMini4.1-GeForce320M-x86-Debug',
66 'Test-Mac10.6-MacMini4.1-GeForce320M-x86-Release',
67 'Test-Mac10.6-MacMini4.1-GeForce320M-x86_64-Debug',
68 'Test-Mac10.6-MacMini4.1-GeForce320M-x86_64-Release',
69 'Test-Mac10.7-MacMini4.1-GeForce320M-x86-Debug',
70 'Test-Mac10.7-MacMini4.1-GeForce320M-x86-Release',
71 'Test-Mac10.7-MacMini4.1-GeForce320M-x86_64-Debug',
72 'Test-Mac10.7-MacMini4.1-GeForce320M-x86_64-Release',
73 'Test-Mac10.8-MacMini4.1-GeForce320M-x86-Debug',
74 'Test-Mac10.8-MacMini4.1-GeForce320M-x86-Release',
75 'Test-Mac10.8-MacMini4.1-GeForce320M-x86_64-Debug',
76 'Test-Mac10.8-MacMini4.1-GeForce320M-x86_64-Release',
77 'Test-Ubuntu12-ShuttleA-ATI5770-x86-Debug',
78 'Test-Ubuntu12-ShuttleA-ATI5770-x86-Release',
79 'Test-Ubuntu12-ShuttleA-ATI5770-x86_64-Debug',
80 'Test-Ubuntu12-ShuttleA-ATI5770-x86_64-Release',
81 'Test-Ubuntu12-ShuttleA-HD2000-x86_64-Release-Valgrind',
82 'Test-Ubuntu12-ShuttleA-NoGPU-x86_64-Debug',
83 'Test-Ubuntu13-ShuttleA-HD2000-x86_64-Debug-ASAN',
84 'Test-Win7-ShuttleA-HD2000-x86-Debug',
85 'Test-Win7-ShuttleA-HD2000-x86-Debug-ANGLE',
86 'Test-Win7-ShuttleA-HD2000-x86-Debug-DirectWrite',
87 'Test-Win7-ShuttleA-HD2000-x86-Release',
88 'Test-Win7-ShuttleA-HD2000-x86-Release-ANGLE',
89 'Test-Win7-ShuttleA-HD2000-x86-Release-DirectWrite',
90 'Test-Win7-ShuttleA-HD2000-x86_64-Debug',
91 'Test-Win7-ShuttleA-HD2000-x86_64-Release',
92 ]
48 93
49 class _InternalException(Exception): 94 class _InternalException(Exception):
50 pass 95 pass
51 96
52 # Object that handles exceptions, either raising them immediately or collecting 97 # Object that handles exceptions, either raising them immediately or collecting
53 # them to display later on. 98 # them to display later on.
54 class ExceptionHandler(object): 99 class ExceptionHandler(object):
55 100
56 # params: 101 # params:
57 # keep_going_on_failure: if False, report failures and quit right away; 102 # keep_going_on_failure: if False, report failures and quit right away;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 add_new=args.add_new) 377 add_new=args.add_new)
333 try: 378 try:
334 rebaseliner.RebaselineSubdir(builder=builder) 379 rebaseliner.RebaselineSubdir(builder=builder)
335 except BaseException as e: 380 except BaseException as e:
336 exception_handler.RaiseExceptionOrContinue(e) 381 exception_handler.RaiseExceptionOrContinue(e)
337 else: 382 else:
338 exception_handler.RaiseExceptionOrContinue(_InternalException( 383 exception_handler.RaiseExceptionOrContinue(_InternalException(
339 'expectations_json_file %s not found' % expectations_json_file)) 384 'expectations_json_file %s not found' % expectations_json_file))
340 385
341 exception_handler.ReportAllFailures() 386 exception_handler.ReportAllFailures()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698