Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1523)

Side by Side Diff: infra/bots/recipes/swarm_test.expected/recipe_with_gerrit_patch.json

Issue 2263323002: Apply gerrit ref if it is a Gerrit patch (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Cleanup Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
7 "[SLAVE_BUILD]/tmp",
8 "511"
9 ],
10 "name": "makedirs tmp_dir",
11 "~followup_annotations": [
12 "@@@STEP_LOG_LINE@python.inline@@@@",
13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
21 "@@@STEP_LOG_END@python.inline@@@"
22 ]
23 },
24 {
25 "cmd": [
26 "python",
27 "-u",
6 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 28 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
7 "[SLAVE_BUILD]/skia/infra/bots/assets/skp/VERSION", 29 "[SLAVE_BUILD]/skia/infra/bots/assets/skp/VERSION",
8 "/path/to/tmp/" 30 "/path/to/tmp/"
9 ], 31 ],
10 "name": "Get downloaded SKP VERSION" 32 "name": "Get downloaded SKP VERSION"
11 }, 33 },
12 { 34 {
13 "cmd": [ 35 "cmd": [
14 "python", 36 "python",
15 "-u", 37 "-u",
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 122 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
101 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 123 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
102 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", 124 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
103 "@@@STEP_LOG_END@python.inline@@@" 125 "@@@STEP_LOG_END@python.inline@@@"
104 ] 126 ]
105 }, 127 },
106 { 128 {
107 "cmd": [ 129 "cmd": [
108 "python", 130 "python",
109 "-u", 131 "-u",
110 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
111 "[SLAVE_BUILD]/tmp",
112 "511"
113 ],
114 "name": "makedirs tmp_dir",
115 "~followup_annotations": [
116 "@@@STEP_LOG_LINE@python.inline@@@@",
117 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
118 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
119 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
120 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
121 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
122 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
123 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
124 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
125 "@@@STEP_LOG_END@python.inline@@@"
126 ]
127 },
128 {
129 "cmd": [
130 "python",
131 "-u",
132 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\ nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\nRETRIES = 5\nT IMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in r ange(RETRIES):\n try:\n with contextlib.closing(\n urllib2.urlopen(HA SHES_URL, timeout=TIMEOUT)) as w:\n hashes = w.read()\n with open(sys. argv[1], '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(wait time)\n", 132 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\ nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\nRETRIES = 5\nT IMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in r ange(RETRIES):\n try:\n with contextlib.closing(\n urllib2.urlopen(HA SHES_URL, timeout=TIMEOUT)) as w:\n hashes = w.read()\n with open(sys. argv[1], '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(wait time)\n",
133 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt" 133 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt"
134 ], 134 ],
135 "cwd": "[SLAVE_BUILD]/skia", 135 "cwd": "[SLAVE_BUILD]/skia",
136 "env": { 136 "env": {
137 "BUILDTYPE": "Debug", 137 "BUILDTYPE": "Debug",
138 "CHROME_HEADLESS": "1", 138 "CHROME_HEADLESS": "1",
139 "SKIA_OUT": "[SLAVE_BUILD]/out" 139 "SKIA_OUT": "[SLAVE_BUILD]/out"
140 }, 140 },
141 "name": "get uninteresting hashes", 141 "name": "get uninteresting hashes",
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 "[SLAVE_BUILD]/skimage/dm", 185 "[SLAVE_BUILD]/skimage/dm",
186 "--colorImages", 186 "--colorImages",
187 "[SLAVE_BUILD]/skimage/colorspace", 187 "[SLAVE_BUILD]/skimage/colorspace",
188 "--nameByHash", 188 "--nameByHash",
189 "--properties", 189 "--properties",
190 "gitHash", 190 "gitHash",
191 "abc123", 191 "abc123",
192 "master", 192 "master",
193 "client.skia", 193 "client.skia",
194 "builder", 194 "builder",
195 "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug", 195 "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug-Trybot",
196 "build_number", 196 "build_number",
197 "5", 197 "5",
198 "issue",
199 "2100",
200 "patchset",
201 "2",
202 "patch_storage",
203 "gerrit",
198 "--svgs", 204 "--svgs",
199 "[SLAVE_BUILD]/svg", 205 "[SLAVE_BUILD]/svg",
200 "--key", 206 "--key",
201 "arch", 207 "arch",
202 "x86", 208 "x86",
203 "compiler", 209 "compiler",
204 "GCC", 210 "GCC",
205 "configuration", 211 "configuration",
206 "Debug", 212 "Debug",
207 "cpu_or_gpu", 213 "cpu_or_gpu",
208 "CPU", 214 "CPU",
209 "cpu_or_gpu_value", 215 "cpu_or_gpu_value",
210 "AVX2", 216 "AVX2",
211 "model", 217 "model",
212 "GCE", 218 "GCE",
213 "os", 219 "os",
214 "Ubuntu", 220 "Ubuntu",
215 "--uninterestingHashesFile",
216 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt",
217 "--writePath", 221 "--writePath",
218 "[CUSTOM_[SWARM_OUT_DIR]]/dm", 222 "[CUSTOM_[SWARM_OUT_DIR]]/dm",
219 "--nogpu", 223 "--nogpu",
220 "--threads", 224 "--threads",
221 "4", 225 "4",
222 "--config", 226 "--config",
223 "565", 227 "565",
224 "8888", 228 "8888",
225 "gpu", 229 "gpu",
226 "gpusrgb", 230 "gpusrgb",
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 "SKIA_OUT": "[SLAVE_BUILD]/out" 500 "SKIA_OUT": "[SLAVE_BUILD]/out"
497 }, 501 },
498 "name": "dm" 502 "name": "dm"
499 }, 503 },
500 { 504 {
501 "name": "$result", 505 "name": "$result",
502 "recipe_result": null, 506 "recipe_result": null,
503 "status_code": 0 507 "status_code": 0
504 } 508 }
505 ] 509 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698