• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "cmd": [
4      "python",
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]/tmp"
13    ],
14    "infra_step": true,
15    "name": "makedirs tmp_dir"
16  },
17  {
18    "cmd": [
19      "python",
20      "-u",
21      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
22      "--json-output",
23      "/path/to/tmp/json",
24      "copy",
25      "[START_DIR]/skia/infra/bots/assets/lottie-samples/VERSION",
26      "/path/to/tmp/"
27    ],
28    "infra_step": true,
29    "name": "Get lottie-samples VERSION"
30  },
31  {
32    "cmd": [
33      "python",
34      "-u",
35      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
36      "--json-output",
37      "/path/to/tmp/json",
38      "copy",
39      "42",
40      "[START_DIR]/tmp/LOTTIE_VERSION"
41    ],
42    "infra_step": true,
43    "name": "write LOTTIE_VERSION",
44    "~followup_annotations": [
45      "@@@STEP_LOG_LINE@LOTTIE_VERSION@42@@@",
46      "@@@STEP_LOG_END@LOTTIE_VERSION@@@"
47    ]
48  },
49  {
50    "cmd": [
51      "python",
52      "-u",
53      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
54      "--json-output",
55      "/path/to/tmp/json",
56      "rmtree",
57      "[START_DIR]/test"
58    ],
59    "infra_step": true,
60    "name": "rmtree test"
61  },
62  {
63    "cmd": [
64      "python",
65      "-u",
66      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
67      "--json-output",
68      "/path/to/tmp/json",
69      "ensure-directory",
70      "--mode",
71      "0777",
72      "[START_DIR]/test"
73    ],
74    "infra_step": true,
75    "name": "makedirs test"
76  },
77  {
78    "cmd": [
79      "python",
80      "-u",
81      "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = sys.argv[1]\nRETRIES = 5\nTIMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in range(RETRIES):\n  try:\n    with contextlib.closing(\n        urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:\n      hashes = w.read()\n      with open(sys.argv[2], 'w') as f:\n        f.write(hashes)\n        break\n  except Exception as e:\n    print 'Failed to get uninteresting hashes from %s:' % HASHES_URL\n    print e\n    if retry == RETRIES:\n      raise\n    waittime = WAIT_BASE * math.pow(2, retry)\n    print 'Retry in %d seconds.' % waittime\n    time.sleep(waittime)\n",
82      "https://example.com/hashes.txt",
83      "[START_DIR]/tmp/uninteresting_hashes.txt"
84    ],
85    "env": {
86      "CHROME_HEADLESS": "1",
87      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
88    },
89    "infra_step": true,
90    "name": "get uninteresting hashes",
91    "~followup_annotations": [
92      "@@@STEP_LOG_LINE@python.inline@@@@",
93      "@@@STEP_LOG_LINE@python.inline@import contextlib@@@",
94      "@@@STEP_LOG_LINE@python.inline@import math@@@",
95      "@@@STEP_LOG_LINE@python.inline@import socket@@@",
96      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
97      "@@@STEP_LOG_LINE@python.inline@import time@@@",
98      "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
99      "@@@STEP_LOG_LINE@python.inline@@@@",
100      "@@@STEP_LOG_LINE@python.inline@HASHES_URL = sys.argv[1]@@@",
101      "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@",
102      "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@",
103      "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@",
104      "@@@STEP_LOG_LINE@python.inline@@@@",
105      "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@",
106      "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@",
107      "@@@STEP_LOG_LINE@python.inline@  try:@@@",
108      "@@@STEP_LOG_LINE@python.inline@    with contextlib.closing(@@@",
109      "@@@STEP_LOG_LINE@python.inline@        urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@",
110      "@@@STEP_LOG_LINE@python.inline@      hashes = w.read()@@@",
111      "@@@STEP_LOG_LINE@python.inline@      with open(sys.argv[2], 'w') as f:@@@",
112      "@@@STEP_LOG_LINE@python.inline@        f.write(hashes)@@@",
113      "@@@STEP_LOG_LINE@python.inline@        break@@@",
114      "@@@STEP_LOG_LINE@python.inline@  except Exception as e:@@@",
115      "@@@STEP_LOG_LINE@python.inline@    print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@",
116      "@@@STEP_LOG_LINE@python.inline@    print e@@@",
117      "@@@STEP_LOG_LINE@python.inline@    if retry == RETRIES:@@@",
118      "@@@STEP_LOG_LINE@python.inline@      raise@@@",
119      "@@@STEP_LOG_LINE@python.inline@    waittime = WAIT_BASE * math.pow(2, retry)@@@",
120      "@@@STEP_LOG_LINE@python.inline@    print 'Retry in %d seconds.' % waittime@@@",
121      "@@@STEP_LOG_LINE@python.inline@    time.sleep(waittime)@@@",
122      "@@@STEP_LOG_END@python.inline@@@"
123    ]
124  },
125  {
126    "cmd": [
127      "python",
128      "-u",
129      "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
130    ],
131    "name": "get swarming bot id",
132    "~followup_annotations": [
133      "@@@STEP_LOG_LINE@python.inline@import os@@@",
134      "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
135      "@@@STEP_LOG_END@python.inline@@@"
136    ]
137  },
138  {
139    "cmd": [
140      "python",
141      "-u",
142      "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
143    ],
144    "name": "get swarming task id",
145    "~followup_annotations": [
146      "@@@STEP_LOG_LINE@python.inline@import os@@@",
147      "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
148      "@@@STEP_LOG_END@python.inline@@@"
149    ]
150  },
151  {
152    "cmd": [
153      "python",
154      "-u",
155      "RECIPE_MODULE[skia::flavor]/resources/symbolize_stack_trace.py",
156      "[START_DIR]",
157      "catchsegv",
158      "[START_DIR]/build/dm",
159      "--resourcePath",
160      "[START_DIR]/skia/resources",
161      "--skps",
162      "[START_DIR]/skp",
163      "--images",
164      "[START_DIR]/skimage/dm",
165      "--colorImages",
166      "[START_DIR]/skimage/colorspace",
167      "--nameByHash",
168      "--properties",
169      "gitHash",
170      "abc123",
171      "builder",
172      "Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-Lottie",
173      "buildbucket_build_id",
174      "123454321",
175      "task_id",
176      "task_12345",
177      "swarming_bot_id",
178      "skia-bot-123",
179      "swarming_task_id",
180      "123456",
181      "--svgs",
182      "[START_DIR]/svg",
183      "--lotties",
184      "[START_DIR]/skia/resources/skottie",
185      "[START_DIR]/lottie-samples",
186      "--key",
187      "arch",
188      "x86_64",
189      "compiler",
190      "Clang",
191      "configuration",
192      "Release",
193      "cpu_or_gpu",
194      "CPU",
195      "cpu_or_gpu_value",
196      "AVX2",
197      "extra_config",
198      "Lottie",
199      "model",
200      "GCE",
201      "os",
202      "Debian9",
203      "renderer",
204      "skottie",
205      "style",
206      "default",
207      "--uninterestingHashesFile",
208      "[START_DIR]/tmp/uninteresting_hashes.txt",
209      "--writePath",
210      "[START_DIR]/[SWARM_OUT_DIR]",
211      "--dont_write",
212      "pdf",
213      "--randomProcessorTest",
214      "--nogpu",
215      "--config",
216      "8888",
217      "--src",
218      "lottie",
219      "--blacklist",
220      "_",
221      "image",
222      "gen_platf",
223      "error",
224      "--nonativeFonts",
225      "--verbose"
226    ],
227    "cwd": "[START_DIR]/skia",
228    "env": {
229      "CHROME_HEADLESS": "1",
230      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
231    },
232    "name": "symbolized dm"
233  },
234  {
235    "name": "$result"
236  }
237]