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