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

Unified Diff: tools/testing/perf_testing/run_perf_tests.py

Issue 10360004: Make change to actually upload to app engine. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/perf_testing/run_perf_tests.py
===================================================================
--- tools/testing/perf_testing/run_perf_tests.py (revision 7293)
+++ tools/testing/perf_testing/run_perf_tests.py (working copy)
@@ -272,7 +272,10 @@
for test in suites:
test.run()
+ if not self.no_upload:
+ self.upload_to_app_engine(TestBuilder.available_suite_names())
+
class Test(object):
"""The base class to provide shared code for different tests we will run and
graph. At a high level, each test has three visitors (the tester, the
@@ -684,8 +687,6 @@
delete the trace file."""
os.chdir(os.path.join(DART_INSTALL_LOCATION, 'tools',
'testing', 'perf_testing'))
- if self.test.test_runner.no_upload:
- return
parts = afile.split('-')
browser = parts[2]
version = parts[3]
@@ -725,7 +726,8 @@
bench_dict = self.test.values_dict[browser][version]
bench_dict[name] += [float(score)]
self.test.revision_dict[browser][version][name] += [revision_num]
- if self.should_report_results(afile):
+ if self.should_report_results(afile) and \
+ not self.test.test_runner.no_upload:
upload_success = upload_success and self.report_results(
name, score, browser, version, revision_num, self.SCORE)
else:
@@ -871,8 +873,6 @@
def process_file(self, afile):
"""Comb through the html to find the performance results.
Returns: True if we successfully posted our data to storage."""
- if self.test.test_runner.no_upload:
- return
parts = afile.split('-')
browser = parts[2]
version = parts[3]
@@ -906,7 +906,8 @@
bench_dict[name] += [float(score)]
self.test.revision_dict[browser][version][name] += \
[revision_num]
- if self.should_report_results(afile):
+ if self.should_report_results(afile) and \
+ not self.test.test_runner.no_upload:
upload_success = upload_success and self.report_results(
name, score, browser, version, revision_num, self.SCORE)
else:
@@ -1007,8 +1008,6 @@
Returns: True if we successfully posted our data to storage."""
os.chdir(os.path.join(DART_INSTALL_LOCATION, 'tools',
'testing', 'perf_testing'))
- if self.test.test_runner.no_upload:
- return
f = open(os.path.join(self.test.result_folder_name, afile))
tabulate_data = False
revision_num = 0
@@ -1034,7 +1033,8 @@
self.test.values_dict['commandline'][variant][metric] += [num]
self.test.revision_dict['commandline'][variant][metric] += \
[revision_num]
- if self.should_report_results(afile):
+ if self.should_report_results(afile) and \
+ not self.test.test_runner.no_upload:
upload_success = upload_success and self.report_results(
metric, num, 'commandline', variant, revision_num,
self.CODE_SIZE)
@@ -1137,8 +1137,6 @@
Returns: True if we successfully posted our data to storage."""
os.chdir(os.path.join(DART_INSTALL_LOCATION, 'tools',
'testing', 'perf_testing'))
- if self.test.test_runner.no_upload:
- return
f = open(os.path.join(self.test.result_folder_name, afile))
tabulate_data = False
revision_num = 0
@@ -1161,7 +1159,10 @@
score_type = self.CODE_SIZE
if 'Compiling' in metric or 'Bootstrapping' in metric:
score_type = self.COMPILE_TIME
- if self.should_report_results(afile):
+ if self.should_report_results(afile) and \
+ not self.test.test_runner.no_upload:
+ if num < self.test.failure_threshold[metric]:
+ num = 0
upload_success = upload_success and self.report_results(
metric, num, 'commandline', 'frog', revision_num,
score_type)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698