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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/builders.py

Issue 301853003: Make update-flaky-tests to work again and support all bots (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed use of operator.attrgetter 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 19 matching lines...) Expand all
30 30
31 from webkitpy.common.memoized import memoized 31 from webkitpy.common.memoized import memoized
32 32
33 33
34 # In this dictionary, each item stores: 34 # In this dictionary, each item stores:
35 # * port_name -- a fully qualified port name 35 # * port_name -- a fully qualified port name
36 # * rebaseline_override_dir -- (optional) directory to put baselines in instead of where you would normally put them. 36 # * rebaseline_override_dir -- (optional) directory to put baselines in instead of where you would normally put them.
37 # This is useful when we don't have bots that cover particular configuratio ns; so, e.g., you might 37 # This is useful when we don't have bots that cover particular configuratio ns; so, e.g., you might
38 # support mac-mountainlion but not have a mac-mountainlion bot yet, so you' d want to put the mac-lion 38 # support mac-mountainlion but not have a mac-mountainlion bot yet, so you' d want to put the mac-lion
39 # results into platform/mac temporarily. 39 # results into platform/mac temporarily.
40 # * specifiers -- TestExpectation specifiers for that config. Valid values are f ound in
41 # TestExpectationsParser._configuration_tokens_list
40 42
41 _exact_matches = { 43 _exact_matches = {
42 "WebKit XP": {"port_name": "win-xp"}, 44 "WebKit XP": {"port_name": "win-xp", "specifiers": ['XP', 'Release']},
43 "WebKit Win7": {"port_name": "win-win7"}, 45 "WebKit Win7": {"port_name": "win-win7", "specifiers": ['Win7', 'Release']},
44 "WebKit Win7 (dbg)": {"port_name": "win-win7"}, 46 "WebKit Win7 (dbg)": {"port_name": "win-win7", "specifiers": ['Win7', 'Debug ']},
45 "WebKit Linux": {"port_name": "linux-x86_64"}, 47 "WebKit Linux": {"port_name": "linux-x86_64", "specifiers": ['Linux', 'Relea se']},
46 "WebKit Linux 32": {"port_name": "linux-x86"}, 48 "WebKit Linux 32": {"port_name": "linux-x86", "specifiers": ['Linux', 'Relea se']},
47 "WebKit Linux (dbg)": {"port_name": "linux-x86_64"}, 49 "WebKit Linux (dbg)": {"port_name": "linux-x86_64", "specifiers": ['Linux', 'Debug']},
48 "WebKit Linux ASAN": {"port_name": "linux-x86_64"}, 50 "WebKit Mac10.6": {"port_name": "mac-snowleopard", "specifiers": ['SnowLeopa rd', 'Release']},
49 "WebKit Mac10.6": {"port_name": "mac-snowleopard"}, 51 "WebKit Mac10.6 (dbg)": {"port_name": "mac-snowleopard", "specifiers": ['Sno wLeopard', 'Debug']},
50 "WebKit Mac10.6 (dbg)": {"port_name": "mac-snowleopard"}, 52 "WebKit Mac10.7": {"port_name": "mac-lion", "specifiers": ['Lion', 'Release' ]},
51 "WebKit Mac10.7": {"port_name": "mac-lion"}, 53 "WebKit Mac10.7 (dbg)": {"port_name": "mac-lion", "specifiers": ['Lion', 'De bug']},
52 "WebKit Mac10.7 (dbg)": {"port_name": "mac-lion"}, 54 "WebKit Mac10.8": {"port_name": "mac-mountainlion", "specifiers": ['Mountain Lion', 'Release']},
53 "WebKit Mac10.8": {"port_name": "mac-mountainlion"}, 55 "WebKit Mac10.8 (retina)": {"port_name": "mac-retina", "specifiers": ['Retin a', 'Release']},
54 "WebKit Mac10.8 (retina)": {"port_name": "mac-retina"}, 56 "WebKit Mac10.9": {"port_name": "mac-mavericks", "specifiers": ['Mavericks', 'Release']},
55 "WebKit Mac10.9": {"port_name": "mac-mavericks"}, 57 "WebKit Android (Nexus4)": {"port_name": "android", "specifiers": ['Android' , 'Release']},
56 "WebKit Android (Nexus4)": {"port_name": "android"},
57 } 58 }
58 59
59 60
60 # Mapping from port name to the deps builder of the same os: 61 # Mapping from port name to the deps builder of the same os:
61 _deps_builders = { 62 _deps_builders = {
62 "linux-x86": "WebKit Linux (deps)", 63 "linux-x86": "WebKit Linux (deps)",
63 "linux-x86_64": "WebKit Linux (deps)", 64 "linux-x86_64": "WebKit Linux (deps)",
64 "win-xp": "WebKit XP (deps)", 65 "win-xp": "WebKit XP (deps)",
65 "win-win7": "WebKit XP (deps)", 66 "win-win7": "WebKit XP (deps)",
66 "mac-snowleopard": "WebKit Mac10.6 (deps)", 67 "mac-snowleopard": "WebKit Mac10.6 (deps)",
(...skipping 21 matching lines...) Expand all
88 89
89 90
90 def rebaseline_override_dir(builder_name): 91 def rebaseline_override_dir(builder_name):
91 return _exact_matches[builder_name].get("rebaseline_override_dir", None) 92 return _exact_matches[builder_name].get("rebaseline_override_dir", None)
92 93
93 94
94 def port_name_for_builder_name(builder_name): 95 def port_name_for_builder_name(builder_name):
95 return _exact_matches[builder_name]["port_name"] 96 return _exact_matches[builder_name]["port_name"]
96 97
97 98
99 def specifiers_for_builder(builder_name):
100 return _exact_matches[builder_name]["specifiers"]
101
102
98 def builder_name_for_port_name(target_port_name): 103 def builder_name_for_port_name(target_port_name):
99 debug_builder_name = None 104 debug_builder_name = None
100 for builder_name, builder_info in _exact_matches.items(): 105 for builder_name, builder_info in _exact_matches.items():
101 if builder_info['port_name'] == target_port_name: 106 if builder_info['port_name'] == target_port_name:
102 if 'dbg' in builder_name: 107 if 'dbg' in builder_name:
103 debug_builder_name = builder_name 108 debug_builder_name = builder_name
104 else: 109 else:
105 return builder_name 110 return builder_name
106 return debug_builder_name 111 return debug_builder_name
107 112
108 113
109 def builder_path_for_port_name(port_name): 114 def builder_path_for_port_name(port_name):
110 builder_path_from_name(builder_name_for_port_name(port_name)) 115 builder_path_from_name(builder_name_for_port_name(port_name))
111 116
112 117
113 def deps_builder_name_for_port_name(target_port_name): 118 def deps_builder_name_for_port_name(target_port_name):
114 return _deps_builders.get(target_port_name, None) 119 return _deps_builders.get(target_port_name, None)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698