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 "infra_step": true, 11 "name": "makedirs checkout_path", 12 "~followup_annotations": [ 13 "@@@STEP_LOG_LINE (a] python.inline@@@@", 14 "@@@STEP_LOG_LINE (a] python.inline@import sys, os@@@", 15 "@@@STEP_LOG_LINE (a] python.inline@path = sys.argv[1]@@@", 16 "@@@STEP_LOG_LINE (a] python.inline@mode = int(sys.argv[2])@@@", 17 "@@@STEP_LOG_LINE (a] python.inline@if not os.path.isdir(path):@@@", 18 "@@@STEP_LOG_LINE (a] python.inline@ if os.path.exists(path):@@@", 19 "@@@STEP_LOG_LINE (a] python.inline@ print \"%s exists but is not a dir\" % path@@@", 20 "@@@STEP_LOG_LINE (a] python.inline@ sys.exit(1)@@@", 21 "@@@STEP_LOG_LINE (a] python.inline@ os.makedirs(path, mode)@@@", 22 "@@@STEP_LOG_END (a] python.inline@@@" 23 ] 24 }, 25 { 26 "cmd": [ 27 "python", 28 "-u", 29 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 30 "--spec", 31 "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'pdfium', 'url': 'https://pdfium.googlesource.com/pdfium.git'}]", 32 "--patch_root", 33 "pdfium/third_party/skia", 34 "--revision_mapping_file", 35 "{\"pdfium\": \"got_pdfium_revision\", \"pdfium/third_party/skia\": \"got_revision\"}", 36 "--git-cache-dir", 37 "[CUSTOM_/_B_CACHE]", 38 "--gerrit_repo", 39 "https://skia.googlesource.com/skia.git", 40 "--gerrit_ref", 41 "refs/changes/89/456789/12", 42 "--output_json", 43 "/path/to/tmp/json", 44 "--revision", 45 "pdfium@origin/master", 46 "--revision", 47 "pdfium/third_party/skia@abc123", 48 "--output_manifest" 49 ], 50 "cwd": "[CUSTOM_/_B_WORK]", 51 "env": { 52 "GIT_HTTP_LOW_SPEED_LIMIT": "1000", 53 "GIT_HTTP_LOW_SPEED_TIME": "300", 54 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 55 }, 56 "infra_step": true, 57 "name": "bot_update", 58 "~followup_annotations": [ 59 "@@@STEP_TEXT@Some step text@@@", 60 "@@@STEP_LOG_LINE (a] json.output@{@@@", 61 "@@@STEP_LOG_LINE (a] json.output@ \"did_run\": true, @@@", 62 "@@@STEP_LOG_LINE (a] json.output@ \"fixed_revisions\": {@@@", 63 "@@@STEP_LOG_LINE (a] json.output@ \"pdfium\": \"origin/master\", @@@", 64 "@@@STEP_LOG_LINE (a] json.output@ \"pdfium/third_party/skia\": \"abc123\"@@@", 65 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 66 "@@@STEP_LOG_LINE (a] json.output@ \"manifest\": {@@@", 67 "@@@STEP_LOG_LINE (a] json.output@ \"pdfium\": {@@@", 68 "@@@STEP_LOG_LINE (a] json.output@ \"repository\": \"https://fake.org/pdfium.git\", @@@", 69 "@@@STEP_LOG_LINE (a] json.output@ \"revision\": \"d69d97171c17fdb12a52f78847e2ee2f0594eff1\"@@@", 70 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 71 "@@@STEP_LOG_LINE (a] json.output@ \"pdfium/third_party/skia\": {@@@", 72 "@@@STEP_LOG_LINE (a] json.output@ \"repository\": \"https://fake.org/pdfium/third_party/skia.git\", @@@", 73 "@@@STEP_LOG_LINE (a] json.output@ \"revision\": \"85501db4bcbeb8f295309fdcda1a743388f0f104\"@@@", 74 "@@@STEP_LOG_LINE (a] json.output@ }@@@", 75 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 76 "@@@STEP_LOG_LINE (a] json.output@ \"patch_failure\": false, @@@", 77 "@@@STEP_LOG_LINE (a] json.output@ \"patch_root\": \"pdfium/third_party/skia\", @@@", 78 "@@@STEP_LOG_LINE (a] json.output@ \"properties\": {@@@", 79 "@@@STEP_LOG_LINE (a] json.output@ \"got_pdfium_revision\": \"d69d97171c17fdb12a52f78847e2ee2f0594eff1\", @@@", 80 "@@@STEP_LOG_LINE (a] json.output@ \"got_pdfium_revision_cp\": \"refs/heads/master@{#52055}\", @@@", 81 "@@@STEP_LOG_LINE (a] json.output@ \"got_revision\": \"85501db4bcbeb8f295309fdcda1a743388f0f104\", @@@", 82 "@@@STEP_LOG_LINE (a] json.output@ \"got_revision_cp\": \"refs/heads/master@{#120212}\"@@@", 83 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 84 "@@@STEP_LOG_LINE (a] json.output@ \"root\": \"pdfium\", @@@", 85 "@@@STEP_LOG_LINE (a] json.output@ \"step_text\": \"Some step text\"@@@", 86 "@@@STEP_LOG_LINE (a] json.output@}@@@", 87 "@@@STEP_LOG_END (a] json.output@@@", 88 "@@@SET_BUILD_PROPERTY@got_pdfium_revision_cp@\"refs/heads/master@{#52055}\"@@@", 89 "@@@SET_BUILD_PROPERTY@got_revision@\"85501db4bcbeb8f295309fdcda1a743388f0f104\"@@@", 90 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#120212}\"@@@", 91 "@@@SET_BUILD_PROPERTY@got_pdfium_revision@\"d69d97171c17fdb12a52f78847e2ee2f0594eff1\"@@@" 92 ] 93 }, 94 { 95 "cmd": [ 96 "gclient", 97 "runhook", 98 "gn_linux64" 99 ], 100 "cwd": "[CUSTOM_/_B_WORK]/pdfium", 101 "env": { 102 "BUILDTYPE": "Release", 103 "CHROME_HEADLESS": "1", 104 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", 105 "SKIA_OUT": "[CUSTOM_/_B_WORK]/pdfium/third_party/skia/out/Build-Ubuntu-GCC-x86_64-Release-PDFium" 106 }, 107 "name": "runhook" 108 }, 109 { 110 "cmd": [ 111 "python", 112 "build/linux/sysroot_scripts/install-sysroot.py", 113 "--arch=amd64" 114 ], 115 "cwd": "[CUSTOM_/_B_WORK]/pdfium", 116 "env": { 117 "BUILDTYPE": "Release", 118 "CHROME_HEADLESS": "1", 119 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", 120 "SKIA_OUT": "[CUSTOM_/_B_WORK]/pdfium/third_party/skia/out/Build-Ubuntu-GCC-x86_64-Release-PDFium" 121 }, 122 "name": "sysroot" 123 }, 124 { 125 "cmd": [ 126 "gn", 127 "gen", 128 "out/skia", 129 "--args=pdf_is_standalone=true clang_use_chrome_plugins=false is_component_build=false is_debug=false pdf_use_skia=true" 130 ], 131 "cwd": "[CUSTOM_/_B_WORK]/pdfium", 132 "env": { 133 "BUILDTYPE": "Release", 134 "CHROME_HEADLESS": "1", 135 "CHROMIUM_BUILDTOOLS_PATH": "[CUSTOM_/_B_WORK]/pdfium/buildtools", 136 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", 137 "SKIA_OUT": "[CUSTOM_/_B_WORK]/pdfium/third_party/skia/out/Build-Ubuntu-GCC-x86_64-Release-PDFium" 138 }, 139 "name": "gn_gen" 140 }, 141 { 142 "cmd": [ 143 "ninja", 144 "-C", 145 "out/skia", 146 "-j100" 147 ], 148 "cwd": "[CUSTOM_/_B_WORK]/pdfium", 149 "env": { 150 "BUILDTYPE": "Release", 151 "CHROME_HEADLESS": "1", 152 "CHROMIUM_BUILDTOOLS_PATH": "[CUSTOM_/_B_WORK]/pdfium/buildtools", 153 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", 154 "SKIA_OUT": "[CUSTOM_/_B_WORK]/pdfium/third_party/skia/out/Build-Ubuntu-GCC-x86_64-Release-PDFium" 155 }, 156 "name": "build_pdfium" 157 }, 158 { 159 "cmd": [ 160 "python", 161 "-u", 162 "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', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'lib/*.so', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']\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.makedirs(os.path.dirname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n", 163 "[CUSTOM_/_B_WORK]/pdfium/third_party/skia/out/Build-Ubuntu-GCC-x86_64-Release-PDFium/Release", 164 "[CUSTOM_[SWARM_OUT_DIR]]/out/Release" 165 ], 166 "infra_step": true, 167 "name": "copy build products", 168 "~followup_annotations": [ 169 "@@@STEP_LOG_LINE (a] python.inline@import errno@@@", 170 "@@@STEP_LOG_LINE (a] python.inline@import glob@@@", 171 "@@@STEP_LOG_LINE (a] python.inline@import os@@@", 172 "@@@STEP_LOG_LINE (a] python.inline@import shutil@@@", 173 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 174 "@@@STEP_LOG_LINE (a] python.inline@@@@", 175 "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1]@@@", 176 "@@@STEP_LOG_LINE (a] python.inline@dst = sys.argv[2]@@@", 177 "@@@STEP_LOG_LINE (a] python.inline@build_products_whitelist = ['dm', 'dm.exe', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'lib/*.so', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']@@@", 178 "@@@STEP_LOG_LINE (a] python.inline@@@@", 179 "@@@STEP_LOG_LINE (a] python.inline@try:@@@", 180 "@@@STEP_LOG_LINE (a] python.inline@ os.makedirs(dst)@@@", 181 "@@@STEP_LOG_LINE (a] python.inline@except OSError as e:@@@", 182 "@@@STEP_LOG_LINE (a] python.inline@ if e.errno != errno.EEXIST:@@@", 183 "@@@STEP_LOG_LINE (a] python.inline@ raise@@@", 184 "@@@STEP_LOG_LINE (a] python.inline@@@@", 185 "@@@STEP_LOG_LINE (a] python.inline@for pattern in build_products_whitelist:@@@", 186 "@@@STEP_LOG_LINE (a] python.inline@ path = os.path.join(src, pattern)@@@", 187 "@@@STEP_LOG_LINE (a] python.inline@ for f in glob.glob(path):@@@", 188 "@@@STEP_LOG_LINE (a] python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 189 "@@@STEP_LOG_LINE (a] python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 190 "@@@STEP_LOG_LINE (a] python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 191 "@@@STEP_LOG_LINE (a] python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 192 "@@@STEP_LOG_LINE (a] python.inline@ shutil.move(f, dst_path)@@@", 193 "@@@STEP_LOG_END (a] python.inline@@@" 194 ] 195 }, 196 { 197 "name": "$result", 198 "recipe_result": null, 199 "status_code": 0 200 } 201 ]