| [ |
| { |
| "cmd": [], |
| "name": "Docker setup" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "import os\nprint('%d:%d' % (os.getuid(), os.getgid()))\n" |
| ], |
| "name": "Docker setup.Get uid and gid", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| "@@@STEP_LOG_LINE@python.inline@print('%d:%d' % (os.getuid(), os.getgid()))@@@", |
| "@@@STEP_LOG_END@python.inline@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Flutter_Android_Docker/Release" |
| ], |
| "infra_step": true, |
| "name": "Docker setup.mkdirs out_dir", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "chmod", |
| "777", |
| "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Flutter_Android_Docker/Release" |
| ], |
| "infra_step": true, |
| "name": "Docker setup.chmod 777 [START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Flutter_Android_Docker/Release", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "chmod", |
| "755", |
| "[START_DIR]" |
| ], |
| "infra_step": true, |
| "name": "Docker setup.chmod 755 [START_DIR]", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "chmod", |
| "0755", |
| "RECIPE_MODULE[skia::build]/resources/docker-flutter-compile.sh" |
| ], |
| "infra_step": true, |
| "name": "Docker setup.chmod 0755 RECIPE_MODULE[skia::build]/resources/docker-flutter-compile.sh", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "run", |
| "--shm-size=2gb", |
| "--rm", |
| "--user", |
| "13:17", |
| "--mount", |
| "type=bind,source=[START_DIR],target=[START_DIR]", |
| "--mount", |
| "type=bind,source=[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Flutter_Android_Docker/Release,target=[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Flutter_Android_Docker/Release", |
| "gcr.io/skia-public/debian9@sha256:5541f5674eee0a1558f1335c711f674f85f96b9ae8fb6c289f42dd81479a768e", |
| "RECIPE_MODULE[skia::build]/resources/docker-flutter-compile.sh", |
| "[START_DIR]", |
| "[START_DIR]/cache/work/src", |
| "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Flutter_Android_Docker/Release", |
| "--runtime-mode=release", |
| "--android" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "DOCKER_CONFIG": "/home/chrome-bot/.docker", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "name": "Run build script in Docker" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products = ['*.so', 'lib/*.so']\n\ntry:\n os.makedirs(dst)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\nfor pattern in build_products:\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", |
| "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Flutter_Android_Docker/Release", |
| "[START_DIR]/[SWARM_OUT_DIR]/out/Release" |
| ], |
| "infra_step": true, |
| "name": "copy build products", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@python.inline@import errno@@@", |
| "@@@STEP_LOG_LINE@python.inline@import glob@@@", |
| "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| "@@@STEP_LOG_LINE@python.inline@import shutil@@@", |
| "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", |
| "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", |
| "@@@STEP_LOG_LINE@python.inline@build_products = ['*.so', 'lib/*.so']@@@", |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@try:@@@", |
| "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", |
| "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", |
| "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", |
| "@@@STEP_LOG_LINE@python.inline@ raise@@@", |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@", |
| "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", |
| "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", |
| "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", |
| "@@@STEP_LOG_LINE@python.inline@ print('Copying build product %s to %s' % (f, dst_path))@@@", |
| "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", |
| "@@@STEP_LOG_END@python.inline@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\n\nif not os.path.isdir(os.path.dirname(dst)):\n os.makedirs(os.path.dirname(dst))\n\nshutil.copyfile(src, dst)\n", |
| "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Flutter_Android_Docker/Release/lib.stripped/libflutter.so", |
| "[START_DIR]/[SWARM_OUT_DIR]/out/Release/libflutter_stripped.so" |
| ], |
| "infra_step": true, |
| "name": "copy stripped library", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| "@@@STEP_LOG_LINE@python.inline@import shutil@@@", |
| "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", |
| "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(os.path.dirname(dst)):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst))@@@", |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@shutil.copyfile(src, dst)@@@", |
| "@@@STEP_LOG_END@python.inline@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |