Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 """Determines support level for different steps for masters.""" | 5 """Determines support level for different steps for masters.""" |
| 6 | 6 |
| 7 from model.wf_config import FinditConfig | 7 from model.wf_config import FinditConfig |
| 8 | 8 |
| 9 # Explicitly list unsupported masters. Additional work might be needed in order | 9 # Explicitly list unsupported masters. Additional work might be needed in order |
| 10 # to support them. | 10 # to support them. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 (tryserver_mastername, tryserver_buildername) | 123 (tryserver_mastername, tryserver_buildername) |
| 124 The trybot mastername and buildername to re-run compile in exactly the same | 124 The trybot mastername and buildername to re-run compile in exactly the same |
| 125 configuration as the given waterfall builder. If the given waterfall builder | 125 configuration as the given waterfall builder. If the given waterfall builder |
| 126 is not supported yet, (None, None) is returned instead. | 126 is not supported yet, (None, None) is returned instead. |
| 127 """ | 127 """ |
| 128 trybot_config = FinditConfig.Get().builders_to_trybots.get( | 128 trybot_config = FinditConfig.Get().builders_to_trybots.get( |
| 129 wf_mastername, {}).get(wf_buildername, {}) | 129 wf_mastername, {}).get(wf_buildername, {}) |
| 130 return trybot_config.get('mastername'), trybot_config.get('buildername') | 130 return trybot_config.get('mastername'), trybot_config.get('buildername') |
| 131 | 131 |
| 132 | 132 |
| 133 def EnableStrictRegexForCompileLinkFailures(wf_mastername, wf_buildername): | |
|
chanli
2016/03/15 06:07:49
Question: the ninja change will be done one builde
stgao
2016/03/15 18:32:21
No. The ninja change will be on recipe side on the
| |
| 134 """Returns True if strict regex should be used for the given builder.""" | |
| 135 trybot_config = FinditConfig.Get().builders_to_trybots.get( | |
| 136 wf_mastername, {}).get(wf_buildername, {}) | |
| 137 return trybot_config.get('strict_regex', False) | |
| 138 | |
| 139 | |
| 133 def GetTryJobSettings(): | 140 def GetTryJobSettings(): |
| 134 return FinditConfig().Get().try_job_settings | 141 return FinditConfig().Get().try_job_settings |
| 135 | 142 |
| 136 | 143 |
| 137 def GetSwarmingSettings(): | 144 def GetSwarmingSettings(): |
| 138 return FinditConfig().Get().swarming_settings | 145 return FinditConfig().Get().swarming_settings |
| OLD | NEW |