• 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/clang_linux/VERSION",
11      "/path/to/tmp/"
12    ],
13    "infra_step": true,
14    "name": "Get clang_linux VERSION"
15  },
16  {
17    "cmd": [
18      "python",
19      "-u",
20      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
21      "--json-output",
22      "/path/to/tmp/json",
23      "ensure-directory",
24      "--mode",
25      "0777",
26      "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out"
27    ],
28    "infra_step": true,
29    "name": "makedirs swiftshader_out"
30  },
31  {
32    "cmd": [
33      "cmake",
34      "-DBUILD_TESTS=OFF",
35      "[START_DIR]/cache/work/skia/third_party/externals/swiftshader",
36      "-GNinja"
37    ],
38    "cwd": "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
39    "env": {
40      "CC": "[START_DIR]/clang_linux/bin/clang",
41      "CHROME_HEADLESS": "1",
42      "CXX": "[START_DIR]/clang_linux/bin/clang++",
43      "PATH": "<PATH>:RECIPE_REPO[depot_tools]:[START_DIR]/cmake_linux/bin"
44    },
45    "name": "swiftshader cmake"
46  },
47  {
48    "cmd": [
49      "ninja",
50      "-C",
51      "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
52      "libEGL.so",
53      "libGLESv2.so"
54    ],
55    "cwd": "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
56    "env": {
57      "CC": "[START_DIR]/clang_linux/bin/clang",
58      "CHROME_HEADLESS": "1",
59      "CXX": "[START_DIR]/clang_linux/bin/clang++",
60      "PATH": "<PATH>:RECIPE_REPO[depot_tools]:[START_DIR]/cmake_linux/bin"
61    },
62    "name": "swiftshader ninja"
63  },
64  {
65    "cmd": [
66      "python",
67      "-u",
68      "[START_DIR]/cache/work/skia/bin/fetch-gn"
69    ],
70    "cwd": "[START_DIR]/cache/work/skia",
71    "env": {
72      "CHROME_HEADLESS": "1",
73      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
74    },
75    "infra_step": true,
76    "name": "fetch-gn"
77  },
78  {
79    "cmd": [
80      "[START_DIR]/cache/work/skia/bin/gn",
81      "gen",
82      "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-x86_64-Release-SwiftShader/Release",
83      "--args=cc=\"[START_DIR]/clang_linux/bin/clang\" cxx=\"[START_DIR]/clang_linux/bin/clang++\" extra_cflags=[\"-B[START_DIR]/clang_linux/bin\", \"-DDUMMY_clang_linux_version=42\", \"-DGR_EGL_TRY_GLES3_THEN_GLES2\", \"-I[START_DIR]/cache/work/skia/third_party/externals/egl-registry/api\", \"-I[START_DIR]/cache/work/skia/third_party/externals/opengl-registry/api\"] extra_ldflags=[\"-B[START_DIR]/clang_linux/bin\", \"-fuse-ld=lld\", \"-L[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out\"] is_debug=false skia_use_egl=true target_cpu=\"x86_64\""
84    ],
85    "cwd": "[START_DIR]/cache/work/skia",
86    "env": {
87      "CHROME_HEADLESS": "1",
88      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
89    },
90    "name": "gn gen"
91  },
92  {
93    "cmd": [
94      "ninja",
95      "-C",
96      "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-x86_64-Release-SwiftShader/Release"
97    ],
98    "cwd": "[START_DIR]/cache/work/skia",
99    "env": {
100      "CHROME_HEADLESS": "1",
101      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
102    },
103    "name": "ninja"
104  },
105  {
106    "cmd": [
107      "python",
108      "-u",
109      "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",
110      "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-x86_64-Release-SwiftShader/Release",
111      "[START_DIR]/[SWARM_OUT_DIR]/out/Release"
112    ],
113    "infra_step": true,
114    "name": "copy build products",
115    "~followup_annotations": [
116      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
117      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
118      "@@@STEP_LOG_LINE@python.inline@import os@@@",
119      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
120      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
121      "@@@STEP_LOG_LINE@python.inline@@@@",
122      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
123      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
124      "@@@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']@@@",
125      "@@@STEP_LOG_LINE@python.inline@@@@",
126      "@@@STEP_LOG_LINE@python.inline@try:@@@",
127      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
128      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
129      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
130      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
131      "@@@STEP_LOG_LINE@python.inline@@@@",
132      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
133      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
134      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
135      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
136      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
137      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
138      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
139      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
140      "@@@STEP_LOG_END@python.inline@@@"
141    ]
142  },
143  {
144    "cmd": [
145      "python",
146      "-u",
147      "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",
148      "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
149      "[START_DIR]/[SWARM_OUT_DIR]/swiftshader_out"
150    ],
151    "infra_step": true,
152    "name": "copy build products (2)",
153    "~followup_annotations": [
154      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
155      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
156      "@@@STEP_LOG_LINE@python.inline@import os@@@",
157      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
158      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
159      "@@@STEP_LOG_LINE@python.inline@@@@",
160      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
161      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
162      "@@@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']@@@",
163      "@@@STEP_LOG_LINE@python.inline@@@@",
164      "@@@STEP_LOG_LINE@python.inline@try:@@@",
165      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
166      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
167      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
168      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
169      "@@@STEP_LOG_LINE@python.inline@@@@",
170      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
171      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
172      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
173      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
174      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
175      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
176      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
177      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
178      "@@@STEP_LOG_END@python.inline@@@"
179    ]
180  },
181  {
182    "jsonResult": null,
183    "name": "$result"
184  }
185]