1[
2  {
3    "cmd": [],
4    "name": "Docker setup"
5  },
6  {
7    "cmd": [
8      "python3",
9      "RECIPE_MODULE[skia::docker]/resources/get_uid_gid.py"
10    ],
11    "name": "Docker setup.Get uid and gid",
12    "~followup_annotations": [
13      "@@@STEP_NEST_LEVEL@1@@@"
14    ]
15  },
16  {
17    "cmd": [
18      "vpython3",
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      "0o777",
26      "[START_DIR]/[SWARM_OUT_DIR]"
27    ],
28    "infra_step": true,
29    "name": "Docker setup.mkdirs out_dir",
30    "~followup_annotations": [
31      "@@@STEP_NEST_LEVEL@1@@@"
32    ]
33  },
34  {
35    "cmd": [
36      "chmod",
37      "777",
38      "[START_DIR]/[SWARM_OUT_DIR]"
39    ],
40    "infra_step": true,
41    "name": "Docker setup.chmod 777 [START_DIR]/[SWARM_OUT_DIR]",
42    "~followup_annotations": [
43      "@@@STEP_NEST_LEVEL@1@@@"
44    ]
45  },
46  {
47    "cmd": [
48      "chmod",
49      "755",
50      "[START_DIR]"
51    ],
52    "infra_step": true,
53    "name": "Docker setup.chmod 755 [START_DIR]",
54    "~followup_annotations": [
55      "@@@STEP_NEST_LEVEL@1@@@"
56    ]
57  },
58  {
59    "cmd": [
60      "chmod",
61      "0755",
62      "[START_DIR]/skia/infra/pathkit/test_pathkit.sh"
63    ],
64    "infra_step": true,
65    "name": "Docker setup.chmod 0755 [START_DIR]/skia/infra/pathkit/test_pathkit.sh",
66    "~followup_annotations": [
67      "@@@STEP_NEST_LEVEL@1@@@"
68    ]
69  },
70  {
71    "cmd": [
72      "vpython3",
73      "-u",
74      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
75      "--json-output",
76      "/path/to/tmp/json",
77      "ensure-directory",
78      "--mode",
79      "0o777",
80      "[START_DIR]/skia/modules/pathkit/build/asmjs"
81    ],
82    "infra_step": true,
83    "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/build/asmjs",
84    "~followup_annotations": [
85      "@@@STEP_NEST_LEVEL@1@@@"
86    ]
87  },
88  {
89    "cmd": [
90      "vpython3",
91      "-u",
92      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
93      "--json-output",
94      "/path/to/tmp/json",
95      "copy",
96      "[START_DIR]/build/pathkit.js",
97      "[START_DIR]/skia/modules/pathkit/build/asmjs/pathkit.js"
98    ],
99    "infra_step": true,
100    "name": "Docker setup.cp [START_DIR]/build/pathkit.js [START_DIR]/skia/modules/pathkit/build/asmjs/pathkit.js",
101    "~followup_annotations": [
102      "@@@STEP_NEST_LEVEL@1@@@"
103    ]
104  },
105  {
106    "cmd": [
107      "chmod",
108      "644",
109      "[START_DIR]/skia/modules/pathkit/build/asmjs/pathkit.js"
110    ],
111    "infra_step": true,
112    "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/build/asmjs/pathkit.js",
113    "~followup_annotations": [
114      "@@@STEP_NEST_LEVEL@1@@@"
115    ]
116  },
117  {
118    "cmd": [
119      "chmod",
120      "-R",
121      "a+r",
122      "[START_DIR]/skia"
123    ],
124    "infra_step": true,
125    "name": "Docker setup.chmod -R a+r [START_DIR]/skia",
126    "~followup_annotations": [
127      "@@@STEP_NEST_LEVEL@1@@@"
128    ]
129  },
130  {
131    "cmd": [
132      "docker",
133      "run",
134      "--shm-size=2gb",
135      "--rm",
136      "--user",
137      "13:17",
138      "--mount",
139      "type=bind,source=[START_DIR],target=/SRC",
140      "--mount",
141      "type=bind,source=[START_DIR]/[SWARM_OUT_DIR],target=/OUT",
142      "--env",
143      "ASM_JS=1",
144      "gcr.io/skia-public/gold-karma-chrome-tests:87.0.4280.88_v2",
145      "/SRC/skia/infra/pathkit/test_pathkit.sh",
146      "--builder",
147      "Test-Debian10-EMCC-GCE-CPU-AVX2-asmjs-Debug-All-PathKit",
148      "--git_hash",
149      "abc123",
150      "--buildbucket_build_id",
151      "",
152      "--browser",
153      "Chrome",
154      "--config",
155      "Debug",
156      "--source_type",
157      "pathkit",
158      "--compiled_language",
159      "asmjs"
160    ],
161    "env": {
162      "CHROME_HEADLESS": "1",
163      "DOCKER_CONFIG": "/home/chrome-bot/.docker",
164      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
165    },
166    "name": "Test PathKit with Docker"
167  },
168  {
169    "cmd": [
170      "vpython3",
171      "-u",
172      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
173      "--json-output",
174      "/path/to/tmp/json",
175      "glob",
176      "[START_DIR]/[SWARM_OUT_DIR]",
177      "*.png"
178    ],
179    "infra_step": true,
180    "name": "find .png images",
181    "~followup_annotations": [
182      "@@@STEP_LOG_LINE@glob@[START_DIR]/[SWARM_OUT_DIR]/someimage.png@@@",
183      "@@@STEP_LOG_END@glob@@@"
184    ]
185  },
186  {
187    "cmd": [
188      "gsutil",
189      "-m",
190      "cp",
191      "[START_DIR]/[SWARM_OUT_DIR]/*.png",
192      "gs://skia-infra-gm/dm-images-v1"
193    ],
194    "name": "upload .png images"
195  },
196  {
197    "cmd": [
198      "gsutil",
199      "cp",
200      "-Z",
201      "[START_DIR]/[SWARM_OUT_DIR]/dm.json",
202      "gs://skia-infra-gm/dm-json-v1/2012/05/14/12/abc123/Test-Debian10-EMCC-GCE-CPU-AVX2-asmjs-Debug-All-PathKit/1337000001/dm.json"
203    ],
204    "name": "upload dm.json"
205  },
206  {
207    "name": "$result"
208  }
209]