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 "ensure-directory", 10 "--mode", 11 "0777", 12 "[START_DIR]/cache/docker/canvaskit" 13 ], 14 "infra_step": true, 15 "name": "mkdirs out_dir" 16 }, 17 { 18 "cmd": [ 19 "docker", 20 "run", 21 "--rm", 22 "--volume", 23 "[START_DIR]/cache/work:/SRC", 24 "--volume", 25 "[START_DIR]/cache/docker/canvaskit:/OUT", 26 "gcr.io/skia-public/canvaskit-emsdk:1.38.27_v1", 27 "/SRC/skia/infra/canvaskit/build_canvaskit.sh", 28 "cpu" 29 ], 30 "env": { 31 "CHROME_HEADLESS": "1", 32 "DOCKER_CONFIG": "/home/chrome-bot/.docker", 33 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 34 }, 35 "name": "Build CanvasKit with Docker" 36 }, 37 { 38 "cmd": [ 39 "python", 40 "-u", 41 "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', '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', 'skottie_tool', '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", 42 "[START_DIR]/cache/work/skia/out/Build-Debian9-EMCC-wasm-Release-CanvasKit_CPU/Release", 43 "[START_DIR]/[SWARM_OUT_DIR]/out/Release" 44 ], 45 "infra_step": true, 46 "name": "copy build products", 47 "~followup_annotations": [ 48 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 49 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 50 "@@@STEP_LOG_LINE@python.inline@import os@@@", 51 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 52 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 53 "@@@STEP_LOG_LINE@python.inline@@@@", 54 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 55 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 56 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['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', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@", 57 "@@@STEP_LOG_LINE@python.inline@@@@", 58 "@@@STEP_LOG_LINE@python.inline@try:@@@", 59 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 60 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 61 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 62 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 63 "@@@STEP_LOG_LINE@python.inline@@@@", 64 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@", 65 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 66 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 67 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 68 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 69 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 70 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 71 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 72 "@@@STEP_LOG_END@python.inline@@@" 73 ] 74 }, 75 { 76 "cmd": [ 77 "python", 78 "-u", 79 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['canvaskit.*']\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 # Because Docker usually has some strange permissions (like root\n # ownership), we'd rather not keep those around. copyfile doesn't\n # keep the metadata around, so that helps us.\n shutil.copyfile(f, dst_path)\n", 80 "[START_DIR]/cache/docker/canvaskit", 81 "[START_DIR]/[SWARM_OUT_DIR]/out/Release" 82 ], 83 "infra_step": true, 84 "name": "copy wasm output", 85 "~followup_annotations": [ 86 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 87 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 88 "@@@STEP_LOG_LINE@python.inline@import os@@@", 89 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 90 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 91 "@@@STEP_LOG_LINE@python.inline@@@@", 92 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 93 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 94 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['canvaskit.*']@@@", 95 "@@@STEP_LOG_LINE@python.inline@@@@", 96 "@@@STEP_LOG_LINE@python.inline@try:@@@", 97 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 98 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 99 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 100 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 101 "@@@STEP_LOG_LINE@python.inline@@@@", 102 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@", 103 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 104 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 105 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 106 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 107 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 108 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 109 "@@@STEP_LOG_LINE@python.inline@ # Because Docker usually has some strange permissions (like root@@@", 110 "@@@STEP_LOG_LINE@python.inline@ # ownership), we'd rather not keep those around. copyfile doesn't@@@", 111 "@@@STEP_LOG_LINE@python.inline@ # keep the metadata around, so that helps us.@@@", 112 "@@@STEP_LOG_LINE@python.inline@ shutil.copyfile(f, dst_path)@@@", 113 "@@@STEP_LOG_END@python.inline@@@" 114 ] 115 }, 116 { 117 "jsonResult": null, 118 "name": "$result" 119 } 120]