OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 """Rolls recipes.cfg dependencies for public projects.""" | 5 """Rolls recipes.cfg dependencies for public projects.""" |
6 | 6 |
7 DEPS = [ | 7 DEPS = [ |
8 'recipe_autoroller', | 8 'recipe_autoroller', |
9 'luci_config', | 9 'luci_config', |
10 'recipe_engine/properties', | 10 'recipe_engine/properties', |
11 'recipe_engine/raw_io', | 11 'recipe_engine/raw_io', |
12 ] | 12 ] |
13 | 13 |
14 from recipe_engine import recipe_api | 14 from recipe_engine import recipe_api |
15 | 15 |
16 | 16 |
17 # Toposorted for best results. | 17 # Toposorted for best results. |
18 # TODO(phajdan.jr): get the list of public projects from luci-config. | 18 # TODO(phajdan.jr): get the list of public projects from luci-config. |
19 PROJECTS = [ | 19 PROJECTS = [ |
20 'depot_tools', | 20 'depot_tools', |
21 'build', | 21 'build', |
| 22 'infra', |
22 ] | 23 ] |
23 | 24 |
24 | 25 |
25 PROPERTIES = { | 26 PROPERTIES = { |
26 'projects': recipe_api.Property(default=PROJECTS), | 27 'projects': recipe_api.Property(default=PROJECTS), |
27 } | 28 } |
28 | 29 |
29 | 30 |
30 def RunSteps(api, projects): | 31 def RunSteps(api, projects): |
31 api.recipe_autoroller.prepare_checkout() | 32 api.recipe_autoroller.prepare_checkout() |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 yield ( | 75 yield ( |
75 api.test('failed_upload') + | 76 api.test('failed_upload') + |
76 api.properties(projects=['build']) + | 77 api.properties(projects=['build']) + |
77 api.luci_config.get_projects(['build']) + | 78 api.luci_config.get_projects(['build']) + |
78 api.recipe_autoroller.roll_data('build') + | 79 api.recipe_autoroller.roll_data('build') + |
79 api.recipe_autoroller.new_upload('build') + | 80 api.recipe_autoroller.new_upload('build') + |
80 api.override_step_data( | 81 api.override_step_data( |
81 'build.git cl issue', | 82 'build.git cl issue', |
82 api.raw_io.stream_output('Issue number: None (None)')) | 83 api.raw_io.stream_output('Issue number: None (None)')) |
83 ) | 84 ) |
OLD | NEW |