• 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      "ensure-directory",
10      "--mode",
11      "0777",
12      "[START_DIR]/[SWARM_OUT_DIR]"
13    ],
14    "infra_step": true,
15    "name": "mkdirs out_dir"
16  },
17  {
18    "cmd": [
19      "python",
20      "import os\nprint(os.environ.get('SWARMING_BOT_ID', ''))\n"
21    ],
22    "name": "get swarming bot id",
23    "~followup_annotations": [
24      "@@@STEP_LOG_LINE@python.inline@import os@@@",
25      "@@@STEP_LOG_LINE@python.inline@print(os.environ.get('SWARMING_BOT_ID', ''))@@@",
26      "@@@STEP_LOG_END@python.inline@@@"
27    ]
28  },
29  {
30    "cmd": [
31      "python",
32      "import os\nprint(os.environ.get('SWARMING_TASK_ID', ''))\n"
33    ],
34    "name": "get swarming task id",
35    "~followup_annotations": [
36      "@@@STEP_LOG_LINE@python.inline@import os@@@",
37      "@@@STEP_LOG_LINE@python.inline@print(os.environ.get('SWARMING_TASK_ID', ''))@@@",
38      "@@@STEP_LOG_END@python.inline@@@"
39    ]
40  },
41  {
42    "cmd": [],
43    "name": "Docker setup"
44  },
45  {
46    "cmd": [
47      "python",
48      "import os\nprint('%d:%d' % (os.getuid(), os.getgid()))\n"
49    ],
50    "name": "Docker setup.Get uid and gid",
51    "~followup_annotations": [
52      "@@@STEP_NEST_LEVEL@1@@@",
53      "@@@STEP_LOG_LINE@python.inline@import os@@@",
54      "@@@STEP_LOG_LINE@python.inline@print('%d:%d' % (os.getuid(), os.getgid()))@@@",
55      "@@@STEP_LOG_END@python.inline@@@"
56    ]
57  },
58  {
59    "cmd": [
60      "vpython3",
61      "-u",
62      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
63      "--json-output",
64      "/path/to/tmp/json",
65      "ensure-directory",
66      "--mode",
67      "0777",
68      "[START_DIR]/[SWARM_OUT_DIR]"
69    ],
70    "infra_step": true,
71    "name": "Docker setup.mkdirs out_dir",
72    "~followup_annotations": [
73      "@@@STEP_NEST_LEVEL@1@@@"
74    ]
75  },
76  {
77    "cmd": [
78      "chmod",
79      "777",
80      "[START_DIR]/[SWARM_OUT_DIR]"
81    ],
82    "infra_step": true,
83    "name": "Docker setup.chmod 777 [START_DIR]/[SWARM_OUT_DIR]",
84    "~followup_annotations": [
85      "@@@STEP_NEST_LEVEL@1@@@"
86    ]
87  },
88  {
89    "cmd": [
90      "chmod",
91      "755",
92      "[START_DIR]"
93    ],
94    "infra_step": true,
95    "name": "Docker setup.chmod 755 [START_DIR]",
96    "~followup_annotations": [
97      "@@@STEP_NEST_LEVEL@1@@@"
98    ]
99  },
100  {
101    "cmd": [
102      "chmod",
103      "0755",
104      "[START_DIR]/skia/infra/pathkit/perf_pathkit.sh"
105    ],
106    "infra_step": true,
107    "name": "Docker setup.chmod 0755 [START_DIR]/skia/infra/pathkit/perf_pathkit.sh",
108    "~followup_annotations": [
109      "@@@STEP_NEST_LEVEL@1@@@"
110    ]
111  },
112  {
113    "cmd": [
114      "vpython3",
115      "-u",
116      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
117      "--json-output",
118      "/path/to/tmp/json",
119      "ensure-directory",
120      "--mode",
121      "0777",
122      "[START_DIR]/skia/modules/pathkit/npm-wasm/bin"
123    ],
124    "infra_step": true,
125    "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin",
126    "~followup_annotations": [
127      "@@@STEP_NEST_LEVEL@1@@@"
128    ]
129  },
130  {
131    "cmd": [
132      "vpython3",
133      "-u",
134      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
135      "--json-output",
136      "/path/to/tmp/json",
137      "copy",
138      "[START_DIR]/build/pathkit.js",
139      "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js"
140    ],
141    "infra_step": true,
142    "name": "Docker setup.cp [START_DIR]/build/pathkit.js [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js",
143    "~followup_annotations": [
144      "@@@STEP_NEST_LEVEL@1@@@"
145    ]
146  },
147  {
148    "cmd": [
149      "chmod",
150      "644",
151      "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js"
152    ],
153    "infra_step": true,
154    "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js",
155    "~followup_annotations": [
156      "@@@STEP_NEST_LEVEL@1@@@"
157    ]
158  },
159  {
160    "cmd": [
161      "vpython3",
162      "-u",
163      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
164      "--json-output",
165      "/path/to/tmp/json",
166      "ensure-directory",
167      "--mode",
168      "0777",
169      "[START_DIR]/skia/modules/pathkit/npm-wasm/bin"
170    ],
171    "infra_step": true,
172    "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin (2)",
173    "~followup_annotations": [
174      "@@@STEP_NEST_LEVEL@1@@@"
175    ]
176  },
177  {
178    "cmd": [
179      "vpython3",
180      "-u",
181      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
182      "--json-output",
183      "/path/to/tmp/json",
184      "copy",
185      "[START_DIR]/build/pathkit.wasm",
186      "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm"
187    ],
188    "infra_step": true,
189    "name": "Docker setup.cp [START_DIR]/build/pathkit.wasm [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm",
190    "~followup_annotations": [
191      "@@@STEP_NEST_LEVEL@1@@@"
192    ]
193  },
194  {
195    "cmd": [
196      "chmod",
197      "644",
198      "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm"
199    ],
200    "infra_step": true,
201    "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm",
202    "~followup_annotations": [
203      "@@@STEP_NEST_LEVEL@1@@@"
204    ]
205  },
206  {
207    "cmd": [
208      "chmod",
209      "-R",
210      "a+r",
211      "[START_DIR]/skia"
212    ],
213    "infra_step": true,
214    "name": "Docker setup.chmod -R a+r [START_DIR]/skia",
215    "~followup_annotations": [
216      "@@@STEP_NEST_LEVEL@1@@@"
217    ]
218  },
219  {
220    "cmd": [
221      "docker",
222      "run",
223      "--shm-size=2gb",
224      "--rm",
225      "--user",
226      "13:17",
227      "--mount",
228      "type=bind,source=[START_DIR],target=/SRC",
229      "--mount",
230      "type=bind,source=[START_DIR]/[SWARM_OUT_DIR],target=/OUT",
231      "gcr.io/skia-public/perf-karma-chrome-tests:87.0.4280.88_v1",
232      "/SRC/skia/infra/pathkit/perf_pathkit.sh",
233      "--builder",
234      "Perf-Debian10-EMCC-GCE-CPU-AVX2-wasm-Release-All-PathKit",
235      "--git_hash",
236      "abc123",
237      "--buildbucket_build_id",
238      "",
239      "--bot_id",
240      "",
241      "--task_id",
242      "",
243      "--browser",
244      "Chrome",
245      "--config",
246      "Release",
247      "--source_type",
248      "pathkit",
249      "--issue",
250      "1234",
251      "--patchset",
252      "7"
253    ],
254    "env": {
255      "CHROME_HEADLESS": "1",
256      "DOCKER_CONFIG": "/home/chrome-bot/.docker",
257      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
258    },
259    "name": "Performance tests of PathKit with Docker"
260  },
261  {
262    "name": "$result"
263  }
264]