diff options
author | Kevin Lubick <kjlubick@google.com> | 2017-08-31 13:32:44 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-31 17:50:01 +0000 |
commit | 5d303ed44b611708784f7b05cfa35a270c8d0c09 (patch) | |
tree | 967429a262370c48375870166442ab0b82ad1ee7 /infra/bots | |
parent | 56ffafee4454759ffcd1b2fea04ce44300624c93 (diff) |
Fix chromecast perfs
Bug: skia:
NOTRY=true
Change-Id: I5efe4bc59efa4bc81e5f8811fed7867ec20447fb
Reviewed-on: https://skia-review.googlesource.com/41541
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'infra/bots')
5 files changed, 31 insertions, 16 deletions
diff --git a/infra/bots/recipe_modules/flavor/examples/full.expected/Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Release.json b/infra/bots/recipe_modules/flavor/examples/full.expected/Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Release.json index 24eef46e3c..eaecbd6734 100644 --- a/infra/bots/recipe_modules/flavor/examples/full.expected/Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Release.json +++ b/infra/bots/recipe_modules/flavor/examples/full.expected/Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Release.json @@ -221,6 +221,7 @@ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", "SKIA_OUT": "[START_DIR]/out" }, + "infra_step": true, "name": "Delete old nanobench" }, { @@ -814,11 +815,13 @@ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", "SKIA_OUT": "[START_DIR]/out" }, + "infra_step": true, "name": "Delete executables" }, { "cmd": [ - "adb" + "adb", + "disconnect" ], "cwd": "[START_DIR]/skia", "env": { @@ -881,7 +884,8 @@ }, { "cmd": [ - "adb" + "adb", + "disconnect" ], "cwd": "[START_DIR]/skia", "env": { diff --git a/infra/bots/recipe_modules/flavor/gn_chromecast_flavor.py b/infra/bots/recipe_modules/flavor/gn_chromecast_flavor.py index 7f2c167324..c1e3b70be6 100644 --- a/infra/bots/recipe_modules/flavor/gn_chromecast_flavor.py +++ b/infra/bots/recipe_modules/flavor/gn_chromecast_flavor.py @@ -101,7 +101,8 @@ class GNChromecastFlavorUtils(gn_android_flavor.GNAndroidFlavorUtils): # TODO(kjlubick): Remove this after we are backfilled up and don't need # to manually delete this self._ssh('Delete old nanobench', 'rm', '/cache/skia/nanobench', - abort_on_failure=False) + abort_on_failure=False, fail_build_on_failure=False, + infra_step=True) def _adb(self, title, *cmd, **kwargs): if not self._ever_ran_adb: @@ -152,9 +153,9 @@ class GNChromecastFlavorUtils(gn_android_flavor.GNAndroidFlavorUtils): if self._ever_ran_adb: # To clean up disk space for next time self._ssh('Delete executables', 'rm', '-r', self.m.vars.android_bin_dir, - abort_on_failure=False) + abort_on_failure=False, infra_step=True) # Reconnect if was disconnected - self._adb('disconnect') + self._adb('disconnect', 'disconnect') self._connect_to_remote() self.m.run(self.m.python.inline, 'dump log', program=""" import os @@ -176,16 +177,14 @@ class GNChromecastFlavorUtils(gn_android_flavor.GNAndroidFlavorUtils): infra_step=True, abort_on_failure=False) - self._adb('disconnect') + self._adb('disconnect', 'disconnect') self._adb('kill adb server', 'kill-server') - def _ssh(self, title, *cmd, **kwargs): ssh_cmd = ['ssh', '-oConnectTimeout=15', '-oBatchMode=yes', '-t', '-t', 'root@%s' % self.user_ip] + list(cmd) - return self.m.run(self.m.step, title, cmd=ssh_cmd, - infra_step=False, **kwargs) + return self.m.run(self.m.step, title, cmd=ssh_cmd, **kwargs) def step(self, name, cmd, **kwargs): app = self.m.vars.skia_out.join(self.m.vars.configuration, cmd[0]) @@ -194,5 +193,5 @@ class GNChromecastFlavorUtils(gn_android_flavor.GNAndroidFlavorUtils): 'push', app, self.m.vars.android_bin_dir) cmd[0] = '%s/%s' % (self.m.vars.android_bin_dir, cmd[0]) - self._ssh(str(name), *cmd) + self._ssh(str(name), *cmd, infra_step=False) diff --git a/infra/bots/recipes/perf.expected/Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Debug.json b/infra/bots/recipes/perf.expected/Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Debug.json index 5f9562fdda..d0cae9b36a 100644 --- a/infra/bots/recipes/perf.expected/Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Debug.json +++ b/infra/bots/recipes/perf.expected/Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Debug.json @@ -91,6 +91,7 @@ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", "SKIA_OUT": "[START_DIR]/out" }, + "infra_step": true, "name": "Delete old nanobench" }, { @@ -383,11 +384,13 @@ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", "SKIA_OUT": "[START_DIR]/out" }, + "infra_step": true, "name": "Delete executables" }, { "cmd": [ - "adb" + "adb", + "disconnect" ], "cwd": "[START_DIR]/skia", "env": { @@ -450,7 +453,8 @@ }, { "cmd": [ - "adb" + "adb", + "disconnect" ], "cwd": "[START_DIR]/skia", "env": { diff --git a/infra/bots/recipes/perf.expected/Perf-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release.json b/infra/bots/recipes/perf.expected/Perf-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release.json index 173c236ee1..8b2611db99 100644 --- a/infra/bots/recipes/perf.expected/Perf-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release.json +++ b/infra/bots/recipes/perf.expected/Perf-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release.json @@ -91,6 +91,7 @@ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", "SKIA_OUT": "[START_DIR]/out" }, + "infra_step": true, "name": "Delete old nanobench" }, { @@ -473,11 +474,13 @@ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", "SKIA_OUT": "[START_DIR]/out" }, + "infra_step": true, "name": "Delete executables" }, { "cmd": [ - "adb" + "adb", + "disconnect" ], "cwd": "[START_DIR]/skia", "env": { @@ -540,7 +543,8 @@ }, { "cmd": [ - "adb" + "adb", + "disconnect" ], "cwd": "[START_DIR]/skia", "env": { diff --git a/infra/bots/recipes/test.expected/Test-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release.json b/infra/bots/recipes/test.expected/Test-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release.json index 558fcedc2d..7fdb36d86e 100644 --- a/infra/bots/recipes/test.expected/Test-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release.json +++ b/infra/bots/recipes/test.expected/Test-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release.json @@ -91,6 +91,7 @@ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", "SKIA_OUT": "[START_DIR]/out" }, + "infra_step": true, "name": "Delete old nanobench" }, { @@ -657,11 +658,13 @@ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", "SKIA_OUT": "[START_DIR]/out" }, + "infra_step": true, "name": "Delete executables" }, { "cmd": [ - "adb" + "adb", + "disconnect" ], "cwd": "[START_DIR]/skia", "env": { @@ -724,7 +727,8 @@ }, { "cmd": [ - "adb" + "adb", + "disconnect" ], "cwd": "[START_DIR]/skia", "env": { |