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

Unified Diff: tools/testrunner/local/execution.py

Issue 1385443002: [Swarming] Presort tests - slowest first. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: meh Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/simdjs/simdjs.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testrunner/local/execution.py
diff --git a/tools/testrunner/local/execution.py b/tools/testrunner/local/execution.py
index 4c63fb6e63f6ba1aac2a3b0da0f1bdbfc8e9e2f1..02c48a845cf2e04ed662aa95dd64fabab7c2dacc 100644
--- a/tools/testrunner/local/execution.py
+++ b/tools/testrunner/local/execution.py
@@ -72,6 +72,8 @@ class Runner(object):
if not context.no_sorting:
for t in self.tests:
t.duration = self.perfdata.FetchPerfData(t) or 1.0
+ slow_key = lambda t: statusfile.IsSlow(t.outcomes)
+ self.tests.sort(key=slow_key, reverse=True)
self.tests.sort(key=lambda t: t.duration, reverse=True)
self._CommonInit(suites, progress_indicator, context)
« no previous file with comments | « test/simdjs/simdjs.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698