• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/android_ndk_linux/VERSION",
11      "/path/to/tmp/"
12    ],
13    "infra_step": true,
14    "name": "Get android_ndk_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_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-Clang-arm-Release-Android_ASAN/Release",
35      "--args=extra_cflags=[\"-DDUMMY_ndk_version=42\"] is_debug=false ndk=\"[START_DIR]/android_ndk_linux\" ndk_api=21 sanitize=\"ASAN\" target_cpu=\"arm\""
36    ],
37    "cwd": "[START_DIR]/cache/work/skia",
38    "env": {
39      "CHROME_HEADLESS": "1",
40      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
41    },
42    "name": "gn gen"
43  },
44  {
45    "cmd": [
46      "ninja",
47      "-C",
48      "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Android_ASAN/Release"
49    ],
50    "cwd": "[START_DIR]/cache/work/skia",
51    "env": {
52      "CHROME_HEADLESS": "1",
53      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
54    },
55    "name": "ninja"
56  },
57  {
58    "cmd": [
59      "python",
60      "-u",
61      "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",
62      "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Android_ASAN/Release",
63      "[START_DIR]/[SWARM_OUT_DIR]/out/Release"
64    ],
65    "infra_step": true,
66    "name": "copy build products",
67    "~followup_annotations": [
68      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
69      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
70      "@@@STEP_LOG_LINE@python.inline@import os@@@",
71      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
72      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
73      "@@@STEP_LOG_LINE@python.inline@@@@",
74      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
75      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
76      "@@@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']@@@",
77      "@@@STEP_LOG_LINE@python.inline@@@@",
78      "@@@STEP_LOG_LINE@python.inline@try:@@@",
79      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
80      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
81      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
82      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
83      "@@@STEP_LOG_LINE@python.inline@@@@",
84      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
85      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
86      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
87      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
88      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
89      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
90      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
91      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
92      "@@@STEP_LOG_END@python.inline@@@"
93    ]
94  },
95  {
96    "jsonResult": null,
97    "name": "$result"
98  }
99]