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