OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "python", | 4 "python", |
5 "-u", | 5 "-u", |
6 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", | 6 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", |
7 "[SLAVE_BUILD]/go/src", | 7 "[CWD]/go/src", |
8 "511" | 8 "511" |
9 ], | 9 ], |
10 "cwd": "[SLAVE_BUILD]", | |
11 "name": "makedirs makedirs go/src", | 10 "name": "makedirs makedirs go/src", |
12 "~followup_annotations": [ | 11 "~followup_annotations": [ |
13 "@@@STEP_LOG_LINE@python.inline@@@@", | 12 "@@@STEP_LOG_LINE@python.inline@@@@", |
14 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | 13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
15 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | 14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
16 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | 15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
17 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | 16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
18 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | 17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
19 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | 18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
20 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | 19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
21 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | 20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
22 "@@@STEP_LOG_END@python.inline@@@" | 21 "@@@STEP_LOG_END@python.inline@@@" |
23 ] | 22 ] |
24 }, | 23 }, |
25 { | 24 { |
26 "cmd": [ | 25 "cmd": [ |
27 "git", | 26 "git", |
28 "clone", | 27 "clone", |
29 "https://skia.googlesource.com/buildbot", | 28 "https://skia.googlesource.com/buildbot", |
30 "[SLAVE_BUILD]/go/src/go.skia.org/infra" | 29 "[CWD]/go/src/go.skia.org/infra" |
31 ], | 30 ], |
32 "cwd": "[SLAVE_BUILD]", | |
33 "name": "git clone" | 31 "name": "git clone" |
34 }, | 32 }, |
35 { | 33 { |
36 "cmd": [ | 34 "cmd": [ |
37 "git", | 35 "git", |
38 "fetch", | 36 "fetch", |
39 "origin" | 37 "origin" |
40 ], | 38 ], |
41 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 39 "cwd": "[CWD]/go/src/go.skia.org/infra", |
42 "name": "git fetch" | 40 "name": "git fetch" |
43 }, | 41 }, |
44 { | 42 { |
45 "cmd": [ | 43 "cmd": [ |
46 "git", | 44 "git", |
47 "clean", | 45 "clean", |
48 "-d", | 46 "-d", |
49 "-f" | 47 "-f" |
50 ], | 48 ], |
51 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 49 "cwd": "[CWD]/go/src/go.skia.org/infra", |
52 "name": "git clean" | 50 "name": "git clean" |
53 }, | 51 }, |
54 { | 52 { |
55 "cmd": [ | 53 "cmd": [ |
56 "git", | 54 "git", |
57 "reset", | 55 "reset", |
58 "--hard", | 56 "--hard", |
59 "origin/master" | 57 "origin/master" |
60 ], | 58 ], |
61 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 59 "cwd": "[CWD]/go/src/go.skia.org/infra", |
62 "name": "git reset" | 60 "name": "git reset" |
63 }, | 61 }, |
64 { | 62 { |
65 "cmd": [ | 63 "cmd": [ |
66 "python", | 64 "python", |
67 "-u", | 65 "-u", |
68 "[DEPOT_TOOLS]/apply_issue.py", | 66 "[ROOT]/b/depot_tools/apply_issue.py", |
69 "-r", | 67 "-r", |
70 "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 68 "[CWD]/go/src/go.skia.org/infra", |
71 "-i", | 69 "-i", |
72 "1234", | 70 "1234", |
73 "-p", | 71 "-p", |
74 "1", | 72 "1", |
75 "-s", | 73 "-s", |
76 "https://codereview.chromium.org", | 74 "https://codereview.chromium.org", |
77 "--no-auth" | 75 "--no-auth" |
78 ], | 76 ], |
79 "cwd": "[SLAVE_BUILD]", | |
80 "name": "apply_issue", | 77 "name": "apply_issue", |
81 "~followup_annotations": [ | 78 "~followup_annotations": [ |
82 "@@@STEP_LINK@Applied issue 1234@https://codereview.chromium.org/1234@@@" | 79 "@@@STEP_LINK@Applied issue 1234@https://codereview.chromium.org/1234@@@" |
83 ] | 80 ] |
84 }, | 81 }, |
85 { | 82 { |
86 "cmd": [ | 83 "cmd": [ |
87 "go", | 84 "go", |
88 "get", | 85 "get", |
89 "-u", | 86 "-u", |
90 "./..." | 87 "./..." |
91 ], | 88 ], |
92 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 89 "cwd": "[CWD]/go/src/go.skia.org/infra", |
93 "env": { | 90 "env": { |
94 "GIT_USER_AGENT": "git/1.9.1", | 91 "GIT_USER_AGENT": "git/1.9.1", |
95 "GOPATH": "[SLAVE_BUILD]/go", | 92 "GOPATH": "[CWD]/go", |
96 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 93 "PATH": "[CWD]/go/bin:%(PATH)s" |
97 }, | 94 }, |
98 "name": "update_deps" | 95 "name": "update_deps" |
99 }, | 96 }, |
100 { | 97 { |
101 "cmd": [ | 98 "cmd": [ |
102 "git", | 99 "git", |
103 "clone", | 100 "clone", |
104 "https://skia.googlesource.com/buildbot", | 101 "https://skia.googlesource.com/buildbot", |
105 "[SLAVE_BUILD]/go/src/go.skia.org/infra" | 102 "[CWD]/go/src/go.skia.org/infra" |
106 ], | 103 ], |
107 "cwd": "[SLAVE_BUILD]", | |
108 "name": "git clone (2)" | 104 "name": "git clone (2)" |
109 }, | 105 }, |
110 { | 106 { |
111 "cmd": [ | 107 "cmd": [ |
112 "git", | 108 "git", |
113 "fetch", | 109 "fetch", |
114 "origin" | 110 "origin" |
115 ], | 111 ], |
116 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 112 "cwd": "[CWD]/go/src/go.skia.org/infra", |
117 "name": "git fetch (2)" | 113 "name": "git fetch (2)" |
118 }, | 114 }, |
119 { | 115 { |
120 "cmd": [ | 116 "cmd": [ |
121 "git", | 117 "git", |
122 "clean", | 118 "clean", |
123 "-d", | 119 "-d", |
124 "-f" | 120 "-f" |
125 ], | 121 ], |
126 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 122 "cwd": "[CWD]/go/src/go.skia.org/infra", |
127 "name": "git clean (2)" | 123 "name": "git clean (2)" |
128 }, | 124 }, |
129 { | 125 { |
130 "cmd": [ | 126 "cmd": [ |
131 "git", | 127 "git", |
132 "reset", | 128 "reset", |
133 "--hard", | 129 "--hard", |
134 "origin/master" | 130 "origin/master" |
135 ], | 131 ], |
136 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 132 "cwd": "[CWD]/go/src/go.skia.org/infra", |
137 "name": "git reset (2)" | 133 "name": "git reset (2)" |
138 }, | 134 }, |
139 { | 135 { |
140 "cmd": [ | 136 "cmd": [ |
141 "python", | 137 "python", |
142 "-u", | 138 "-u", |
143 "[DEPOT_TOOLS]/apply_issue.py", | 139 "[ROOT]/b/depot_tools/apply_issue.py", |
144 "-r", | 140 "-r", |
145 "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 141 "[CWD]/go/src/go.skia.org/infra", |
146 "-i", | 142 "-i", |
147 "1234", | 143 "1234", |
148 "-p", | 144 "-p", |
149 "1", | 145 "1", |
150 "-s", | 146 "-s", |
151 "https://codereview.chromium.org", | 147 "https://codereview.chromium.org", |
152 "--no-auth" | 148 "--no-auth" |
153 ], | 149 ], |
154 "cwd": "[SLAVE_BUILD]", | |
155 "name": "apply_issue (2)", | 150 "name": "apply_issue (2)", |
156 "~followup_annotations": [ | 151 "~followup_annotations": [ |
157 "@@@STEP_LINK@Applied issue 1234@https://codereview.chromium.org/1234@@@" | 152 "@@@STEP_LINK@Applied issue 1234@https://codereview.chromium.org/1234@@@" |
158 ] | 153 ] |
159 }, | 154 }, |
160 { | 155 { |
161 "cmd": [ | 156 "cmd": [ |
162 "git", | 157 "git", |
163 "rev-parse", | 158 "rev-parse", |
164 "HEAD" | 159 "HEAD" |
165 ], | 160 ], |
166 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 161 "cwd": "[CWD]/go/src/go.skia.org/infra", |
167 "name": "git rev-parse", | 162 "name": "git rev-parse", |
168 "stdout": "/path/to/tmp/", | 163 "stdout": "/path/to/tmp/", |
169 "~followup_annotations": [ | 164 "~followup_annotations": [ |
170 "@@@SET_BUILD_PROPERTY@got_revision@\"abc123\"@@@" | 165 "@@@SET_BUILD_PROPERTY@got_revision@\"abc123\"@@@" |
171 ] | 166 ] |
172 }, | 167 }, |
173 { | 168 { |
174 "cmd": [ | 169 "cmd": [ |
175 "go", | 170 "go", |
176 "get", | 171 "get", |
177 "golang.org/x/tools/cmd/goimports" | 172 "golang.org/x/tools/cmd/goimports" |
178 ], | 173 ], |
179 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 174 "cwd": "[CWD]/go/src/go.skia.org/infra", |
180 "env": { | 175 "env": { |
181 "GIT_USER_AGENT": "git/1.9.1", | 176 "GIT_USER_AGENT": "git/1.9.1", |
182 "GOPATH": "[SLAVE_BUILD]/go", | 177 "GOPATH": "[CWD]/go", |
183 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 178 "PATH": "[CWD]/go/bin:%(PATH)s" |
184 }, | 179 }, |
185 "name": "install goimports" | 180 "name": "install goimports" |
186 }, | 181 }, |
187 { | 182 { |
188 "cmd": [ | 183 "cmd": [ |
189 "go", | 184 "go", |
190 "get", | 185 "get", |
191 "github.com/kisielk/errcheck" | 186 "github.com/kisielk/errcheck" |
192 ], | 187 ], |
193 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 188 "cwd": "[CWD]/go/src/go.skia.org/infra", |
194 "env": { | 189 "env": { |
195 "GIT_USER_AGENT": "git/1.9.1", | 190 "GIT_USER_AGENT": "git/1.9.1", |
196 "GOPATH": "[SLAVE_BUILD]/go", | 191 "GOPATH": "[CWD]/go", |
197 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 192 "PATH": "[CWD]/go/bin:%(PATH)s" |
198 }, | 193 }, |
199 "name": "install errcheck" | 194 "name": "install errcheck" |
200 }, | 195 }, |
201 { | 196 { |
202 "cmd": [ | 197 "cmd": [ |
203 "./setup_test_db" | 198 "./setup_test_db" |
204 ], | 199 ], |
205 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra/go/database", | 200 "cwd": "[CWD]/go/src/go.skia.org/infra/go/database", |
206 "env": { | 201 "env": { |
207 "GIT_USER_AGENT": "git/1.9.1", | 202 "GIT_USER_AGENT": "git/1.9.1", |
208 "GOPATH": "[SLAVE_BUILD]/go", | 203 "GOPATH": "[CWD]/go", |
209 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 204 "PATH": "[CWD]/go/bin:%(PATH)s" |
210 }, | 205 }, |
211 "name": "setup database" | 206 "name": "setup database" |
212 }, | 207 }, |
213 { | 208 { |
214 "cmd": [ | 209 "cmd": [ |
215 "python", | 210 "python", |
216 "-u", | 211 "-u", |
217 "run_unittests" | 212 "run_unittests" |
218 ], | 213 ], |
219 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 214 "cwd": "[CWD]/go/src/go.skia.org/infra", |
220 "env": { | 215 "env": { |
221 "GIT_USER_AGENT": "git/1.9.1", | 216 "GIT_USER_AGENT": "git/1.9.1", |
222 "GOPATH": "[SLAVE_BUILD]/go", | 217 "GOPATH": "[CWD]/go", |
223 "KARMA_PORT": "15001", | 218 "KARMA_PORT": "15001", |
224 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 219 "PATH": "[CWD]/go/bin:%(PATH)s" |
225 }, | 220 }, |
226 "name": "run_unittests" | 221 "name": "run_unittests" |
227 }, | 222 }, |
228 { | 223 { |
229 "name": "$result", | 224 "name": "$result", |
230 "recipe_result": null, | 225 "recipe_result": null, |
231 "status_code": 0 | 226 "status_code": 0 |
232 } | 227 } |
233 ] | 228 ] |
OLD | NEW |