• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "cmd": [
4      "vpython",
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    "~followup_annotations": [
16      "@@@STEP_LOG_LINE@VERSION@42@@@",
17      "@@@STEP_LOG_END@VERSION@@@"
18    ]
19  },
20  {
21    "cmd": [
22      "vpython",
23      "-u",
24      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
25      "--json-output",
26      "/path/to/tmp/json",
27      "ensure-directory",
28      "--mode",
29      "0777",
30      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out"
31    ],
32    "infra_step": true,
33    "name": "makedirs swiftshader_out"
34  },
35  {
36    "cmd": [
37      "cmake",
38      "-DSWIFTSHADER_BUILD_TESTS=OFF",
39      "-DSWIFTSHADER_WARNINGS_AS_ERRORS=OFF",
40      "-DREACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION=OFF",
41      "[START_DIR]/cache/work/skia/third_party/externals/swiftshader",
42      "-GNinja"
43    ],
44    "cwd": "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
45    "env": {
46      "CC": "[START_DIR]/clang_linux/bin/clang",
47      "CHROME_HEADLESS": "1",
48      "CXX": "[START_DIR]/clang_linux/bin/clang++",
49      "PATH": "<PATH>:RECIPE_REPO[depot_tools]:[START_DIR]/cmake_linux/bin",
50      "SWIFTSHADER_MSAN_INSTRUMENTED_LIBCXX_PATH": "/totally/phony/path"
51    },
52    "name": "swiftshader cmake"
53  },
54  {
55    "cmd": [
56      "ninja",
57      "-C",
58      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
59      "libEGL_deprecated.so",
60      "libGLESv2_deprecated.so"
61    ],
62    "cwd": "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
63    "env": {
64      "CC": "[START_DIR]/clang_linux/bin/clang",
65      "CHROME_HEADLESS": "1",
66      "CXX": "[START_DIR]/clang_linux/bin/clang++",
67      "PATH": "<PATH>:RECIPE_REPO[depot_tools]:[START_DIR]/cmake_linux/bin",
68      "SWIFTSHADER_MSAN_INSTRUMENTED_LIBCXX_PATH": "/totally/phony/path"
69    },
70    "name": "swiftshader ninja"
71  },
72  {
73    "cmd": [
74      "cp",
75      "libEGL_deprecated.so",
76      "libEGL.so"
77    ],
78    "cwd": "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
79    "env": {
80      "CC": "[START_DIR]/clang_linux/bin/clang",
81      "CHROME_HEADLESS": "1",
82      "CXX": "[START_DIR]/clang_linux/bin/clang++",
83      "PATH": "<PATH>:RECIPE_REPO[depot_tools]:[START_DIR]/cmake_linux/bin",
84      "SWIFTSHADER_MSAN_INSTRUMENTED_LIBCXX_PATH": "/totally/phony/path"
85    },
86    "name": "rename legacy libEGL binary"
87  },
88  {
89    "cmd": [
90      "cp",
91      "libGLESv2_deprecated.so",
92      "libGLESv2.so"
93    ],
94    "cwd": "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
95    "env": {
96      "CC": "[START_DIR]/clang_linux/bin/clang",
97      "CHROME_HEADLESS": "1",
98      "CXX": "[START_DIR]/clang_linux/bin/clang++",
99      "PATH": "<PATH>:RECIPE_REPO[depot_tools]:[START_DIR]/cmake_linux/bin",
100      "SWIFTSHADER_MSAN_INSTRUMENTED_LIBCXX_PATH": "/totally/phony/path"
101    },
102    "name": "rename legacy libGLESv2 binary"
103  },
104  {
105    "cmd": [
106      "python",
107      "-u",
108      "[START_DIR]/cache/work/skia/bin/fetch-gn"
109    ],
110    "cwd": "[START_DIR]/cache/work/skia",
111    "env": {
112      "CHROME_HEADLESS": "1",
113      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
114    },
115    "infra_step": true,
116    "name": "fetch-gn"
117  },
118  {
119    "cmd": [
120      "[START_DIR]/ccache_linux/bin/ccache",
121      "-s"
122    ],
123    "cwd": "[START_DIR]/cache/work/skia",
124    "env": {
125      "CCACHE_COMPILERCHECK": "content",
126      "CCACHE_DIR": "[START_DIR]/cache/ccache",
127      "CCACHE_MAXFILES": "0",
128      "CCACHE_MAXSIZE": "75G",
129      "CHROME_HEADLESS": "1",
130      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
131    },
132    "name": "ccache stats-start"
133  },
134  {
135    "cmd": [
136      "[START_DIR]/cache/work/skia/bin/gn",
137      "gen",
138      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release",
139      "--args=cc=\"[START_DIR]/clang_linux/bin/clang\" cc_wrapper=\"[START_DIR]/ccache_linux/bin/ccache\" cxx=\"[START_DIR]/clang_linux/bin/clang++\" extra_cflags=[\"-B[START_DIR]/clang_linux/bin\", \"-DPLACEHOLDER_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]/clang_linux/lib\", \"-L[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out\"] is_debug=false skia_use_egl=true target_cpu=\"x86_64\" werror=true"
140    ],
141    "cwd": "[START_DIR]/cache/work/skia",
142    "env": {
143      "CCACHE_COMPILERCHECK": "content",
144      "CCACHE_DIR": "[START_DIR]/cache/ccache",
145      "CCACHE_MAXFILES": "0",
146      "CCACHE_MAXSIZE": "75G",
147      "CHROME_HEADLESS": "1",
148      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
149    },
150    "name": "gn gen"
151  },
152  {
153    "cmd": [
154      "ninja",
155      "-C",
156      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release"
157    ],
158    "cwd": "[START_DIR]/cache/work/skia",
159    "env": {
160      "CCACHE_COMPILERCHECK": "content",
161      "CCACHE_DIR": "[START_DIR]/cache/ccache",
162      "CCACHE_MAXFILES": "0",
163      "CCACHE_MAXSIZE": "75G",
164      "CHROME_HEADLESS": "1",
165      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
166    },
167    "name": "ninja"
168  },
169  {
170    "cmd": [
171      "[START_DIR]/ccache_linux/bin/ccache",
172      "-s"
173    ],
174    "cwd": "[START_DIR]/cache/work/skia",
175    "env": {
176      "CCACHE_COMPILERCHECK": "content",
177      "CCACHE_DIR": "[START_DIR]/cache/ccache",
178      "CCACHE_MAXFILES": "0",
179      "CCACHE_MAXSIZE": "75G",
180      "CHROME_HEADLESS": "1",
181      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
182    },
183    "name": "ccache stats-end"
184  },
185  {
186    "cmd": [
187      "python",
188      "-u",
189      "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products = ['dm', 'dm.exe', 'dm.app', 'fm', 'fm.exe', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab']\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",
190      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release",
191      "[START_DIR]/[SWARM_OUT_DIR]/out/Release"
192    ],
193    "infra_step": true,
194    "name": "copy build products",
195    "~followup_annotations": [
196      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
197      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
198      "@@@STEP_LOG_LINE@python.inline@import os@@@",
199      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
200      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
201      "@@@STEP_LOG_LINE@python.inline@@@@",
202      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
203      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
204      "@@@STEP_LOG_LINE@python.inline@build_products = ['dm', 'dm.exe', 'dm.app', 'fm', 'fm.exe', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab']@@@",
205      "@@@STEP_LOG_LINE@python.inline@@@@",
206      "@@@STEP_LOG_LINE@python.inline@try:@@@",
207      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
208      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
209      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
210      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
211      "@@@STEP_LOG_LINE@python.inline@@@@",
212      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@",
213      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
214      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
215      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
216      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
217      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
218      "@@@STEP_LOG_LINE@python.inline@    print('Copying build product %s to %s' % (f, dst_path))@@@",
219      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
220      "@@@STEP_LOG_END@python.inline@@@"
221    ]
222  },
223  {
224    "cmd": [
225      "python",
226      "-u",
227      "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products = ['dm', 'dm.exe', 'dm.app', 'fm', 'fm.exe', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab']\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",
228      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
229      "[START_DIR]/[SWARM_OUT_DIR]/swiftshader_out"
230    ],
231    "infra_step": true,
232    "name": "copy build products (2)",
233    "~followup_annotations": [
234      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
235      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
236      "@@@STEP_LOG_LINE@python.inline@import os@@@",
237      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
238      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
239      "@@@STEP_LOG_LINE@python.inline@@@@",
240      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
241      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
242      "@@@STEP_LOG_LINE@python.inline@build_products = ['dm', 'dm.exe', 'dm.app', 'fm', 'fm.exe', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab']@@@",
243      "@@@STEP_LOG_LINE@python.inline@@@@",
244      "@@@STEP_LOG_LINE@python.inline@try:@@@",
245      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
246      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
247      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
248      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
249      "@@@STEP_LOG_LINE@python.inline@@@@",
250      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@",
251      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
252      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
253      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
254      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
255      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
256      "@@@STEP_LOG_LINE@python.inline@    print('Copying build product %s to %s' % (f, dst_path))@@@",
257      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
258      "@@@STEP_LOG_END@python.inline@@@"
259    ]
260  },
261  {
262    "name": "$result"
263  }
264]