Chromium Code Reviews

Side by Side Diff: scripts/slave/recipes/codesearch.expected/codesearch_test.json

Issue 1115453002: Recipes: make cwd default to slave_build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "[DEPOT_TOOLS]/gclient.py", 6 "[DEPOT_TOOLS]/gclient.py",
7 "config", 7 "config",
8 "--spec", 8 "--spec",
9 "cache_dir = None\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True , 'name': 'src', 'url': 'svn://svn-mirror.golo.chromium.org/chrome/trunk'}]\ntar get_os = ['android']" 9 "cache_dir = None\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True , 'name': 'src', 'url': 'svn://svn-mirror.golo.chromium.org/chrome/trunk'}]\ntar get_os = ['android']"
10 ], 10 ],
11 "cwd": "[SLAVE_BUILD]",
11 "name": "gclient setup" 12 "name": "gclient setup"
12 }, 13 },
13 { 14 {
14 "cmd": [ 15 "cmd": [
15 "python", 16 "python",
16 "-u", 17 "-u",
17 "[DEPOT_TOOLS]/gclient.py", 18 "[DEPOT_TOOLS]/gclient.py",
18 "sync", 19 "sync",
19 "--nohooks", 20 "--nohooks",
20 "--force", 21 "--force",
21 "--verbose", 22 "--verbose",
22 "--delete_unversioned_trees", 23 "--delete_unversioned_trees",
23 "--revision", 24 "--revision",
24 "src@refs/remotes/origin/master", 25 "src@refs/remotes/origin/master",
25 "--output-json", 26 "--output-json",
26 "/path/to/tmp/json" 27 "/path/to/tmp/json"
27 ], 28 ],
29 "cwd": "[SLAVE_BUILD]",
28 "name": "gclient sync", 30 "name": "gclient sync",
29 "~followup_annotations": [ 31 "~followup_annotations": [
30 "@@@STEP_LOG_LINE@json.output@{@@@", 32 "@@@STEP_LOG_LINE@json.output@{@@@",
31 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@", 33 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@",
32 "@@@STEP_LOG_LINE@json.output@ \"src/\": {@@@", 34 "@@@STEP_LOG_LINE@json.output@ \"src/\": {@@@",
33 "@@@STEP_LOG_LINE@json.output@ \"revision\": 170242@@@", 35 "@@@STEP_LOG_LINE@json.output@ \"revision\": 170242@@@",
34 "@@@STEP_LOG_LINE@json.output@ }, @@@", 36 "@@@STEP_LOG_LINE@json.output@ }, @@@",
35 "@@@STEP_LOG_LINE@json.output@ \"src/native_client/\": {@@@", 37 "@@@STEP_LOG_LINE@json.output@ \"src/native_client/\": {@@@",
36 "@@@STEP_LOG_LINE@json.output@ \"revision\": 274981@@@", 38 "@@@STEP_LOG_LINE@json.output@ \"revision\": 274981@@@",
37 "@@@STEP_LOG_LINE@json.output@ }, @@@", 39 "@@@STEP_LOG_LINE@json.output@ }, @@@",
(...skipping 20 matching lines...)
58 "@@@SET_BUILD_PROPERTY@got_v8_revision@43426@@@" 60 "@@@SET_BUILD_PROPERTY@got_v8_revision@43426@@@"
59 ] 61 ]
60 }, 62 },
61 { 63 {
62 "cmd": [ 64 "cmd": [
63 "python", 65 "python",
64 "-u", 66 "-u",
65 "[DEPOT_TOOLS]/gclient.py", 67 "[DEPOT_TOOLS]/gclient.py",
66 "runhooks" 68 "runhooks"
67 ], 69 ],
70 "cwd": "[SLAVE_BUILD]",
68 "env": { 71 "env": {
69 "GYP_CROSSCOMPILE": "1", 72 "GYP_CROSSCOMPILE": "1",
70 "GYP_DEFINES": "OS=android clang=1 component=static_library fastbuild=1 go madir='[BUILD]/goma' target_arch=arm use_goma=1", 73 "GYP_DEFINES": "OS=android clang=1 component=static_library fastbuild=1 go madir='[BUILD]/goma' target_arch=arm use_goma=1",
71 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 74 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
72 }, 75 },
73 "name": "gclient runhooks" 76 "name": "gclient runhooks"
74 }, 77 },
75 { 78 {
76 "cmd": [ 79 "cmd": [
77 "ninja", 80 "ninja",
78 "-C", 81 "-C",
79 "[SLAVE_BUILD]/src/out/Debug", 82 "[SLAVE_BUILD]/src/out/Debug",
80 "all", 83 "all",
81 "-t", 84 "-t",
82 "compdb", 85 "compdb",
83 "cc", 86 "cc",
84 "cxx", 87 "cxx",
85 "objc", 88 "objc",
86 "objcxx" 89 "objcxx"
87 ], 90 ],
91 "cwd": "[SLAVE_BUILD]",
88 "name": "generate compilation database", 92 "name": "generate compilation database",
89 "stdout": "/path/to/tmp/" 93 "stdout": "/path/to/tmp/"
90 }, 94 },
91 { 95 {
92 "cmd": [ 96 "cmd": [
93 "python", 97 "python",
94 "-u", 98 "-u",
95 "[BUILD]/scripts/slave/compile.py", 99 "[BUILD]/scripts/slave/compile.py",
96 "--target", 100 "--target",
97 "Debug", 101 "Debug",
98 "--src-dir", 102 "--src-dir",
99 "[SLAVE_BUILD]/src", 103 "[SLAVE_BUILD]/src",
100 "--build-tool", 104 "--build-tool",
101 "ninja", 105 "ninja",
102 "--compiler", 106 "--compiler",
103 "goma-clang", 107 "goma-clang",
104 "--goma-dir", 108 "--goma-dir",
105 "[BUILD]/goma", 109 "[BUILD]/goma",
106 "--", 110 "--",
107 "all" 111 "all"
108 ], 112 ],
113 "cwd": "[SLAVE_BUILD]",
109 "env": { 114 "env": {
110 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 115 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
111 }, 116 },
112 "name": "compile" 117 "name": "compile"
113 }, 118 },
114 { 119 {
115 "cmd": [ 120 "cmd": [
116 "cp", 121 "cp",
117 "some compilation data", 122 "some compilation data",
118 "[SLAVE_BUILD]/src/out/Debug/compile_commands.json" 123 "[SLAVE_BUILD]/src/out/Debug/compile_commands.json"
119 ], 124 ],
125 "cwd": "[SLAVE_BUILD]",
120 "name": "copy compilation database" 126 "name": "copy compilation database"
121 }, 127 },
122 { 128 {
123 "cmd": [ 129 "cmd": [
124 "tools/clang/scripts/update.sh", 130 "tools/clang/scripts/update.sh",
125 "--force-local-build", 131 "--force-local-build",
126 "--without-android", 132 "--without-android",
127 "--with-chrome-tools", 133 "--with-chrome-tools",
128 "translation_unit" 134 "translation_unit"
129 ], 135 ],
130 "cwd": "[SLAVE_BUILD]/src", 136 "cwd": "[SLAVE_BUILD]/src",
131 "name": "compile translation_unit clang tool" 137 "name": "compile translation_unit clang tool"
132 }, 138 },
133 { 139 {
134 "cmd": [ 140 "cmd": [
135 "python", 141 "python",
136 "-u", 142 "-u",
137 "[SLAVE_BUILD]/src/tools/clang/scripts/run_tool.py", 143 "[SLAVE_BUILD]/src/tools/clang/scripts/run_tool.py",
138 "[SLAVE_BUILD]/src/third_party/llvm-build/Release+Asserts/bin/translation_ unit", 144 "[SLAVE_BUILD]/src/third_party/llvm-build/Release+Asserts/bin/translation_ unit",
139 "[SLAVE_BUILD]/src/out/Debug", 145 "[SLAVE_BUILD]/src/out/Debug",
140 "--all" 146 "--all"
141 ], 147 ],
148 "cwd": "[SLAVE_BUILD]",
142 "name": "run translation_unit clang tool" 149 "name": "run translation_unit clang tool"
143 }, 150 },
144 { 151 {
145 "cmd": [ 152 "cmd": [
146 "python", 153 "python",
147 "-u", 154 "-u",
148 "[BUILD]/scripts/slave/chromium/package_index.py", 155 "[BUILD]/scripts/slave/chromium/package_index.py",
149 "--path-to-compdb", 156 "--path-to-compdb",
150 "[SLAVE_BUILD]/src/out/Debug/compile_commands.json", 157 "[SLAVE_BUILD]/src/out/Debug/compile_commands.json",
151 "--path-to-archive-output", 158 "--path-to-archive-output",
152 "[SLAVE_BUILD]/src/out/Debug/index_pack.zip" 159 "[SLAVE_BUILD]/src/out/Debug/index_pack.zip"
153 ], 160 ],
161 "cwd": "[SLAVE_BUILD]",
154 "name": "create index pack" 162 "name": "create index pack"
155 }, 163 },
156 { 164 {
157 "cmd": [ 165 "cmd": [
158 "python", 166 "python",
159 "-u", 167 "-u",
160 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n", 168 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
161 "[SLAVE_BUILD]/src/third_party/llvm-build" 169 "[SLAVE_BUILD]/src/third_party/llvm-build"
162 ], 170 ],
171 "cwd": "[SLAVE_BUILD]",
163 "name": "rmtree llvm-build", 172 "name": "rmtree llvm-build",
164 "~followup_annotations": [ 173 "~followup_annotations": [
165 "@@@STEP_LOG_LINE@python.inline@@@@", 174 "@@@STEP_LOG_LINE@python.inline@@@@",
166 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", 175 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
167 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@", 176 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@",
168 "@@@STEP_LOG_LINE@python.inline@@@@", 177 "@@@STEP_LOG_LINE@python.inline@@@@",
169 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", 178 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
170 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@", 179 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
171 "@@@STEP_LOG_END@python.inline@@@" 180 "@@@STEP_LOG_END@python.inline@@@"
172 ] 181 ]
173 }, 182 },
174 { 183 {
175 "cmd": [ 184 "cmd": [
176 "python", 185 "python",
177 "-u", 186 "-u",
178 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py", 187 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py",
179 "--", 188 "--",
180 "[DEPOT_TOOLS]/gsutil.py", 189 "[DEPOT_TOOLS]/gsutil.py",
181 "--force-version", 190 "--force-version",
182 "3.25", 191 "3.25",
183 "--", 192 "--",
184 "cp", 193 "cp",
185 "[SLAVE_BUILD]/src/out/Debug/index_pack.zip", 194 "[SLAVE_BUILD]/src/out/Debug/index_pack.zip",
186 "gs://chrome-codesearch/index_pack_571.zip" 195 "gs://chrome-codesearch/index_pack_571.zip"
187 ], 196 ],
197 "cwd": "[SLAVE_BUILD]",
188 "name": "gsutil upload index pack", 198 "name": "gsutil upload index pack",
189 "~followup_annotations": [ 199 "~followup_annotations": [
190 "@@@STEP_LINK@gsutil.upload@https://storage.cloud.google.com/chrome-codese arch/index_pack_571.zip@@@" 200 "@@@STEP_LINK@gsutil.upload@https://storage.cloud.google.com/chrome-codese arch/index_pack_571.zip@@@"
191 ] 201 ]
192 }, 202 },
193 { 203 {
194 "cmd": [ 204 "cmd": [
195 "python", 205 "python",
196 "-u", 206 "-u",
197 "[BUILD]/scripts/slave/archive_source_codesearch.py", 207 "[BUILD]/scripts/slave/archive_source_codesearch.py",
198 "src", 208 "src",
199 "src-internal", 209 "src-internal",
200 "-f", 210 "-f",
201 "src.tar.bz2" 211 "src.tar.bz2"
202 ], 212 ],
213 "cwd": "[SLAVE_BUILD]",
203 "name": "archive source" 214 "name": "archive source"
204 }, 215 },
205 { 216 {
206 "cmd": [ 217 "cmd": [
207 "python", 218 "python",
208 "-u", 219 "-u",
209 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py", 220 "RECIPE_MODULE[gsutil]/resources/gsutil_wrapper.py",
210 "--", 221 "--",
211 "[DEPOT_TOOLS]/gsutil.py", 222 "[DEPOT_TOOLS]/gsutil.py",
212 "--force-version", 223 "--force-version",
213 "3.25", 224 "3.25",
214 "--", 225 "--",
215 "cp", 226 "cp",
216 "[SLAVE_BUILD]/src.tar.bz2", 227 "[SLAVE_BUILD]/src.tar.bz2",
217 "gs://chrome-codesearch/src_571.tar.bz2" 228 "gs://chrome-codesearch/src_571.tar.bz2"
218 ], 229 ],
230 "cwd": "[SLAVE_BUILD]",
219 "name": "gsutil upload source tarball", 231 "name": "gsutil upload source tarball",
220 "~followup_annotations": [ 232 "~followup_annotations": [
221 "@@@STEP_LINK@gsutil.upload@https://storage.cloud.google.com/chrome-codese arch/src_571.tar.bz2@@@" 233 "@@@STEP_LINK@gsutil.upload@https://storage.cloud.google.com/chrome-codese arch/src_571.tar.bz2@@@"
222 ] 234 ]
223 } 235 }
224 ] 236 ]
OLDNEW

Powered by Google App Engine