• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "cmd": [
4      "vpython3",
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      "vpython3",
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      "vk_swiftshader"
60    ],
61    "cwd": "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
62    "env": {
63      "CC": "[START_DIR]/clang_linux/bin/clang",
64      "CHROME_HEADLESS": "1",
65      "CXX": "[START_DIR]/clang_linux/bin/clang++",
66      "PATH": "<PATH>:RECIPE_REPO[depot_tools]:[START_DIR]/cmake_linux/bin",
67      "SWIFTSHADER_MSAN_INSTRUMENTED_LIBCXX_PATH": "/totally/phony/path"
68    },
69    "name": "swiftshader ninja"
70  },
71  {
72    "cmd": [
73      "python",
74      "[START_DIR]/cache/work/skia/bin/fetch-gn"
75    ],
76    "cwd": "[START_DIR]/cache/work/skia",
77    "env": {
78      "CHROME_HEADLESS": "1",
79      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
80    },
81    "infra_step": true,
82    "name": "fetch-gn"
83  },
84  {
85    "cmd": [
86      "[START_DIR]/ccache_linux/bin/ccache",
87      "-s"
88    ],
89    "cwd": "[START_DIR]/cache/work/skia",
90    "env": {
91      "CCACHE_COMPILERCHECK": "content",
92      "CCACHE_DIR": "[START_DIR]/cache/ccache",
93      "CCACHE_MAXFILES": "0",
94      "CCACHE_MAXSIZE": "75G",
95      "CHROME_HEADLESS": "1",
96      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
97    },
98    "name": "ccache stats-start"
99  },
100  {
101    "cmd": [
102      "[START_DIR]/cache/work/skia/bin/gn",
103      "gen",
104      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release",
105      "--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\", \"-DSK_GPU_TOOLS_VK_LIBRARY_NAME=[START_DIR]/[SWARM_OUT_DIR]/swiftshader_out/libvk_swiftshader.so\"] extra_ldflags=[\"-B[START_DIR]/clang_linux/bin\", \"-fuse-ld=lld\", \"-L[START_DIR]/clang_linux/lib\"] is_debug=false skia_use_vulkan=true target_cpu=\"x86_64\" werror=true"
106    ],
107    "cwd": "[START_DIR]/cache/work/skia",
108    "env": {
109      "CCACHE_COMPILERCHECK": "content",
110      "CCACHE_DIR": "[START_DIR]/cache/ccache",
111      "CCACHE_MAXFILES": "0",
112      "CCACHE_MAXSIZE": "75G",
113      "CHROME_HEADLESS": "1",
114      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
115    },
116    "name": "gn gen"
117  },
118  {
119    "cmd": [
120      "ninja",
121      "-C",
122      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release"
123    ],
124    "cwd": "[START_DIR]/cache/work/skia",
125    "env": {
126      "CCACHE_COMPILERCHECK": "content",
127      "CCACHE_DIR": "[START_DIR]/cache/ccache",
128      "CCACHE_MAXFILES": "0",
129      "CCACHE_MAXSIZE": "75G",
130      "CHROME_HEADLESS": "1",
131      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
132    },
133    "name": "ninja"
134  },
135  {
136    "cmd": [
137      "[START_DIR]/ccache_linux/bin/ccache",
138      "-s"
139    ],
140    "cwd": "[START_DIR]/cache/work/skia",
141    "env": {
142      "CCACHE_COMPILERCHECK": "content",
143      "CCACHE_DIR": "[START_DIR]/cache/ccache",
144      "CCACHE_MAXFILES": "0",
145      "CCACHE_MAXSIZE": "75G",
146      "CHROME_HEADLESS": "1",
147      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
148    },
149    "name": "ccache stats-end"
150  },
151  {
152    "cmd": [
153      "python",
154      "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",
155      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release",
156      "[START_DIR]/[SWARM_OUT_DIR]/out/Release"
157    ],
158    "infra_step": true,
159    "name": "copy build products",
160    "~followup_annotations": [
161      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
162      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
163      "@@@STEP_LOG_LINE@python.inline@import os@@@",
164      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
165      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
166      "@@@STEP_LOG_LINE@python.inline@@@@",
167      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
168      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
169      "@@@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']@@@",
170      "@@@STEP_LOG_LINE@python.inline@@@@",
171      "@@@STEP_LOG_LINE@python.inline@try:@@@",
172      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
173      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
174      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
175      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
176      "@@@STEP_LOG_LINE@python.inline@@@@",
177      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@",
178      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
179      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
180      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
181      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
182      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
183      "@@@STEP_LOG_LINE@python.inline@    print('Copying build product %s to %s' % (f, dst_path))@@@",
184      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
185      "@@@STEP_LOG_END@python.inline@@@"
186    ]
187  },
188  {
189    "cmd": [
190      "python",
191      "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",
192      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Release-SwiftShader/Release/swiftshader_out",
193      "[START_DIR]/[SWARM_OUT_DIR]/swiftshader_out"
194    ],
195    "infra_step": true,
196    "name": "copy build products (2)",
197    "~followup_annotations": [
198      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
199      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
200      "@@@STEP_LOG_LINE@python.inline@import os@@@",
201      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
202      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
203      "@@@STEP_LOG_LINE@python.inline@@@@",
204      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
205      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
206      "@@@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']@@@",
207      "@@@STEP_LOG_LINE@python.inline@@@@",
208      "@@@STEP_LOG_LINE@python.inline@try:@@@",
209      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
210      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
211      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
212      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
213      "@@@STEP_LOG_LINE@python.inline@@@@",
214      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@",
215      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
216      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
217      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
218      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
219      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
220      "@@@STEP_LOG_LINE@python.inline@    print('Copying build product %s to %s' % (f, dst_path))@@@",
221      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
222      "@@@STEP_LOG_END@python.inline@@@"
223    ]
224  },
225  {
226    "name": "$result"
227  }
228]