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

Side by Side Diff: infra/bots/recipes/swarm_compile.expected/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot.json

Issue 2175373002: Move Skia recipes from build repo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address more comments Created 4 years, 4 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
(Empty)
1 [
2 {
3 "cmd": [
4 "python",
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",
7 "[CUSTOM_/_B_WORK]",
8 "511"
9 ],
10 "name": "makedirs checkout_path",
11 "~followup_annotations": [
12 "@@@STEP_LOG_LINE@python.inline@@@@",
13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
14 "@@@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@if not os.path.isdir(path):@@@",
17 "@@@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@ sys.exit(1)@@@",
20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
21 "@@@STEP_LOG_END@python.inline@@@"
22 ]
23 },
24 {
25 "cmd": [
26 "python",
27 "-u",
28 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
29 "config",
30 "--spec",
31 "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': 'DEPS', 'man aged': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]\ ntarget_os = ['llvm']"
32 ],
33 "cwd": "[CUSTOM_/_B_WORK]",
34 "env": {
35 "CHROME_HEADLESS": "1",
36 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
37 },
38 "name": "gclient setup"
39 },
40 {
41 "cmd": [
42 "python",
43 "-u",
44 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
45 "sync",
46 "--nohooks",
47 "--force",
48 "--verbose",
49 "--delete_unversioned_trees",
50 "--revision",
51 "skia@abc123",
52 "--output-json",
53 "/path/to/tmp/json"
54 ],
55 "cwd": "[CUSTOM_/_B_WORK]",
56 "env": {
57 "CHROME_HEADLESS": "1",
58 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]"
59 },
60 "name": "gclient sync",
61 "~followup_annotations": [
62 "@@@STEP_LOG_LINE@json.output@{@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@",
64 "@@@STEP_LOG_LINE@json.output@ \"skia/\": {@@@",
65 "@@@STEP_LOG_LINE@json.output@ \"revision\": 164710@@@",
66 "@@@STEP_LOG_LINE@json.output@ }@@@",
67 "@@@STEP_LOG_LINE@json.output@ }@@@",
68 "@@@STEP_LOG_LINE@json.output@}@@@",
69 "@@@STEP_LOG_END@json.output@@@",
70 "@@@SET_BUILD_PROPERTY@got_revision@164710@@@"
71 ]
72 },
73 {
74 "cmd": [
75 "python",
76 "-u",
77 "[DEPOT_TOOLS]/apply_issue.py",
78 "-r",
79 "[CUSTOM_/_B_WORK]/skia",
80 "-i",
81 "500",
82 "-p",
83 "1",
84 "-s",
85 "https://codereview.chromium.org",
86 "--no-auth"
87 ],
88 "name": "apply_issue",
89 "~followup_annotations": [
90 "@@@STEP_LINK@Applied issue 500@https://codereview.chromium.org/500@@@"
91 ]
92 },
93 {
94 "cmd": [
95 "python",
96 "-u",
97 "[CUSTOM_/_B_WORK]/skia/tools/buildbot_spec.py",
98 "/path/to/tmp/json",
99 "Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot"
100 ],
101 "cwd": "[CUSTOM_/_B_WORK]/skia",
102 "name": "exec buildbot_spec.py",
103 "~followup_annotations": [
104 "@@@STEP_LOG_LINE@json.output@{@@@",
105 "@@@STEP_LOG_LINE@json.output@ \"build_targets\": [@@@",
106 "@@@STEP_LOG_LINE@json.output@ \"most\"@@@",
107 "@@@STEP_LOG_LINE@json.output@ ], @@@",
108 "@@@STEP_LOG_LINE@json.output@ \"builder_cfg\": {@@@",
109 "@@@STEP_LOG_LINE@json.output@ \"compiler\": \"GCC\", @@@",
110 "@@@STEP_LOG_LINE@json.output@ \"configuration\": \"Debug\", @@@",
111 "@@@STEP_LOG_LINE@json.output@ \"extra_config\": \"Android\", @@@",
112 "@@@STEP_LOG_LINE@json.output@ \"is_trybot\": true, @@@",
113 "@@@STEP_LOG_LINE@json.output@ \"os\": \"Ubuntu\", @@@",
114 "@@@STEP_LOG_LINE@json.output@ \"role\": \"Build\", @@@",
115 "@@@STEP_LOG_LINE@json.output@ \"target_arch\": \"Arm7\"@@@",
116 "@@@STEP_LOG_LINE@json.output@ }, @@@",
117 "@@@STEP_LOG_LINE@json.output@ \"configuration\": \"Debug\", @@@",
118 "@@@STEP_LOG_LINE@json.output@ \"device_cfg\": \"arm_v7_neon\", @@@",
119 "@@@STEP_LOG_LINE@json.output@ \"dm_flags\": [@@@",
120 "@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@",
121 "@@@STEP_LOG_LINE@json.output@ ], @@@",
122 "@@@STEP_LOG_LINE@json.output@ \"do_perf_steps\": false, @@@",
123 "@@@STEP_LOG_LINE@json.output@ \"do_test_steps\": false, @@@",
124 "@@@STEP_LOG_LINE@json.output@ \"env\": {@@@",
125 "@@@STEP_LOG_LINE@json.output@ \"GYP_DEFINES\": \"skia_arch_type=arm sk ia_warnings_as_errors=1\"@@@",
126 "@@@STEP_LOG_LINE@json.output@ }, @@@",
127 "@@@STEP_LOG_LINE@json.output@ \"nanobench_flags\": [@@@",
128 "@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@",
129 "@@@STEP_LOG_LINE@json.output@ ], @@@",
130 "@@@STEP_LOG_LINE@json.output@ \"upload_dm_results\": true, @@@",
131 "@@@STEP_LOG_LINE@json.output@ \"upload_perf_results\": false@@@",
132 "@@@STEP_LOG_LINE@json.output@}@@@",
133 "@@@STEP_LOG_END@json.output@@@"
134 ]
135 },
136 {
137 "cmd": [
138 "which",
139 "adb"
140 ],
141 "name": "which adb",
142 "stdout": "/path/to/tmp/",
143 "~followup_annotations": [
144 "step returned non-zero exit code: 1",
145 "@@@STEP_EXCEPTION@@@"
146 ]
147 },
148 {
149 "cmd": [
150 "python",
151 "-u",
152 "import json\nimport subprocess\nimport sys\n\nccache = None\ntry:\n ccac he = subprocess.check_output(['which', 'ccache']).rstrip()\nexcept:\n pass\npri nt json.dumps({'ccache': ccache})\n"
153 ],
154 "env": {
155 "BUILDTYPE": "Debug",
156 "CHROME_HEADLESS": "1",
157 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=1",
158 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]",
159 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-Arm7-Debug-Androi d-Trybot"
160 },
161 "name": "has ccache?",
162 "stdout": "/path/to/tmp/json",
163 "~followup_annotations": [
164 "@@@STEP_LOG_LINE@json.output@{@@@",
165 "@@@STEP_LOG_LINE@json.output@ \"ccache\": \"/usr/bin/ccache\"@@@",
166 "@@@STEP_LOG_LINE@json.output@}@@@",
167 "@@@STEP_LOG_END@json.output@@@",
168 "@@@STEP_LOG_LINE@python.inline@import json@@@",
169 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@",
170 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
171 "@@@STEP_LOG_LINE@python.inline@@@@",
172 "@@@STEP_LOG_LINE@python.inline@ccache = None@@@",
173 "@@@STEP_LOG_LINE@python.inline@try:@@@",
174 "@@@STEP_LOG_LINE@python.inline@ ccache = subprocess.check_output(['which ', 'ccache']).rstrip()@@@",
175 "@@@STEP_LOG_LINE@python.inline@except:@@@",
176 "@@@STEP_LOG_LINE@python.inline@ pass@@@",
177 "@@@STEP_LOG_LINE@python.inline@print json.dumps({'ccache': ccache})@@@",
178 "@@@STEP_LOG_END@python.inline@@@"
179 ]
180 },
181 {
182 "cmd": [
183 "[CUSTOM_/_B_WORK]/skia/platform_tools/android/bin/android_ninja",
184 "most",
185 "-d",
186 "arm_v7_neon",
187 "--gcc"
188 ],
189 "cwd": "[CUSTOM_/_B_WORK]/skia",
190 "env": {
191 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
192 "ANDROID_MAKE_CCACHE": "/usr/bin/ccache",
193 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
194 "BUILDTYPE": "Debug",
195 "CHROME_HEADLESS": "1",
196 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=1",
197 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]",
198 "SKIA_ANDROID_VERBOSE_SETUP": "1",
199 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-Arm7-Debug-Androi d-Trybot"
200 },
201 "name": "build most"
202 },
203 {
204 "cmd": [
205 "python",
206 "-u",
207 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['dm', 'dm.exe', 'nan obench', 'nanobench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'lib/*.so ', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe']\n\ntry:\n os.makedirs(dst)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise \n\nfor pattern in build_products_whitelist:\n path = os.path.join(src, pattern )\n for f in glob.glob(path):\n dst_path = os.path.join(dst, os.path.relpath (f, src))\n if not os.path.isdir(os.path.dirname(dst_path)):\n os.makedi rs(os.path.dirname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n",
208 "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/Deb ug",
209 "[CUSTOM_[SWARM_OUT_DIR]]/out/Debug"
210 ],
211 "name": "copy build products",
212 "~followup_annotations": [
213 "@@@STEP_LOG_LINE@python.inline@import errno@@@",
214 "@@@STEP_LOG_LINE@python.inline@import glob@@@",
215 "@@@STEP_LOG_LINE@python.inline@import os@@@",
216 "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
217 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
218 "@@@STEP_LOG_LINE@python.inline@@@@",
219 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
220 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
221 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['dm', 'dm.exe' , 'nanobench', 'nanobench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'li b/*.so', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe']@@@",
222 "@@@STEP_LOG_LINE@python.inline@@@@",
223 "@@@STEP_LOG_LINE@python.inline@try:@@@",
224 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@",
225 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
226 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@",
227 "@@@STEP_LOG_LINE@python.inline@ raise@@@",
228 "@@@STEP_LOG_LINE@python.inline@@@@",
229 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@ @",
230 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@",
231 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@",
232 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.r elpath(f, src))@@@",
233 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(d st_path)):@@@",
234 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path ))@@@",
235 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@",
236 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@",
237 "@@@STEP_LOG_END@python.inline@@@"
238 ]
239 },
240 {
241 "name": "$result",
242 "recipe_result": null,
243 "status_code": 0
244 }
245 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698