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

Side by Side Diff: recipe_modules/bot_update/example.py

Issue 2308193002: Remove bogus master/builder/slave/force parameters from bot_update. (Closed)
Patch Set: re-do patch after recent CLs Created 4 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 DEPS = [ 5 DEPS = [
6 'bot_update', 6 'bot_update',
7 'gclient', 7 'gclient',
8 'recipe_engine/path', 8 'recipe_engine/path',
9 'recipe_engine/properties', 9 'recipe_engine/properties',
10 ] 10 ]
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 refs=refs, patch_oauth2=oauth2, 50 refs=refs, patch_oauth2=oauth2,
51 clobber=clobber, 51 clobber=clobber,
52 root_solution_revision=root_solution_revision, 52 root_solution_revision=root_solution_revision,
53 suffix=suffix, 53 suffix=suffix,
54 gerrit_no_reset=gerrit_no_reset, 54 gerrit_no_reset=gerrit_no_reset,
55 gerrit_no_rebase_patch_ref=gerrit_no_rebase_patch_ref) 55 gerrit_no_rebase_patch_ref=gerrit_no_rebase_patch_ref)
56 56
57 57
58 def GenTests(api): 58 def GenTests(api):
59 yield api.test('basic') + api.properties( 59 yield api.test('basic') + api.properties(
60 mastername='chromium.linux',
61 buildername='Linux Builder',
62 slavename='totallyaslave-m1',
63 patch=False, 60 patch=False,
64 revision='abc' 61 revision='abc'
65 ) 62 )
66 yield api.test('basic_with_branch_heads') + api.properties( 63 yield api.test('basic_with_branch_heads') + api.properties(
67 mastername='chromium.linux',
68 buildername='Linux Builder',
69 slavename='totallyaslave-m1',
70 with_branch_heads=True, 64 with_branch_heads=True,
71 suffix='with branch heads' 65 suffix='with branch heads'
72 ) 66 )
73 yield api.test('basic_output_manifest') + api.properties( 67 yield api.test('basic_output_manifest') + api.properties(
74 mastername='chromium.linux',
75 buildername='Linux Builder',
76 slavename='totallyaslave-m1',
77 output_manifest=True, 68 output_manifest=True,
78 ) 69 )
79 yield api.test('tryjob') + api.properties( 70 yield api.test('tryjob') + api.properties(
80 mastername='tryserver.chromium.linux',
81 buildername='linux_rel',
82 slavename='totallyaslave-c4',
83 issue=12345, 71 issue=12345,
84 patchset=654321, 72 patchset=654321,
85 rietveld='https://rietveld.example.com/', 73 rietveld='https://rietveld.example.com/',
86 ) 74 )
87 yield api.test('trychange') + api.properties( 75 yield api.test('trychange') + api.properties(
88 mastername='tryserver.chromium.linux',
89 buildername='linux_rel',
90 slavename='totallyaslave-c4',
91 refs=['+refs/change/1/2/333'], 76 refs=['+refs/change/1/2/333'],
92 ) 77 )
93 yield api.test('trychange_oauth2') + api.properties( 78 yield api.test('trychange_oauth2') + api.properties(
94 mastername='tryserver.chromium.linux',
95 buildername='linux_rel',
96 slavename='totallyaslave-c4',
97 oauth2=True, 79 oauth2=True,
98 ) 80 )
99 yield api.test('tryjob_fail') + api.properties( 81 yield api.test('tryjob_fail') + api.properties(
100 mastername='tryserver.chromium.linux',
101 buildername='linux_rel',
102 slavename='totallyaslave-c4',
103 issue=12345, 82 issue=12345,
104 patchset=654321, 83 patchset=654321,
105 rietveld='https://rietveld.example.com/', 84 rietveld='https://rietveld.example.com/',
106 ) + api.step_data('bot_update', retcode=1) 85 ) + api.step_data('bot_update', retcode=1)
107 yield api.test('tryjob_fail_patch') + api.properties( 86 yield api.test('tryjob_fail_patch') + api.properties(
108 mastername='tryserver.chromium.linux',
109 buildername='linux_rel',
110 slavename='totallyaslave-c4',
111 issue=12345, 87 issue=12345,
112 patchset=654321, 88 patchset=654321,
113 rietveld='https://rietveld.example.com/', 89 rietveld='https://rietveld.example.com/',
114 fail_patch='apply', 90 fail_patch='apply',
115 ) + api.step_data('bot_update', retcode=88) 91 ) + api.step_data('bot_update', retcode=88)
116 yield api.test('tryjob_fail_patch_download') + api.properties( 92 yield api.test('tryjob_fail_patch_download') + api.properties(
117 mastername='tryserver.chromium.linux',
118 buildername='linux_rel',
119 slavename='totallyaslave-c4',
120 issue=12345, 93 issue=12345,
121 patchset=654321, 94 patchset=654321,
122 rietveld='https://rietveld.example.com/', 95 rietveld='https://rietveld.example.com/',
123 fail_patch='download' 96 fail_patch='download'
124 ) + api.step_data('bot_update', retcode=87) 97 ) + api.step_data('bot_update', retcode=87)
125 yield api.test('no_shallow') + api.properties( 98 yield api.test('no_shallow') + api.properties(
126 mastername='experimental',
127 buildername='Experimental Builder',
128 slavename='somehost',
129 no_shallow=1 99 no_shallow=1
130 ) 100 )
131 yield api.test('clobber') + api.properties( 101 yield api.test('clobber') + api.properties(
132 mastername='experimental',
133 buildername='Experimental Builder',
134 slavename='somehost',
135 clobber=1 102 clobber=1
136 ) 103 )
137 yield api.test('reset_root_solution_revision') + api.properties( 104 yield api.test('reset_root_solution_revision') + api.properties(
138 mastername='experimental',
139 buildername='Experimental Builder',
140 slavename='somehost',
141 root_solution_revision='revision', 105 root_solution_revision='revision',
142 ) 106 )
143 yield api.test('gerrit_no_reset') + api.properties( 107 yield api.test('gerrit_no_reset') + api.properties(
144 mastername='experimental',
145 buildername='Experimental Builder',
146 slavename='somehost',
147 gerrit_no_reset=1 108 gerrit_no_reset=1
148 ) 109 )
149 yield api.test('gerrit_no_rebase_patch_ref') + api.properties( 110 yield api.test('gerrit_no_rebase_patch_ref') + api.properties(
150 mastername='experimental',
151 buildername='Experimental Builder',
152 slavename='somehost',
153 gerrit_no_rebase_patch_ref=True 111 gerrit_no_rebase_patch_ref=True
154 ) 112 )
155 yield api.test('apply_gerrit_ref') + api.properties( 113 yield api.test('apply_gerrit_ref') + api.properties(
156 repository='chromium', 114 repository='chromium',
157 gerrit_no_rebase_patch_ref=True, 115 gerrit_no_rebase_patch_ref=True,
158 gerrit_no_reset=1, 116 gerrit_no_reset=1,
159 test_apply_gerrit_ref=True, 117 test_apply_gerrit_ref=True,
160 ) 118 )
161 yield api.test('tryjob_v8') + api.properties( 119 yield api.test('tryjob_v8') + api.properties(
162 mastername='tryserver.chromium.linux',
163 buildername='linux_rel',
164 slavename='totallyaslave-c4',
165 issue=12345, 120 issue=12345,
166 patchset=654321, 121 patchset=654321,
167 rietveld='https://rietveld.example.com/', 122 rietveld='https://rietveld.example.com/',
168 patch_project='v8', 123 patch_project='v8',
169 revisions={'src/v8': 'abc'} 124 revisions={'src/v8': 'abc'}
170 ) 125 )
171 yield api.test('tryjob_v8_head_by_default') + api.properties.tryserver( 126 yield api.test('tryjob_v8_head_by_default') + api.properties.tryserver(
172 patch_project='v8', 127 patch_project='v8',
173 ) 128 )
174 yield api.test('tryjob_gerrit_angle') + api.properties.tryserver_gerrit( 129 yield api.test('tryjob_gerrit_angle') + api.properties.tryserver_gerrit(
175 full_project_name='angle/angle', 130 full_project_name='angle/angle',
176 ) 131 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698