1[ 2 { 3 "cmd": [ 4 "python", 5 "-u", 6 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 7 "--json-output", 8 "/path/to/tmp/json", 9 "copy", 10 "[START_DIR]/cache/work/skia/infra/bots/assets/mips64el_toolchain_linux/VERSION", 11 "/path/to/tmp/" 12 ], 13 "infra_step": true, 14 "name": "Get mips64el_toolchain_linux VERSION" 15 }, 16 { 17 "cmd": [ 18 "python", 19 "-u", 20 "[START_DIR]/cache/work/skia/bin/fetch-gn" 21 ], 22 "cwd": "[START_DIR]/cache/work/skia", 23 "env": { 24 "CHROME_HEADLESS": "1", 25 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 26 }, 27 "infra_step": true, 28 "name": "fetch-gn" 29 }, 30 { 31 "cmd": [ 32 "[START_DIR]/cache/work/skia/bin/gn", 33 "gen", 34 "[START_DIR]/cache/work/skia/out/Build-Debian9-GCC-loongson3a-Release/Release", 35 "--args=cc=\"[START_DIR]/mips64el_toolchain_linux/bin/mips64el-linux-gnuabi64-gcc-7\" cxx=\"[START_DIR]/mips64el_toolchain_linux/bin/mips64el-linux-gnuabi64-g++-7\" extra_cflags=[\"-Wno-format-truncation\", \"-Wno-uninitialized\", \"-DDUMMY_mips64el_toolchain_linux_version=42\", \"-Wno-strict-overflow\"] extra_ldflags=[\"-L[START_DIR]/mips64el_toolchain_linux/mips64el-linux-gnuabi64/lib\"] is_debug=false skia_enable_gpu=false skia_use_fontconfig=false skia_use_system_freetype2=false target_cpu=\"loongson3a\"" 36 ], 37 "cwd": "[START_DIR]/cache/work/skia", 38 "env": { 39 "CHROME_HEADLESS": "1", 40 "LD_LIBRARY_PATH": "[START_DIR]/mips64el_toolchain_linux/lib/x86_64-linux-gnu/", 41 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 42 }, 43 "name": "gn gen" 44 }, 45 { 46 "cmd": [ 47 "ninja", 48 "-C", 49 "[START_DIR]/cache/work/skia/out/Build-Debian9-GCC-loongson3a-Release/Release" 50 ], 51 "cwd": "[START_DIR]/cache/work/skia", 52 "env": { 53 "CHROME_HEADLESS": "1", 54 "LD_LIBRARY_PATH": "[START_DIR]/mips64el_toolchain_linux/lib/x86_64-linux-gnu/", 55 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 56 }, 57 "name": "ninja" 58 }, 59 { 60 "cmd": [ 61 "python", 62 "-u", 63 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']\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", 64 "[START_DIR]/cache/work/skia/out/Build-Debian9-GCC-loongson3a-Release/Release", 65 "[START_DIR]/[SWARM_OUT_DIR]/out/Release" 66 ], 67 "infra_step": true, 68 "name": "copy build products", 69 "~followup_annotations": [ 70 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 71 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 72 "@@@STEP_LOG_LINE@python.inline@import os@@@", 73 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 74 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 75 "@@@STEP_LOG_LINE@python.inline@@@@", 76 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 77 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 78 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@", 79 "@@@STEP_LOG_LINE@python.inline@@@@", 80 "@@@STEP_LOG_LINE@python.inline@try:@@@", 81 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 82 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 83 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 84 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 85 "@@@STEP_LOG_LINE@python.inline@@@@", 86 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@", 87 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 88 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 89 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 90 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 91 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 92 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 93 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 94 "@@@STEP_LOG_END@python.inline@@@" 95 ] 96 }, 97 { 98 "jsonResult": null, 99 "name": "$result" 100 } 101]