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

Unified Diff: scripts/slave/recipe_modules/perf_try/api.py

Issue 1776943003: Revert of Remove build directory before performing perf tryjob. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | scripts/slave/recipes/bisection/android_bisect.expected/basic_perf_tryjob_android_fyi_perf_bisect.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/perf_try/api.py
diff --git a/scripts/slave/recipe_modules/perf_try/api.py b/scripts/slave/recipe_modules/perf_try/api.py
index d2f73ebb55cb87a8a92876f3ff9408d4845ec2ff..f60354448b09f2b5798a9bf752aa96030d67c549 100644
--- a/scripts/slave/recipe_modules/perf_try/api.py
+++ b/scripts/slave/recipe_modules/perf_try/api.py
@@ -183,13 +183,6 @@
self.m.chromium.cleanup_temp()
if 'With Patch' in name:
- # We've had some cases where a stale build directory was used on perf
- # try job leading to unwanted cache and temp data. The best way to
- # ensure the old build directory is removed before doing any
- # compilation.
- self.m.file.rmtree(
- 'build directory',
- self.m.chromium.c.build_dir.join(self.m.chromium.c.build_config_fs))
self.m.chromium_tests.transient_check(
update_step,
lambda transform_name: self.m.chromium_tests.run_mb_and_compile(
@@ -207,6 +200,9 @@
if (not kwargs.get('allow_flakes', True) and
cfg.get('test_type', 'perf') != 'return_code'):
overall_success = all(v == 0 for v in retcodes)
+ if not overall_success: # pragma: no cover
+ raise self.m.step.StepFailure(
+ 'Patched version failed to run performance test.')
return {
'results': all_values,
'ret_code': overall_success,
« no previous file with comments | « no previous file | scripts/slave/recipes/bisection/android_bisect.expected/basic_perf_tryjob_android_fyi_perf_bisect.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698