• 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      "python",
23      "-u",
24      "[START_DIR]/cache/work/skia/bin/fetch-gn"
25    ],
26    "cwd": "[START_DIR]/cache/work/skia",
27    "env": {
28      "CHROME_HEADLESS": "1",
29      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
30    },
31    "infra_step": true,
32    "name": "fetch-gn"
33  },
34  {
35    "cmd": [
36      "[START_DIR]/ccache_linux/bin/ccache",
37      "-s"
38    ],
39    "cwd": "[START_DIR]/cache/work/skia",
40    "env": {
41      "CCACHE_COMPILERCHECK": "content",
42      "CCACHE_DIR": "[START_DIR]/cache/ccache",
43      "CCACHE_MAXFILES": "0",
44      "CCACHE_MAXSIZE": "75G",
45      "CHROME_HEADLESS": "1",
46      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
47    },
48    "name": "ccache stats-start"
49  },
50  {
51    "cmd": [
52      "[START_DIR]/cache/work/skia/bin/gn",
53      "gen",
54      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Debug-Coverage/Debug",
55      "--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\", \"-fprofile-instr-generate\", \"-fcoverage-mapping\", \"-O1\"] extra_ldflags=[\"-B[START_DIR]/clang_linux/bin\", \"-fuse-ld=lld\", \"-fprofile-instr-generate\", \"-fcoverage-mapping\", \"-L[START_DIR]/clang_linux/lib\"] target_cpu=\"x86_64\" werror=true"
56    ],
57    "cwd": "[START_DIR]/cache/work/skia",
58    "env": {
59      "CCACHE_COMPILERCHECK": "content",
60      "CCACHE_DIR": "[START_DIR]/cache/ccache",
61      "CCACHE_MAXFILES": "0",
62      "CCACHE_MAXSIZE": "75G",
63      "CHROME_HEADLESS": "1",
64      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
65    },
66    "name": "gn gen"
67  },
68  {
69    "cmd": [
70      "ninja",
71      "-C",
72      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Debug-Coverage/Debug"
73    ],
74    "cwd": "[START_DIR]/cache/work/skia",
75    "env": {
76      "CCACHE_COMPILERCHECK": "content",
77      "CCACHE_DIR": "[START_DIR]/cache/ccache",
78      "CCACHE_MAXFILES": "0",
79      "CCACHE_MAXSIZE": "75G",
80      "CHROME_HEADLESS": "1",
81      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
82    },
83    "name": "ninja"
84  },
85  {
86    "cmd": [
87      "[START_DIR]/ccache_linux/bin/ccache",
88      "-s"
89    ],
90    "cwd": "[START_DIR]/cache/work/skia",
91    "env": {
92      "CCACHE_COMPILERCHECK": "content",
93      "CCACHE_DIR": "[START_DIR]/cache/ccache",
94      "CCACHE_MAXFILES": "0",
95      "CCACHE_MAXSIZE": "75G",
96      "CHROME_HEADLESS": "1",
97      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
98    },
99    "name": "ccache stats-end"
100  },
101  {
102    "cmd": [
103      "python",
104      "-u",
105      "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', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk']\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",
106      "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-x86_64-Debug-Coverage/Debug",
107      "[START_DIR]/[SWARM_OUT_DIR]/out/Debug"
108    ],
109    "infra_step": true,
110    "name": "copy build products",
111    "~followup_annotations": [
112      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
113      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
114      "@@@STEP_LOG_LINE@python.inline@import os@@@",
115      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
116      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
117      "@@@STEP_LOG_LINE@python.inline@@@@",
118      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
119      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
120      "@@@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', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk']@@@",
121      "@@@STEP_LOG_LINE@python.inline@@@@",
122      "@@@STEP_LOG_LINE@python.inline@try:@@@",
123      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
124      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
125      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
126      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
127      "@@@STEP_LOG_LINE@python.inline@@@@",
128      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@",
129      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
130      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
131      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
132      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
133      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
134      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
135      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
136      "@@@STEP_LOG_END@python.inline@@@"
137    ]
138  },
139  {
140    "name": "$result"
141  }
142]