| Index: infra/bots/recipes/swarm_test.expected/recipe_with_gerrit_patch.json
|
| diff --git a/infra/bots/recipes/swarm_test.expected/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug.json b/infra/bots/recipes/swarm_test.expected/recipe_with_gerrit_patch.json
|
| similarity index 98%
|
| copy from infra/bots/recipes/swarm_test.expected/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug.json
|
| copy to infra/bots/recipes/swarm_test.expected/recipe_with_gerrit_patch.json
|
| index 418b6eb056afa384c653ede2b248a942ec044fa1..35ccfbf36266693c4451923efa05897f8295376d 100644
|
| --- a/infra/bots/recipes/swarm_test.expected/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug.json
|
| +++ b/infra/bots/recipes/swarm_test.expected/recipe_with_gerrit_patch.json
|
| @@ -3,6 +3,28 @@
|
| "cmd": [
|
| "python",
|
| "-u",
|
| + "\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",
|
| + "[SLAVE_BUILD]/tmp",
|
| + "511"
|
| + ],
|
| + "name": "makedirs tmp_dir",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@python.inline@@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
|
| + "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
|
| + "@@@STEP_LOG_END@python.inline@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "python",
|
| + "-u",
|
| "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
|
| "[SLAVE_BUILD]/skia/infra/bots/assets/skp/VERSION",
|
| "/path/to/tmp/"
|
| @@ -107,28 +129,6 @@
|
| "cmd": [
|
| "python",
|
| "-u",
|
| - "\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",
|
| - "[SLAVE_BUILD]/tmp",
|
| - "511"
|
| - ],
|
| - "name": "makedirs tmp_dir",
|
| - "~followup_annotations": [
|
| - "@@@STEP_LOG_LINE@python.inline@@@@",
|
| - "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
|
| - "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
|
| - "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
|
| - "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
|
| - "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
|
| - "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
|
| - "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
|
| - "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
|
| - "@@@STEP_LOG_END@python.inline@@@"
|
| - ]
|
| - },
|
| - {
|
| - "cmd": [
|
| - "python",
|
| - "-u",
|
| "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\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[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(waittime)\n",
|
| "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt"
|
| ],
|
| @@ -192,9 +192,15 @@
|
| "master",
|
| "client.skia",
|
| "builder",
|
| - "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug",
|
| + "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug-Trybot",
|
| "build_number",
|
| "5",
|
| + "issue",
|
| + "2100",
|
| + "patchset",
|
| + "2",
|
| + "patch_storage",
|
| + "gerrit",
|
| "--svgs",
|
| "[SLAVE_BUILD]/svg",
|
| "--key",
|
| @@ -212,8 +218,6 @@
|
| "GCE",
|
| "os",
|
| "Ubuntu",
|
| - "--uninterestingHashesFile",
|
| - "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt",
|
| "--writePath",
|
| "[CUSTOM_[SWARM_OUT_DIR]]/dm",
|
| "--nogpu",
|
|
|