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

Side by Side Diff: scripts/slave/recipes/infra/recipe_autoroller_public.expected/empty.json

Issue 1862383002: build: add recipe code for new autoroller (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: TODO Created 4 years, 8 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
(Empty)
1 [
2 {
3 "cmd": [
4 "python",
5 "-u",
6 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
7 "config",
8 "--spec",
9 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'manag ed': True, 'name': 'infra', 'url': 'https://chromium.googlesource.com/infra/infr a.git'}]"
10 ],
11 "cwd": "[SLAVE_BUILD]",
12 "env": {
13 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
14 },
15 "name": "gclient setup"
16 },
17 {
18 "cmd": [
19 "python",
20 "-u",
21 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
22 "sync",
23 "--verbose",
24 "--with_branch_heads",
25 "--nohooks",
26 "-j8",
27 "--reset",
28 "--force",
29 "--upstream",
30 "--no-nag-max",
31 "--delete_unversioned_trees",
32 "--revision",
33 "infra@origin/master",
34 "--revision",
35 "infra/recipes-py@origin/master",
36 "--output-json",
37 "/path/to/tmp/json"
38 ],
39 "cwd": "[SLAVE_BUILD]",
40 "env": {
41 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
42 },
43 "name": "gclient sync",
44 "~followup_annotations": [
45 "@@@STEP_LOG_LINE@json.output@{@@@",
46 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@",
47 "@@@STEP_LOG_LINE@json.output@ \"infra/\": {@@@",
48 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"5e03a58dc0850e5137a8eb bce29610670c756aed\"@@@",
49 "@@@STEP_LOG_LINE@json.output@ }, @@@",
50 "@@@STEP_LOG_LINE@json.output@ \"infra/recipes-py/\": {@@@",
51 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"566be4c6bf5a619a0f5381 0d649ca87525be7d24\"@@@",
52 "@@@STEP_LOG_LINE@json.output@ }@@@",
53 "@@@STEP_LOG_LINE@json.output@ }@@@",
54 "@@@STEP_LOG_LINE@json.output@}@@@",
55 "@@@STEP_LOG_END@json.output@@@",
56 "@@@SET_BUILD_PROPERTY@got_revision@\"566be4c6bf5a619a0f53810d649ca87525be 7d24\"@@@"
57 ]
58 },
59 {
60 "cmd": [
61 "python",
62 "-u",
63 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
64 "recurse",
65 "git",
66 "config",
67 "user.name",
68 "local_bot"
69 ],
70 "cwd": "[SLAVE_BUILD]",
71 "env": {
72 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
73 },
74 "name": "gclient recurse (git config user.name)"
75 },
76 {
77 "cmd": [
78 "python",
79 "-u",
80 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
81 "recurse",
82 "git",
83 "config",
84 "user.email",
85 "local_bot@example.com"
86 ],
87 "cwd": "[SLAVE_BUILD]",
88 "env": {
89 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
90 },
91 "name": "gclient recurse (git config user.email)"
92 },
93 {
94 "cmd": [
95 "python",
96 "-u",
97 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
98 "runhooks"
99 ],
100 "cwd": "[SLAVE_BUILD]",
101 "env": {
102 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
103 },
104 "name": "gclient runhooks"
105 },
106 {
107 "cmd": [
108 "curl",
109 "https://luci-config.appspot.com/_ah/api/config/v1/projects"
110 ],
111 "cwd": "[SLAVE_BUILD]",
112 "name": "Get project urls",
113 "stdout": "/path/to/tmp/json",
114 "~followup_annotations": [
115 "@@@STEP_LOG_LINE@json.output@{@@@",
116 "@@@STEP_LOG_LINE@json.output@ \"projects\": [@@@",
117 "@@@STEP_LOG_LINE@json.output@ {@@@",
118 "@@@STEP_LOG_LINE@json.output@ \"id\": \"recipe_engine\", @@@",
119 "@@@STEP_LOG_LINE@json.output@ \"repo_type\": \"GITILES\", @@@",
120 "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://repo.repo/reci pes-py\"@@@",
121 "@@@STEP_LOG_LINE@json.output@ }, @@@",
122 "@@@STEP_LOG_LINE@json.output@ {@@@",
123 "@@@STEP_LOG_LINE@json.output@ \"id\": \"build\", @@@",
124 "@@@STEP_LOG_LINE@json.output@ \"repo_type\": \"GITILES\", @@@",
125 "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://repo.repo/chro mium/build\"@@@",
126 "@@@STEP_LOG_LINE@json.output@ }@@@",
127 "@@@STEP_LOG_LINE@json.output@ ]@@@",
128 "@@@STEP_LOG_LINE@json.output@}@@@",
129 "@@@STEP_LOG_END@json.output@@@"
130 ]
131 },
132 {
133 "cmd": [],
134 "cwd": "[SLAVE_BUILD]",
135 "name": "build"
136 },
137 {
138 "cmd": [
139 "python",
140 "-u",
141 "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
142 "--path",
143 "[TMP_BASE]/roll_build_tmp_1",
144 "--url",
145 "https://repo.repo/chromium/build"
146 ],
147 "cwd": "[SLAVE_BUILD]",
148 "name": "build.git setup",
149 "~followup_annotations": [
150 "@@@STEP_NEST_LEVEL@1@@@"
151 ]
152 },
153 {
154 "cmd": [
155 "git",
156 "retry",
157 "fetch",
158 "origin",
159 "master"
160 ],
161 "cwd": "[TMP_BASE]/roll_build_tmp_1",
162 "name": "build.git fetch",
163 "~followup_annotations": [
164 "@@@STEP_NEST_LEVEL@1@@@"
165 ]
166 },
167 {
168 "cmd": [
169 "git",
170 "checkout",
171 "-f",
172 "FETCH_HEAD"
173 ],
174 "cwd": "[TMP_BASE]/roll_build_tmp_1",
175 "name": "build.git checkout",
176 "~followup_annotations": [
177 "@@@STEP_NEST_LEVEL@1@@@"
178 ]
179 },
180 {
181 "cmd": [
182 "git",
183 "rev-parse",
184 "HEAD"
185 ],
186 "cwd": "[TMP_BASE]/roll_build_tmp_1",
187 "name": "build.read revision",
188 "stdout": "/path/to/tmp/",
189 "~followup_annotations": [
190 "@@@STEP_NEST_LEVEL@1@@@",
191 "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
192 ]
193 },
194 {
195 "cmd": [
196 "git",
197 "clean",
198 "-f",
199 "-d",
200 "-x"
201 ],
202 "cwd": "[TMP_BASE]/roll_build_tmp_1",
203 "name": "build.git clean",
204 "~followup_annotations": [
205 "@@@STEP_NEST_LEVEL@1@@@"
206 ]
207 },
208 {
209 "cmd": [
210 "python",
211 "-u",
212 "[SLAVE_BUILD]/infra/recipes-py/recipes.py",
213 "--package",
214 "[TMP_BASE]/roll_build_tmp_1/infra/config/recipes.cfg",
215 "autoroll",
216 "--output-json",
217 "/path/to/tmp/json"
218 ],
219 "cwd": "[SLAVE_BUILD]",
220 "name": "build.roll",
221 "~followup_annotations": [
222 "@@@STEP_NEST_LEVEL@1@@@",
223 "@@@STEP_TEXT@ (already at latest revisions)@@@",
224 "@@@STEP_LOG_LINE@json.output@{@@@",
225 "@@@STEP_LOG_LINE@json.output@ \"picked_roll_details\": null, @@@",
226 "@@@STEP_LOG_LINE@json.output@ \"rejected_candidates_details\": [], @@@",
227 "@@@STEP_LOG_LINE@json.output@ \"roll_details\": [], @@@",
228 "@@@STEP_LOG_LINE@json.output@ \"success\": false, @@@",
229 "@@@STEP_LOG_LINE@json.output@ \"trivial\": null@@@",
230 "@@@STEP_LOG_LINE@json.output@}@@@",
231 "@@@STEP_LOG_END@json.output@@@"
232 ]
233 },
234 {
235 "cmd": [
236 "git",
237 "diff",
238 "HEAD"
239 ],
240 "cwd": "[TMP_BASE]/roll_build_tmp_1",
241 "name": "build.git diff",
242 "~followup_annotations": [
243 "@@@STEP_NEST_LEVEL@1@@@"
244 ]
245 },
246 {
247 "cmd": [
248 "python",
249 "-u",
250 "\nimport shutil, sys\nshutil.rmtree(sys.argv[1])\n",
251 "[TMP_BASE]/roll_build_tmp_1"
252 ],
253 "cwd": "[SLAVE_BUILD]",
254 "name": "build.rmtree [TMP_BASE]/roll_build_tmp_1",
255 "~followup_annotations": [
256 "@@@STEP_NEST_LEVEL@1@@@",
257 "@@@STEP_LOG_LINE@python.inline@@@@",
258 "@@@STEP_LOG_LINE@python.inline@import shutil, sys@@@",
259 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1])@@@",
260 "@@@STEP_LOG_END@python.inline@@@"
261 ]
262 },
263 {
264 "name": "$result",
265 "recipe_result": null,
266 "status_code": 0
267 }
268 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698