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