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

Side by Side Diff: infra/bots/recipes/swarm_compile.expected/Build-Ubuntu-GCC-x86_64-Release-PDFium.json

Issue 2175373002: Move Skia recipes from build repo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixes, add simulation test to presubmit 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'}, {'deps_file': 'DEPS', 'managed': False, 'name': 'pdfium', 'url': 'https://pdfium .googlesource.com/pdfium.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 "PYTHONPATH": "[BUILD]/scripts"
38 },
39 "name": "gclient setup"
40 },
41 {
42 "cmd": [
43 "python",
44 "-u",
45 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
46 "sync",
47 "--nohooks",
48 "--force",
49 "--verbose",
50 "--delete_unversioned_trees",
51 "--revision",
52 "skia@abc123",
53 "--revision",
54 "pdfium@origin/master",
55 "--output-json",
56 "/path/to/tmp/json"
57 ],
58 "cwd": "[CUSTOM_/_B_WORK]",
59 "env": {
60 "CHROME_HEADLESS": "1",
61 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]",
62 "PYTHONPATH": "[BUILD]/scripts"
63 },
64 "name": "gclient sync",
65 "~followup_annotations": [
66 "@@@STEP_LOG_LINE@json.output@{@@@",
67 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@",
68 "@@@STEP_LOG_LINE@json.output@ \"pdfium/\": {@@@",
69 "@@@STEP_LOG_LINE@json.output@ \"revision\": 52055@@@",
70 "@@@STEP_LOG_LINE@json.output@ }, @@@",
71 "@@@STEP_LOG_LINE@json.output@ \"skia/\": {@@@",
72 "@@@STEP_LOG_LINE@json.output@ \"revision\": 164710@@@",
73 "@@@STEP_LOG_LINE@json.output@ }@@@",
74 "@@@STEP_LOG_LINE@json.output@ }@@@",
75 "@@@STEP_LOG_LINE@json.output@}@@@",
76 "@@@STEP_LOG_END@json.output@@@",
77 "@@@SET_BUILD_PROPERTY@got_revision@164710@@@"
78 ]
79 },
80 {
81 "cmd": [
82 "python",
83 "-u",
84 "[CUSTOM_/_B_WORK]/skia/tools/buildbot_spec.py",
85 "/path/to/tmp/json",
86 "Build-Ubuntu-GCC-x86_64-Release-PDFium"
87 ],
88 "cwd": "[CUSTOM_/_B_WORK]/skia",
89 "name": "exec buildbot_spec.py",
90 "~followup_annotations": [
91 "@@@STEP_LOG_LINE@json.output@{@@@",
92 "@@@STEP_LOG_LINE@json.output@ \"build_targets\": [@@@",
93 "@@@STEP_LOG_LINE@json.output@ \"most\"@@@",
94 "@@@STEP_LOG_LINE@json.output@ ], @@@",
95 "@@@STEP_LOG_LINE@json.output@ \"builder_cfg\": {@@@",
96 "@@@STEP_LOG_LINE@json.output@ \"compiler\": \"GCC\", @@@",
97 "@@@STEP_LOG_LINE@json.output@ \"configuration\": \"Release\", @@@",
98 "@@@STEP_LOG_LINE@json.output@ \"extra_config\": \"PDFium\", @@@",
99 "@@@STEP_LOG_LINE@json.output@ \"is_trybot\": false, @@@",
100 "@@@STEP_LOG_LINE@json.output@ \"os\": \"Ubuntu\", @@@",
101 "@@@STEP_LOG_LINE@json.output@ \"role\": \"Build\", @@@",
102 "@@@STEP_LOG_LINE@json.output@ \"target_arch\": \"x86_64\"@@@",
103 "@@@STEP_LOG_LINE@json.output@ }, @@@",
104 "@@@STEP_LOG_LINE@json.output@ \"configuration\": \"Release\", @@@",
105 "@@@STEP_LOG_LINE@json.output@ \"dm_flags\": [@@@",
106 "@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@",
107 "@@@STEP_LOG_LINE@json.output@ ], @@@",
108 "@@@STEP_LOG_LINE@json.output@ \"do_perf_steps\": false, @@@",
109 "@@@STEP_LOG_LINE@json.output@ \"do_test_steps\": false, @@@",
110 "@@@STEP_LOG_LINE@json.output@ \"env\": {@@@",
111 "@@@STEP_LOG_LINE@json.output@ \"GYP_DEFINES\": \"skia_arch_type=x86_64 skia_warnings_as_errors=1\"@@@",
112 "@@@STEP_LOG_LINE@json.output@ }, @@@",
113 "@@@STEP_LOG_LINE@json.output@ \"nanobench_flags\": [@@@",
114 "@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@",
115 "@@@STEP_LOG_LINE@json.output@ ], @@@",
116 "@@@STEP_LOG_LINE@json.output@ \"upload_dm_results\": true, @@@",
117 "@@@STEP_LOG_LINE@json.output@ \"upload_perf_results\": false@@@",
118 "@@@STEP_LOG_LINE@json.output@}@@@",
119 "@@@STEP_LOG_END@json.output@@@"
120 ]
121 },
122 {
123 "cmd": [
124 "gclient",
125 "runhook",
126 "gn_linux64"
127 ],
128 "cwd": "[CUSTOM_/_B_WORK]/pdfium",
129 "env": {
130 "BUILDTYPE": "Release",
131 "CHROME_HEADLESS": "1",
132 "GYP_DEFINES": "skia_arch_type=x86_64 skia_warnings_as_errors=1",
133 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]",
134 "PYTHONPATH": "[BUILD]/scripts",
135 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
136 },
137 "name": "runhook"
138 },
139 {
140 "cmd": [
141 "gn",
142 "gen",
143 "out/skia",
144 "--args=pdf_use_skia=true pdf_is_standalone=true clang_use_chrome_plugins= false"
145 ],
146 "cwd": "[CUSTOM_/_B_WORK]/pdfium",
147 "env": {
148 "BUILDTYPE": "Release",
149 "CHROME_HEADLESS": "1",
150 "CHROMIUM_BUILDTOOLS_PATH": "[CUSTOM_/_B_WORK]/pdfium/buildtools",
151 "GYP_DEFINES": "skia_arch_type=x86_64 skia_warnings_as_errors=1",
152 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]",
153 "PYTHONPATH": "[BUILD]/scripts",
154 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
155 },
156 "name": "gn_gen"
157 },
158 {
159 "cmd": [
160 "python",
161 "-u",
162 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
163 "[CUSTOM_/_B_WORK]/pdfium/DEPS",
164 "/path/to/tmp/"
165 ],
166 "name": "read PDFium DEPS"
167 },
168 {
169 "cmd": [
170 "python",
171 "-u",
172 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
173 "'skia_revision': '164710'",
174 "[CUSTOM_/_B_WORK]/pdfium/DEPS"
175 ],
176 "name": "write PDFium DEPs"
177 },
178 {
179 "cmd": [
180 "gclient",
181 "sync"
182 ],
183 "cwd": "[CUSTOM_/_B_WORK]/pdfium",
184 "env": {
185 "BUILDTYPE": "Release",
186 "CHROME_HEADLESS": "1",
187 "GYP_DEFINES": "skia_arch_type=x86_64 skia_warnings_as_errors=1",
188 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]",
189 "PYTHONPATH": "[BUILD]/scripts",
190 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
191 },
192 "name": "sync_pdfium"
193 },
194 {
195 "cmd": [
196 "ninja",
197 "-C",
198 "out/skia",
199 "-j100"
200 ],
201 "cwd": "[CUSTOM_/_B_WORK]/pdfium",
202 "env": {
203 "BUILDTYPE": "Release",
204 "CHROME_HEADLESS": "1",
205 "GYP_DEFINES": "skia_arch_type=x86_64 skia_warnings_as_errors=1",
206 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]",
207 "PYTHONPATH": "[BUILD]/scripts",
208 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
209 },
210 "name": "build_pdfium"
211 },
212 {
213 "cmd": [
214 "python",
215 "-u",
216 "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",
217 "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PDFium/Release ",
218 "[CUSTOM_[SWARM_OUT_DIR]]/out/Release"
219 ],
220 "name": "copy build products",
221 "~followup_annotations": [
222 "@@@STEP_LOG_LINE@python.inline@import errno@@@",
223 "@@@STEP_LOG_LINE@python.inline@import glob@@@",
224 "@@@STEP_LOG_LINE@python.inline@import os@@@",
225 "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
226 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
227 "@@@STEP_LOG_LINE@python.inline@@@@",
228 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
229 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
230 "@@@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']@@@",
231 "@@@STEP_LOG_LINE@python.inline@@@@",
232 "@@@STEP_LOG_LINE@python.inline@try:@@@",
233 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@",
234 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
235 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@",
236 "@@@STEP_LOG_LINE@python.inline@ raise@@@",
237 "@@@STEP_LOG_LINE@python.inline@@@@",
238 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@ @",
239 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@",
240 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@",
241 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.r elpath(f, src))@@@",
242 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(d st_path)):@@@",
243 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path ))@@@",
244 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@",
245 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@",
246 "@@@STEP_LOG_END@python.inline@@@"
247 ]
248 },
249 {
250 "name": "$result",
251 "recipe_result": null,
252 "status_code": 0
253 }
254 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698