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