OLD | NEW |
---|---|
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 Loading... | |
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']}, |
ojan
2014/05/29 18:51:20
It's a bummer to hard-code this. Can you add a FIX
Dirk Pranke
2014/05/29 18:59:56
I'm not sure that that would be any cleaner. I tho
ojan
2014/05/29 19:37:04
It's another place where we've duplicated specifie
| |
43 "WebKit Win7": {"port_name": "win-win7"}, | 45 "WebKit Win7": {"port_name": "win-win7", "specifiers": ['Win7']}, |
Dirk Pranke
2014/05/29 18:25:21
Should the non-dbg bots have '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']}, |
46 "WebKit Linux 32": {"port_name": "linux-x86"}, | 48 "WebKit Linux 32": {"port_name": "linux-x86", "specifiers": ['Linux']}, |
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 Linux ASAN": {"port_name": "linux-x86_64", "specifiers": ['Linux']}, |
49 "WebKit Mac10.6": {"port_name": "mac-snowleopard"}, | 51 "WebKit Mac10.6": {"port_name": "mac-snowleopard", "specifiers": ['SnowLeopa rd']}, |
50 "WebKit Mac10.6 (dbg)": {"port_name": "mac-snowleopard"}, | 52 "WebKit Mac10.6 (dbg)": {"port_name": "mac-snowleopard", "specifiers": ['Sno wLeopard', 'Debug']}, |
51 "WebKit Mac10.7": {"port_name": "mac-lion"}, | 53 "WebKit Mac10.7": {"port_name": "mac-lion", "specifiers": ['Lion']}, |
52 "WebKit Mac10.7 (dbg)": {"port_name": "mac-lion"}, | 54 "WebKit Mac10.7 (dbg)": {"port_name": "mac-lion", "specifiers": ['Lion', 'De bug']}, |
53 "WebKit Mac10.8": {"port_name": "mac-mountainlion"}, | 55 "WebKit Mac10.8": {"port_name": "mac-mountainlion", "specifiers": ['Mountain Lion']}, |
54 "WebKit Mac10.8 (retina)": {"port_name": "mac-retina"}, | 56 "WebKit Mac10.8 (retina)": {"port_name": "mac-retina", "specifiers": ['Mount ainLion', 'Retina']}, |
Dirk Pranke
2014/05/29 18:25:21
This one should just be retina.
| |
55 "WebKit Mac10.9": {"port_name": "mac-mavericks"}, | 57 "WebKit Mac10.9": {"port_name": "mac-mavericks", "specifiers": ['Mavericks', 'Retina']}, |
Dirk Pranke
2014/05/29 18:25:21
This one isn't retina.
| |
56 "WebKit Android (Nexus4)": {"port_name": "android"}, | 58 "WebKit Android (Nexus4)": {"port_name": "android", "specifiers": ['Android' ]}, |
57 } | 59 } |
58 | 60 |
59 | 61 |
60 # Mapping from port name to the deps builder of the same os: | 62 # Mapping from port name to the deps builder of the same os: |
61 _deps_builders = { | 63 _deps_builders = { |
62 "linux-x86": "WebKit Linux (deps)", | 64 "linux-x86": "WebKit Linux (deps)", |
63 "linux-x86_64": "WebKit Linux (deps)", | 65 "linux-x86_64": "WebKit Linux (deps)", |
64 "win-xp": "WebKit XP (deps)", | 66 "win-xp": "WebKit XP (deps)", |
65 "win-win7": "WebKit XP (deps)", | 67 "win-win7": "WebKit XP (deps)", |
66 "mac-snowleopard": "WebKit Mac10.6 (deps)", | 68 "mac-snowleopard": "WebKit Mac10.6 (deps)", |
(...skipping 21 matching lines...) Expand all Loading... | |
88 | 90 |
89 | 91 |
90 def rebaseline_override_dir(builder_name): | 92 def rebaseline_override_dir(builder_name): |
91 return _exact_matches[builder_name].get("rebaseline_override_dir", None) | 93 return _exact_matches[builder_name].get("rebaseline_override_dir", None) |
92 | 94 |
93 | 95 |
94 def port_name_for_builder_name(builder_name): | 96 def port_name_for_builder_name(builder_name): |
95 return _exact_matches[builder_name]["port_name"] | 97 return _exact_matches[builder_name]["port_name"] |
96 | 98 |
97 | 99 |
100 def specifiers_for_builder(builder_name): | |
101 return _exact_matches[builder_name]["specifiers"] | |
102 | |
103 | |
98 def builder_name_for_port_name(target_port_name): | 104 def builder_name_for_port_name(target_port_name): |
99 debug_builder_name = None | 105 debug_builder_name = None |
100 for builder_name, builder_info in _exact_matches.items(): | 106 for builder_name, builder_info in _exact_matches.items(): |
101 if builder_info['port_name'] == target_port_name: | 107 if builder_info['port_name'] == target_port_name: |
102 if 'dbg' in builder_name: | 108 if 'dbg' in builder_name: |
103 debug_builder_name = builder_name | 109 debug_builder_name = builder_name |
104 else: | 110 else: |
105 return builder_name | 111 return builder_name |
106 return debug_builder_name | 112 return debug_builder_name |
107 | 113 |
108 | 114 |
109 def builder_path_for_port_name(port_name): | 115 def builder_path_for_port_name(port_name): |
110 builder_path_from_name(builder_name_for_port_name(port_name)) | 116 builder_path_from_name(builder_name_for_port_name(port_name)) |
111 | 117 |
112 | 118 |
113 def deps_builder_name_for_port_name(target_port_name): | 119 def deps_builder_name_for_port_name(target_port_name): |
114 return _deps_builders.get(target_port_name, None) | 120 return _deps_builders.get(target_port_name, None) |
OLD | NEW |